Namespaces | |
implementation | |
Classes | |
class | dispatcher |
Base class for event handling. More... | |
struct | dispatcher_implementation |
class | distributor |
The event handler class for the widget library. More... | |
class | manager |
struct | message |
The message callbacks hold a reference to a message. More... | |
struct | message_show_helptip |
The message for MESSAGE_SHOW_HELPTIP. More... | |
struct | message_show_tooltip |
The message for MESSAGE_SHOW_TOOLTIP. More... | |
class | mouse_button |
struct | mouse_button_event_types |
Small helper metastruct to configure instances of mouse_button. More... | |
struct | mouse_button_left |
Three subclasses of mouse_button, so that the distributor class can inherit from them; C++ doesn't allow multiple inheritance to directly use more than one instance of a superclass. More... | |
struct | mouse_button_middle |
struct | mouse_button_right |
class | mouse_motion |
class | resource_locker |
Small helper to keep a resource (boolean) locked. More... | |
class | sdl_event_handler |
This singleton class handles all events. More... | |
Typedefs | |
template<typename... T> | |
using | dispatcher_callback_func = std::function< void(widget &, const ui_event, bool &, bool &, T...)> |
Callback function signature alias template. More... | |
using | signal_function = dispatcher_callback_func<> |
Callback function signature. More... | |
using | signal_mouse_function = dispatcher_callback_func< const point & > |
Callback function signature. More... | |
using | signal_keyboard_function = dispatcher_callback_func< const SDL_Keycode, const SDL_Keymod, const std::string & > |
Callback function signature. More... | |
using | signal_touch_motion_function = dispatcher_callback_func< const point &, const point & > |
Callback function signature. More... | |
using | signal_touch_gesture_function = dispatcher_callback_func< const point &, float, float, uint8_t > |
Callback function signature. More... | |
using | signal_notification_function = dispatcher_callback_func< void * > |
Callback function signature. More... | |
using | signal_message_function = dispatcher_callback_func< const message & > |
Callback function signature. More... | |
using | signal_raw_event_function = dispatcher_callback_func< const SDL_Event & > |
Raw event callback function signature. More... | |
using | signal_text_input_function = dispatcher_callback_func< const std::string &, int32_t, int32_t > |
Callback function signature. More... | |
using | hotkey_function = std::function< void(widget &dispatcher, hotkey::HOTKEY_COMMAND id)> |
Hotkey function handler signature. More... | |
Functions | |
void | connect_signal_pre_key_press (dispatcher &dispatcher, const signal_keyboard_function &signal) |
Connects the signal for 'snooping' on the keypress. More... | |
void | connect_signal_mouse_left_click (dispatcher &dispatcher, const signal_function &signal) |
Connects a signal handler for a left mouse button click. More... | |
void | disconnect_signal_mouse_left_click (dispatcher &dispatcher, const signal_function &signal) |
Disconnects a signal handler for a left mouse button click. More... | |
void | connect_signal_mouse_left_double_click (dispatcher &dispatcher, const signal_function &signal) |
Connects a signal handler for a left mouse button double click. More... | |
void | connect_signal_notify_modified (dispatcher &dispatcher, const signal_notification_function &signal) |
Connects a signal handler for getting a notification upon modification. More... | |
void | connect_signal_on_draw (dispatcher &dispatcher, const signal_function &signal) |
Connects a signal handler for a callback when the widget is drawn. More... | |
constexpr bool | is_general_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_mouse_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_keyboard_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_touch_motion_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_touch_gesture_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_notification_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_message_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_raw_event_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
constexpr bool | is_text_input_event (const ui_event event) |
Helper for catching use error of dispatcher::connect_signal. More... | |
template<typename T , typename... F> | |
bool | fire_event (const ui_event event, dispatcher *d, widget *w, F &&... params) |
Fires an event. More... | |
template<ui_event click, ui_event double_click, bool(event_executor::*)() const wants_double_click, typename T , typename... F> | |
bool | fire_event_double_click (dispatcher *dsp, widget *wgt, F &&... params) |
void | connect_dispatcher (dispatcher *dispatcher) |
Connects a dispatcher to the event handler. More... | |
void | disconnect_dispatcher (dispatcher *dispatcher) |
Disconnects a dispatcher to the event handler. More... | |
std::vector< dispatcher * > & | get_all_dispatchers () |
Gets all event dispatchers in the Z order. More... | |
void | init_mouse_location () |
Initializes the location of the mouse. More... | |
void | capture_mouse (dispatcher *dispatcher) |
Captures the mouse. More... | |
void | release_mouse (dispatcher *dispatcher) |
Releases a captured mouse. More... | |
void | capture_keyboard (dispatcher *dispatcher) |
Captures the keyboard. More... | |
std::ostream & | operator<< (std::ostream &stream, const ui_event event) |
Variables | |
static std::unique_ptr< class sdl_event_handler > | handler_ = nullptr |
static events::event_context * | event_context = nullptr |
using gui2::event::dispatcher_callback_func = typedef std::function<void(widget&, const ui_event, bool&, bool&, T...)> |
Callback function signature alias template.
All callbacks take these four arguments in addition to any arguments specified by the parameter pack.
Parameters:
Definition at line 190 of file dispatcher.hpp.
using gui2::event::hotkey_function = typedef std::function<void(widget& dispatcher, hotkey::HOTKEY_COMMAND id)> |
Hotkey function handler signature.
Definition at line 289 of file dispatcher.hpp.
using gui2::event::signal_function = typedef dispatcher_callback_func<> |
Callback function signature.
This is used for events matching is_general_event.
Definition at line 197 of file dispatcher.hpp.
using gui2::event::signal_keyboard_function = typedef dispatcher_callback_func<const SDL_Keycode, const SDL_Keymod, const std::string&> |
Callback function signature.
This is used for events matching is_keyboard_event.
Extra parameters:
Definition at line 219 of file dispatcher.hpp.
using gui2::event::signal_message_function = typedef dispatcher_callback_func<const message&> |
Callback function signature.
This is used for events matching is_message_event.
Extra parameters:
Definition at line 264 of file dispatcher.hpp.
using gui2::event::signal_mouse_function = typedef dispatcher_callback_func<const point&> |
Callback function signature.
This is used for events matching is_mouse_event.
Extra parameters:
Definition at line 207 of file dispatcher.hpp.
using gui2::event::signal_notification_function = typedef dispatcher_callback_func<void*> |
Callback function signature.
This is used for events matching is_notification_event.
Extra parameters:
Definition at line 254 of file dispatcher.hpp.
using gui2::event::signal_raw_event_function = typedef dispatcher_callback_func<const SDL_Event&> |
Raw event callback function signature.
This is used for events matching is_raw_event_event.
Extra parameters:
Definition at line 274 of file dispatcher.hpp.
using gui2::event::signal_text_input_function = typedef dispatcher_callback_func<const std::string&, int32_t, int32_t> |
Callback function signature.
This is used for events matching is_text_input_event.
Extra parameters:
Definition at line 286 of file dispatcher.hpp.
using gui2::event::signal_touch_gesture_function = typedef dispatcher_callback_func<const point&, float, float, uint8_t> |
Callback function signature.
This is used for events matching is_touch_gesture_event.
Extra parameters: (TODO: document what these actually are)
Definition at line 243 of file dispatcher.hpp.
using gui2::event::signal_touch_motion_function = typedef dispatcher_callback_func<const point&, const point&> |
Callback function signature.
This is used for events matching is_touch_motion_event.
Extra parameters:
Definition at line 230 of file dispatcher.hpp.
The event send to the dispatcher.
Events prefixed by SDL are (semi)-real SDL events. The handler does some minor decoding like splitting the button down event to the proper event but nothing more. Events without an SDL prefix are generated by another signal eg the windows signal handler for SDL_MOUSE_MOTION can generate a MOUSE_ENTER, MOUSE_MOTION and MOUSE_LEAVE event and send that to it's children.
Definition at line 47 of file handler.hpp.
void gui2::event::capture_keyboard | ( | dispatcher * | dispatcher | ) |
Captures the keyboard.
A dispatcher can capture the keyboard, when for example it's pressed on a button, this means all keyboard events after that are send to that widget.
dispatcher | The dispatcher which should get the keyboard focus. |
Definition at line 939 of file handler.cpp.
References gui2::event::dispatcher::get_want_keyboard_input().
void gui2::event::capture_mouse | ( | dispatcher * | dispatcher | ) |
Captures the mouse.
A dispatcher can capture the mouse, when for example it's pressed on a button, this means all mouse events after that are send to that widget.
dispatcher | The dispatcher which should get the mouse focus. |
Definition at line 923 of file handler.cpp.
Referenced by gui2::event::dispatcher::capture_mouse().
void gui2::event::connect_dispatcher | ( | dispatcher * | dispatcher | ) |
Connects a dispatcher to the event handler.
dispatcher | The dispatcher to connect. |
Definition at line 890 of file handler.cpp.
Referenced by gui2::event::dispatcher::connect().
void gui2::event::connect_signal_mouse_left_click | ( | dispatcher & | dispatcher, |
const signal_function & | signal | ||
) |
Connects a signal handler for a left mouse button click.
Definition at line 171 of file dispatcher.cpp.
References gui2::event::dispatcher::connect_signal(), and LEFT_BUTTON_CLICK.
Referenced by gui2::dialogs::mp_staging::add_side_node(), gui2::dialogs::gamestate_inspector::controller::bind(), gui2::dialogs::chat_log::view::bind(), gui2::dialogs::lua_interpreter::controller::bind(), gui2::button::connect_click_handler(), gui2::dialogs::mp_options_helper::display_custom_options(), gui2::unit_preview_pane::finalize_setup(), gui2::chatbox::find_or_create_window(), gui2::dialogs::mp_join_game::generate_side_list(), gui2::window::layout(), gui2::dialogs::preferences_dialog::post_build(), gui2::dialogs::unit_advance::pre_show(), gui2::dialogs::synched_choice_wait::pre_show(), gui2::dialogs::unit_recruit::pre_show(), gui2::dialogs::story_viewer::pre_show(), gui2::dialogs::lobby_player_info::pre_show(), gui2::dialogs::mp_create_game::pre_show(), gui2::dialogs::mp_alerts_options::pre_show(), gui2::dialogs::formula_debugger::pre_show(), gui2::dialogs::mp_connect::pre_show(), gui2::dialogs::game_load::pre_show(), gui2::dialogs::select_orb_colors::pre_show(), gui2::dialogs::addon_connect::pre_show(), gui2::dialogs::unit_attack::pre_show(), gui2::dialogs::editor_generate_map::pre_show(), gui2::dialogs::mp_method_selection::pre_show(), gui2::dialogs::custom_tod::pre_show(), gui2::dialogs::screenshot_notification::pre_show(), gui2::dialogs::unit_recall::pre_show(), gui2::dialogs::wml_error::pre_show(), gui2::dialogs::game_cache_options::pre_show(), gui2::dialogs::game_version::pre_show(), gui2::dialogs::preferences_dialog::pre_show(), gui2::dialogs::addon_manager::pre_show(), gui2::dialogs::mp_lobby::pre_show(), gui2::dialogs::file_dialog::pre_show(), gui2::dialogs::register_button(), gui2::addon_list::set_addons(), gui2::dialogs::select_orb_colors::setup_orb_toggle(), and gui2::dialogs::setup_pref_toggle_button().
void gui2::event::connect_signal_mouse_left_double_click | ( | dispatcher & | dispatcher, |
const signal_function & | signal | ||
) |
Connects a signal handler for a left mouse button double click.
I'm not exactly sure why this works in this queue position with toggle panels, but it does. Will revisit if it becomes an issue later (ie, if this is used with other widgets and doesn't work).
Definition at line 181 of file dispatcher.cpp.
References gui2::event::dispatcher::back_post_child, gui2::event::dispatcher::connect_signal(), and LEFT_BUTTON_DOUBLE_CLICK.
Referenced by gui2::dialogs::mp_lobby::adjust_game_row_contents(), and gui2::dialogs::mp_lobby::update_playerlist().
void gui2::event::connect_signal_notify_modified | ( | dispatcher & | dispatcher, |
const signal_notification_function & | signal | ||
) |
Connects a signal handler for getting a notification upon modification.
Definition at line 186 of file dispatcher.cpp.
References gui2::event::dispatcher::connect_signal(), and NOTIFY_MODIFIED.
Referenced by gui2::dialogs::mp_staging::add_side_node(), gui2::dialogs::gamestate_inspector::controller::bind(), gui2::dialogs::chat_log::view::bind(), gui2::bind_status_label(), gui2::dialogs::mp_options_helper::display_custom_options(), gui2::listbox::finalize(), gui2::chatbox::finalize_setup(), gui2::scrollbar_container::finalize_setup(), gui2::policy::select_action::selection::init(), gui2::field_bool::init_specialized(), gui2::dialogs::preferences_dialog::initialize_sound_option_group(), gui2::dialogs::preferences_dialog::initialize_tabs(), intf_set_dialog_callback(), gui2::dialogs::preferences_dialog::post_build(), gui2::dialogs::generator_settings::pre_show(), gui2::dialogs::unit_advance::pre_show(), gui2::dialogs::statistics_dialog::pre_show(), gui2::dialogs::help_browser::pre_show(), gui2::dialogs::label_settings::pre_show(), gui2::dialogs::unit_recruit::pre_show(), gui2::dialogs::server_info::pre_show(), gui2::dialogs::faction_select::pre_show(), gui2::dialogs::mp_change_control::pre_show(), gui2::dialogs::mp_create_game::pre_show(), gui2::dialogs::mp_connect::pre_show(), gui2::dialogs::game_load::pre_show(), gui2::dialogs::unit_list::pre_show(), gui2::dialogs::core_selection::pre_show(), gui2::dialogs::editor_generate_map::pre_show(), gui2::dialogs::custom_tod::pre_show(), gui2::dialogs::unit_recall::pre_show(), gui2::dialogs::game_stats::pre_show(), gui2::dialogs::edit_text::pre_show(), gui2::dialogs::game_version::pre_show(), gui2::dialogs::preferences_dialog::pre_show(), gui2::dialogs::addon_manager::pre_show(), gui2::dialogs::unit_create::pre_show(), gui2::dialogs::campaign_selection::pre_show(), gui2::dialogs::drop_down_menu::pre_show(), gui2::dialogs::editor_resize_map::pre_show(), gui2::dialogs::mp_lobby::pre_show(), gui2::dialogs::file_dialog::pre_show(), gui2::group< preferences::LOBBY_JOINS >::set_callback_on_value_change(), gui2::addon_list::set_modified_signal_handler(), and WIDGET_GETTER().
void gui2::event::connect_signal_on_draw | ( | dispatcher & | dispatcher, |
const signal_function & | signal | ||
) |
Connects a signal handler for a callback when the widget is drawn.
Definition at line 191 of file dispatcher.cpp.
References gui2::event::dispatcher::connect_signal(), DRAW, and gui2::event::dispatcher::front_child.
Referenced by gui2::dialogs::end_credits::pre_show(), gui2::dialogs::outro::pre_show(), gui2::dialogs::story_viewer::pre_show(), and gui2::dialogs::debug_clock::pre_show().
void gui2::event::connect_signal_pre_key_press | ( | dispatcher & | dispatcher, |
const signal_keyboard_function & | signal | ||
) |
Connects the signal for 'snooping' on the keypress.
This callback is called before the widget itself allowing you to either snoop on the input or filter it.
Definition at line 166 of file dispatcher.cpp.
References gui2::event::dispatcher::connect_signal(), gui2::event::dispatcher::front_child, and SDL_KEY_DOWN.
Referenced by gui2::dialogs::lua_interpreter::controller::bind(), gui2::chatbox::finalize_setup(), gui2::dialogs::end_credits::pre_show(), gui2::dialogs::story_viewer::pre_show(), gui2::dialogs::game_load::pre_show(), gui2::dialogs::screenshot_notification::pre_show(), and gui2::dialogs::mp_lobby::pre_show().
void gui2::event::disconnect_dispatcher | ( | dispatcher * | dispatcher | ) |
Disconnects a dispatcher to the event handler.
dispatcher | The dispatcher to disconnect. |
Definition at line 897 of file handler.cpp.
Referenced by gui2::event::dispatcher::~dispatcher().
void gui2::event::disconnect_signal_mouse_left_click | ( | dispatcher & | dispatcher, |
const signal_function & | signal | ||
) |
Disconnects a signal handler for a left mouse button click.
Definition at line 176 of file dispatcher.cpp.
References gui2::event::dispatcher::disconnect_signal(), and LEFT_BUTTON_CLICK.
Referenced by gui2::button::disconnect_click_handler().
|
inline |
Fires an event.
A helper to allow the common event firing code to be shared between the different signal function types.
T | The signal type of the event to handle. |
F | The parameter pack type. |
event | The event to fire. |
d | The dispatcher that handles the event. |
w | The widget that should receive the event. |
params | Zero or more additional arguments to pass to the signal function when it's executed. |
Definition at line 377 of file dispatcher_private.hpp.
References tooltips::click(), d, and w.
|
inline |
Definition at line 396 of file dispatcher_private.hpp.
References tooltips::click(), d, gui2::event::dispatcher::has_event(), gui2::widget::parent(), gui2::event::dispatcher::post, gui2::event::dispatcher::pre, and w.
Referenced by gui2::event::dispatcher::fire().
std::vector< dispatcher * > & gui2::event::get_all_dispatchers | ( | ) |
Gets all event dispatchers in the Z order.
Definition at line 904 of file handler.cpp.
Referenced by gui2::window::redraw_windows_on_top().
void gui2::event::init_mouse_location | ( | ) |
Initializes the location of the mouse.
After a layout of the window the mouse location needs to be updated to test whether it entered or left a widget. Also after closing a window it's needed to send a dummy mouse move.
Definition at line 910 of file handler.cpp.
References gui2::get_mouse_position(), gui2::event::sdl_event_handler::mouse(), point::x, and point::y.
Referenced by gui2::event::distributor::initialize_state(), and gui2::window::layout().
constexpr bool gui2::event::is_general_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This helper is needed as a user can't supply the wrong kind of callback functions to dispatcher::connect_signal. If a wrong callback would be send it will never get called.
This version is for callbacks without extra parameters. NOTE some mouse functions like MOUSE_ENTER don't send the mouse coordinates to the callback function so they are also in this category.
Definition at line 46 of file dispatcher.hpp.
References CLOSE_WINDOW, DRAW, LEFT_BUTTON_CLICK, LEFT_BUTTON_DOUBLE_CLICK, LEFT_BUTTON_DOWN, LEFT_BUTTON_UP, MIDDLE_BUTTON_CLICK, MIDDLE_BUTTON_DOUBLE_CLICK, MIDDLE_BUTTON_DOWN, MIDDLE_BUTTON_UP, MOUSE_ENTER, MOUSE_LEAVE, RIGHT_BUTTON_CLICK, RIGHT_BUTTON_DOUBLE_CLICK, RIGHT_BUTTON_DOWN, and RIGHT_BUTTON_UP.
Referenced by gui2::event::dispatcher::fire(), and gui2::event::dispatcher_implementation::has_handler().
constexpr bool gui2::event::is_keyboard_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks with the keyboard values (these haven't been determined yet).
Definition at line 98 of file dispatcher.hpp.
References SDL_KEY_DOWN.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_message_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks with a sender aka notification messages. Unlike the notifications this message is send through the chain. The event is send from a widget all the way up to the window, who always is the receiver of the message (unless somebody grabbed it before).
Definition at line 148 of file dispatcher.hpp.
References MESSAGE_SHOW_HELPTIP, MESSAGE_SHOW_TOOLTIP, and REQUEST_PLACEMENT.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_mouse_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks with a coordinate as extra parameter.
Definition at line 71 of file dispatcher.hpp.
References MOUSE_MOTION, SDL_LEFT_BUTTON_DOWN, SDL_LEFT_BUTTON_UP, SDL_MIDDLE_BUTTON_DOWN, SDL_MIDDLE_BUTTON_UP, SDL_MOUSE_MOTION, SDL_RIGHT_BUTTON_DOWN, SDL_RIGHT_BUTTON_UP, SDL_TOUCH_DOWN, SDL_TOUCH_UP, SDL_VIDEO_RESIZE, SDL_WHEEL_DOWN, SDL_WHEEL_LEFT, SDL_WHEEL_RIGHT, SDL_WHEEL_UP, SHOW_HELPTIP, and SHOW_TOOLTIP.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_notification_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks with a sender aka notification messages. Like the ones in set_event it has no extra parameters, but this version is only send to the target and not using the pre and post queue.
Definition at line 130 of file dispatcher.hpp.
References LOSE_KEYBOARD_FOCUS, NOTIFY_MODIFIED, NOTIFY_REMOVAL, NOTIFY_REMOVE_TOOLTIP, RECEIVE_KEYBOARD_FOCUS, and SDL_ACTIVATE.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_raw_event_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks of raw events.
Definition at line 160 of file dispatcher.hpp.
References SDL_RAW_EVENT.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_text_input_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks of text input events.
Definition at line 170 of file dispatcher.hpp.
References SDL_TEXT_EDITING, and SDL_TEXT_INPUT.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_touch_gesture_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks of touch gesture events.
Definition at line 118 of file dispatcher.hpp.
References SDL_TOUCH_MULTI_GESTURE.
Referenced by gui2::event::dispatcher::fire().
constexpr bool gui2::event::is_touch_motion_event | ( | const ui_event | event | ) |
Helper for catching use error of dispatcher::connect_signal.
This version is for callbacks of touch motion events.
Definition at line 108 of file dispatcher.hpp.
References SDL_TOUCH_MOTION.
Referenced by gui2::event::dispatcher::fire().
std::ostream & gui2::event::operator<< | ( | std::ostream & | stream, |
const ui_event | event | ||
) |
Definition at line 948 of file handler.cpp.
References CLOSE_WINDOW, DRAW, LEFT_BUTTON_CLICK, LEFT_BUTTON_DOUBLE_CLICK, LEFT_BUTTON_DOWN, LEFT_BUTTON_UP, LOSE_KEYBOARD_FOCUS, MESSAGE_SHOW_HELPTIP, MESSAGE_SHOW_TOOLTIP, MIDDLE_BUTTON_CLICK, MIDDLE_BUTTON_DOUBLE_CLICK, MIDDLE_BUTTON_DOWN, MIDDLE_BUTTON_UP, MOUSE_ENTER, MOUSE_LEAVE, MOUSE_MOTION, NOTIFY_MODIFIED, NOTIFY_REMOVAL, NOTIFY_REMOVE_TOOLTIP, RECEIVE_KEYBOARD_FOCUS, REQUEST_PLACEMENT, RIGHT_BUTTON_CLICK, RIGHT_BUTTON_DOUBLE_CLICK, RIGHT_BUTTON_DOWN, RIGHT_BUTTON_UP, SDL_ACTIVATE, SDL_KEY_DOWN, SDL_LEFT_BUTTON_DOWN, SDL_LEFT_BUTTON_UP, SDL_MIDDLE_BUTTON_DOWN, SDL_MIDDLE_BUTTON_UP, SDL_MOUSE_MOTION, SDL_RAW_EVENT, SDL_RIGHT_BUTTON_DOWN, SDL_RIGHT_BUTTON_UP, SDL_TEXT_EDITING, SDL_TEXT_INPUT, SDL_TOUCH_DOWN, SDL_TOUCH_MOTION, SDL_TOUCH_MULTI_GESTURE, SDL_TOUCH_UP, SDL_VIDEO_RESIZE, SDL_WHEEL_DOWN, SDL_WHEEL_LEFT, SDL_WHEEL_RIGHT, SDL_WHEEL_UP, SHOW_HELPTIP, and SHOW_TOOLTIP.
void gui2::event::release_mouse | ( | dispatcher * | dispatcher | ) |
Releases a captured mouse.
dispatcher | The dispatcher which should release the mouse capture. |
Definition at line 930 of file handler.cpp.
Referenced by gui2::event::dispatcher::release_mouse().
|
static |
Definition at line 62 of file handler.cpp.
Referenced by gui2::event::sdl_event_handler::connect(), and gui2::event::sdl_event_handler::disconnect().
|
static |
Definition at line 61 of file handler.cpp.
Referenced by variable_info_implementation::as_range_visitor_base< V, THandler, T >::from_indexed(), variable_info_implementation::as_range_visitor_base< V, THandler, T >::from_named(), ai::lua_aspect< T >::lua_aspect(), and ai::lua_aspect< T >::recalculate().