98 return input |
static_cast<uint32_t
>(mask);
182 const uint32_t asu32 =
static_cast<uint32_t
>(mask);
183 return (event & asu32) == asu32;
ui_event
The event sent to the dispatcher.
@ MIDDLE_BUTTON_DOUBLE_CLICK
@ SDL_TEXT_INPUT
An SDL text input (commit) event.
@ SDL_TEXT_EDITING
An SDL text editing (IME) event.
@ LEFT_BUTTON_DOUBLE_CLICK
@ SDL_TOUCH_MULTI_GESTURE
@ RIGHT_BUTTON_DOUBLE_CLICK
constexpr event_category get_event_category(const ui_event event)
Returns the category of a given event.
void capture_mouse(dispatcher *dispatcher)
Captures the mouse.
void release_mouse(dispatcher *dispatcher)
Releases a captured mouse.
void disconnect_dispatcher(dispatcher *dispatcher)
Disconnects a dispatcher to the event handler.
void capture_keyboard(dispatcher *dispatcher)
Captures the keyboard.
event_category
Event category masks.
@ notification
Callbacks with a sender aka notification messages.
@ keyboard
Callbacks with the keyboard values (these haven't been determined yet).
@ mouse
Callbacks with a coordinate as extra parameter.
@ message
Callbacks with a sender aka notification messages.
@ general
Callbacks without extra parameters.
void connect_dispatcher(dispatcher *dispatcher)
Connects a dispatcher to the event handler.
std::vector< dispatcher * > & get_all_dispatchers()
Gets all event dispatchers in the Z order.
constexpr uint32_t encode_category(const uint32_t input, const event_category mask)
std::ostream & operator<<(std::ostream &stream, const ui_event event)
void init_mouse_location()
Initializes the location of the mouse.
constexpr bool is_in_category(const ui_event event, const event_category mask)
Checks if a given event is in a given category.
bool is_in_dialog()
Is a dialog open?
void remove_from_window_stack(window *window)
Removes a entry from the open_window_stack list.
std::vector< window * > open_window_stack
Keeps track of any open windows of any type (modal, non-modal, or tooltip) in the order in which they...
The message callbacks hold a reference to a message.