|
SDL 3.0
|
#include <SDL_notification.h>
Data Fields | |
| SDL_NotificationActionType | type |
| struct { | |
| SDL_NotificationActionType type | |
| const char * action_id | |
| const char * action_label | |
| } | button |
| Uint8 | padding [128] |
Notification structure describing actions that can be used to allow users to interact with notification dialogs.
Exactly How they are presented depends on the platform and implementation.
User interactions with a notification are reported via events with the type SDL_EVENT_NOTIFICATION_ACTION_INVOKED.
Action types: - button: A button with a localized text label, which generates feedback when activated.
Definition at line 112 of file SDL_notification.h.
| const char* SDL_NotificationAction::action_id |
The identifier string for the button. 'default' is a reserved identifier and must not be used.
Definition at line 119 of file SDL_notification.h.
| const char* SDL_NotificationAction::action_label |
The localized label for the button associated with the action, in UTF-8 encoding.
Definition at line 120 of file SDL_notification.h.
| struct { ... } SDL_NotificationAction::button |
| Uint8 SDL_NotificationAction::padding[128] |
Definition at line 123 of file SDL_notification.h.
| SDL_NotificationActionType SDL_NotificationAction::type |
SDL_NOTIFICATION_ACTION_TYPE_BUTTON
Definition at line 114 of file SDL_notification.h.