SDL 3.0
SDL_NotificationAction Union Reference

#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]

Detailed Description

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.

See also
SDL_NotificationEvent
SDL_NotificationActionType

Definition at line 112 of file SDL_notification.h.

Field Documentation

◆ action_id

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.

◆ action_label

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]

struct { ... } SDL_NotificationAction::button

◆ padding

Uint8 SDL_NotificationAction::padding[128]

Definition at line 123 of file SDL_notification.h.

◆ type

SDL_NotificationActionType SDL_NotificationAction::type

SDL_NOTIFICATION_ACTION_TYPE_BUTTON

Definition at line 114 of file SDL_notification.h.


The documentation for this union was generated from the following file: