Molybden API
Loading...
Searching...
No Matches
dock.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_DOCK_HPP
6#define MOLYBDEN_DOCK_HPP
7
8#include <memory>
9#include <string>
10
11namespace molybden {
12
13class App;
14
18class Dock {
19 public:
23 virtual std::shared_ptr<App> app() = 0;
24
33 virtual void hide() = 0;
34
43 virtual void show() = 0;
44
50 virtual bool isVisible() = 0;
51
55 virtual std::string badgeText() = 0;
56
65 virtual void setBadgeText(const std::string& text) = 0;
66
67 virtual ~Dock() = default;
68};
69
70} // namespace molybden
71
72#endif // MOLYBDEN_DOCK_HPP
Allows controlling application icon in the Dock on macOS.
Definition dock.hpp:18
virtual void show()=0
Shows the application icon in the Dock.
virtual bool isVisible()=0
Indicates whether the application icon is visible in the Dock.
virtual void setBadgeText(const std::string &text)=0
Sets the application dock icon badge text.
virtual std::shared_ptr< App > app()=0
Returns the application instance for this Dock controller.
virtual std::string badgeText()=0
Returns the text displayed in the application dock icon badge.
virtual void hide()=0
Hides the application icon in the Dock.