System tray icon (macOS NSStatusItem, Windows Shell_NotifyIcon).
More...
#include <code_editor.hpp>
|
| std::function< void()> | on_click |
| | Called when the icon is clicked.
|
| std::function< void()> | on_right_click |
| | Called when the icon is right-clicked (for context menu).
|
System tray icon (macOS NSStatusItem, Windows Shell_NotifyIcon).
◆ SystemTrayIcon()
| pulp::view::SystemTrayIcon::SystemTrayIcon |
( |
| ) |
|
|
default |
◆ ~SystemTrayIcon()
| pulp::view::SystemTrayIcon::~SystemTrayIcon |
( |
| ) |
|
◆ hide()
| void pulp::view::SystemTrayIcon::hide |
( |
| ) |
|
◆ set_icon()
| void pulp::view::SystemTrayIcon::set_icon |
( |
std::string_view | icon_path | ) |
|
Set the tray icon image (path to PNG or system icon name).
◆ set_tooltip()
| void pulp::view::SystemTrayIcon::set_tooltip |
( |
std::string_view | text | ) |
|
◆ show()
| void pulp::view::SystemTrayIcon::show |
( |
| ) |
|
◆ on_click
| std::function<void()> pulp::view::SystemTrayIcon::on_click |
Called when the icon is clicked.
◆ on_right_click
| std::function<void()> pulp::view::SystemTrayIcon::on_right_click |
Called when the icon is right-clicked (for context menu).
The documentation for this class was generated from the following file: