libnick 2025.1.0
A cross-platform base for native Nickvision applications.
|
Functions | |
void | send (const ShellNotificationSentEventArgs &e, HWND hwnd) |
Sends a notification to the desktop. | |
void | send (const ShellNotificationSentEventArgs &e, const std::string &appId, const std::string &openText) |
Sends a notification to the shell. | |
void | send (const ShellNotificationSentEventArgs &e) |
Sends a notification to the shell. | |
void Nickvision::Notifications::ShellNotification::send | ( | const ShellNotificationSentEventArgs & | e | ) |
Sends a notification to the shell.
e | ShellNotificationSentEventArgs |
void Nickvision::Notifications::ShellNotification::send | ( | const ShellNotificationSentEventArgs & | e, |
const std::string & | appId, | ||
const std::string & | openText ) |
Sends a notification to the shell.
Uses Gio.Notification on GTK applications.
Uses FreeDesktop Notifications on non-GTK applications.
Supports the action "open" with action param being a path of a file or folder to open. The app must define an "app.open" action to handle this event. (GTK applications only)
e | ShellNotificationSentEventArgs |
appId | The application's id |
openText | Localized text of "Open" |
void Nickvision::Notifications::ShellNotification::send | ( | const ShellNotificationSentEventArgs & | e, |
HWND | hwnd ) |
Sends a notification to the desktop.
Supports the action "open" with action param being a path of a file or folder to open.
e | ShellNotificationSentEventArgs |
hwnd | The handle to the main application window |