#include "gui/core/event/handler.hpp"
#include "hotkey/hotkey_command.hpp"
#include "utils/general.hpp"
#include <SDL3/SDL_events.h>
#include <functional>
#include <list>
#include <map>
Go to the source code of this file.
|
| template<typename... T> |
| using | gui2::event::dispatcher_callback = std::function< void(widget &, const ui_event, bool &, bool &, T...)> |
| | Callback function signature alias template.
|
| |
| using | gui2::event::signal = dispatcher_callback<> |
| | Used for events in event_category::general.
|
| |
| using | gui2::event::signal_mouse = dispatcher_callback< const point & > |
| | Used for events in event_category::mouse.
|
| |
| using | gui2::event::signal_keyboard = dispatcher_callback< const SDL_Keycode, const SDL_Keymod, const std::string & > |
| | Used for events in event_category::keyboard.
|
| |
| using | gui2::event::signal_touch_motion = dispatcher_callback< const point &, const point & > |
| | Used for events in event_category::touch_motion.
|
| |
| using | gui2::event::signal_touch_gesture = dispatcher_callback< const point &, float, float, uint8_t > |
| | Used for events in event_category::touch_gesture.
|
| |
| using | gui2::event::signal_notification = dispatcher_callback< void * > |
| | Used for events in event_category::notification.
|
| |
| using | gui2::event::signal_message = dispatcher_callback< const message & > |
| | Used for events in event_category::message.
|
| |
| using | gui2::event::signal_raw_event = dispatcher_callback< const SDL_Event & > |
| | Used for events in event_category::raw_event.
|
| |
| using | gui2::event::signal_text_input = dispatcher_callback< const std::string &, int32_t, int32_t > |
| | Used for eventsin event_category::text_input.
|
| |
| using | gui2::event::hotkey_function = std::function< bool(widget &dispatcher, hotkey::HOTKEY_COMMAND id)> |
| | Hotkey function handler signature.
|
| |