Namespaces | |
| namespace | implementation |
Functions | |
| bool | show (std::string title, std::string message) |
| Displays a tray notification. | |
| bool | message_hook (const MSG &msg) |
| Frees resources when a notification disappears, switches user to the wesnoth window if the notification popup was clicked by user. | |
| bool windows_tray_notification::message_hook | ( | const MSG & | msg | ) |
Frees resources when a notification disappears, switches user to the wesnoth window if the notification popup was clicked by user.
| msg | Windows message payload. |
Definition at line 225 of file windows_tray_notification.cpp.
References windows_tray_notification::implementation::destroy_tray_icon(), windows_tray_notification::implementation::message_reset, and windows_tray_notification::implementation::switch_to_wesnoth_window().
| bool windows_tray_notification::show | ( | std::string | title, |
| std::string | message | ||
| ) |
Displays a tray notification.
When user clicks on the notification popup, the user switches to the wesnoth window.
| title | Title of a notification. Gets truncated if longer than 64 characters, including the terminating null character. |
| message | Message of a notification. Gets truncated if longer than 256 characters, including the terminating null character. |
Definition at line 198 of file windows_tray_notification.cpp.
References windows_tray_notification::implementation::adjust_length(), windows_tray_notification::implementation::create_tray_icon(), windows_tray_notification::implementation::destroy_tray_icon(), windows_tray_notification::implementation::nid, and windows_tray_notification::implementation::set_tray_message().