The Battle for Wesnoth  1.19.24+dev
Namespaces | Functions | Variables
windows_tray_notification::implementation Namespace Reference

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
 

Function Documentation

◆ adjust_length()

void windows_tray_notification::implementation::adjust_length ( std::string &  title,
std::string &  message 
)

◆ create_tray_icon()

bool windows_tray_notification::implementation::create_tray_icon ( )

◆ destroy_tray_icon()

void windows_tray_notification::implementation::destroy_tray_icon ( )

◆ set_tray_message()

bool windows_tray_notification::implementation::set_tray_message ( const std::string &  title,
const std::string &  message 
)

◆ switch_to_wesnoth_window()

void windows_tray_notification::implementation::switch_to_wesnoth_window ( )

Variable Documentation

◆ ICON_ID

constexpr int windows_tray_notification::implementation::ICON_ID = 1007
constexpr

Definition at line 39 of file windows_tray_notification.cpp.

Referenced by create_tray_icon().

◆ MAX_MESSAGE_LENGTH

constexpr std::size_t windows_tray_notification::implementation::MAX_MESSAGE_LENGTH = 255
constexpr

Definition at line 42 of file windows_tray_notification.cpp.

Referenced by adjust_length(), and set_tray_message().

◆ MAX_TITLE_LENGTH

constexpr std::size_t windows_tray_notification::implementation::MAX_TITLE_LENGTH = 63
constexpr

Definition at line 41 of file windows_tray_notification.cpp.

Referenced by adjust_length(), create_tray_icon(), and set_tray_message().

◆ message_reset

bool windows_tray_notification::implementation::message_reset = false

◆ nid

NOTIFYICONDATA* windows_tray_notification::implementation::nid = nullptr

◆ WM_TRAYNOTIFY

constexpr unsigned int windows_tray_notification::implementation::WM_TRAYNOTIFY = 32868
constexpr

Definition at line 40 of file windows_tray_notification.cpp.

Referenced by create_tray_icon().