SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_NotificationAction

Notification structure describing actions that can be used to allow users to interact with notification dialogs.

Header File

Defined in <SDL3/SDL_notification.h>

Syntax

typedef union SDL_NotificationAction
{
    SDL_NotificationActionType type;

    struct
    {
        SDL_NotificationActionType type; /**< SDL_NOTIFICATION_ACTION_TYPE_BUTTON */
        const char *action_id;           /**< The identifier string for the button. 'default' is a reserved identifier and must not be used. */
        const char *action_label;        /**< The localized label for the button associated with the action, in UTF-8 encoding. */
    } button;

    Uint8 padding[128];
} SDL_NotificationAction;

Remarks

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


CategoryAPI, CategoryAPIStruct, CategoryNotification


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.