Namespaces | |
| helper | |
Functions | |
| void | destroy_tray_icon () |
| bool | create_tray_icon () |
| bool | set_tray_message (const std::string &title, const std::string &message) |
| void | adjust_length (std::string &title, std::string &message) |
| void | switch_to_wesnoth_window () |
Variables | |
| constexpr int | ICON_ID = 1007 |
| constexpr unsigned int | WM_TRAYNOTIFY = 32868 |
| constexpr std::size_t | MAX_TITLE_LENGTH = 63 |
| constexpr std::size_t | MAX_MESSAGE_LENGTH = 255 |
| NOTIFYICONDATA * | nid = nullptr |
| bool | message_reset = false |
| void windows_tray_notification::implementation::adjust_length | ( | std::string & | title, |
| std::string & | message | ||
| ) |
Definition at line 170 of file windows_tray_notification.cpp.
References utils::ellipsis_truncate(), MAX_MESSAGE_LENGTH, and MAX_TITLE_LENGTH.
Referenced by windows_tray_notification::show().
| bool windows_tray_notification::implementation::create_tray_icon | ( | ) |
Definition at line 84 of file windows_tray_notification.cpp.
References _(), windows_tray_notification::implementation::helper::get_window_handle(), ICON_ID, MAX_TITLE_LENGTH, nid, windows_tray_notification::implementation::helper::string_to_wstring(), and WM_TRAYNOTIFY.
Referenced by windows_tray_notification::show().
| void windows_tray_notification::implementation::destroy_tray_icon | ( | ) |
Definition at line 69 of file windows_tray_notification.cpp.
References message_reset, and nid.
Referenced by windows_tray_notification::message_hook(), and windows_tray_notification::show().
| bool windows_tray_notification::implementation::set_tray_message | ( | const std::string & | title, |
| const std::string & | message | ||
| ) |
Definition at line 157 of file windows_tray_notification.cpp.
References MAX_MESSAGE_LENGTH, MAX_TITLE_LENGTH, message_reset, nid, and windows_tray_notification::implementation::helper::string_to_wstring().
Referenced by windows_tray_notification::show().
| void windows_tray_notification::implementation::switch_to_wesnoth_window | ( | ) |
Definition at line 183 of file windows_tray_notification.cpp.
References windows_tray_notification::implementation::helper::get_window_handle().
Referenced by windows_tray_notification::message_hook().
|
constexpr |
Definition at line 39 of file windows_tray_notification.cpp.
Referenced by create_tray_icon().
|
constexpr |
Definition at line 42 of file windows_tray_notification.cpp.
Referenced by adjust_length(), and set_tray_message().
|
constexpr |
Definition at line 41 of file windows_tray_notification.cpp.
Referenced by adjust_length(), create_tray_icon(), and set_tray_message().
| bool windows_tray_notification::implementation::message_reset = false |
Definition at line 45 of file windows_tray_notification.cpp.
Referenced by destroy_tray_icon(), windows_tray_notification::message_hook(), and set_tray_message().
| NOTIFYICONDATA* windows_tray_notification::implementation::nid = nullptr |
Definition at line 44 of file windows_tray_notification.cpp.
Referenced by create_tray_icon(), destroy_tray_icon(), set_tray_message(), and windows_tray_notification::show().
|
constexpr |
Definition at line 40 of file windows_tray_notification.cpp.
Referenced by create_tray_icon().