Public Member Functions | |
tmouse_button (const std::string &name, void(tevent_executor::*down)(tevent_handler &), void(tevent_executor::*up)(tevent_handler &), void(tevent_executor::*click)(tevent_handler &), void(tevent_executor::*double_click)(tevent_handler &), bool(tevent_executor::*wants_double_click)() const) | |
Public Attributes | |
Uint32 | last_click_stamp |
The time of the last click used for double clicking. | |
twidget * | focus |
If the mouse isn't captured we need to verify the up is on the same widget as the down so we send a proper click, also needed to send the up to the right widget. | |
const std::string | name |
used for debug messages. | |
void(tevent_executor::* | down )(tevent_handler &) |
Pointers to member functions, this way we can call the proper function indirect without writing a case for which button to use. | |
void(tevent_executor::* | up )(tevent_handler &) |
void(tevent_executor::* | click )(tevent_handler &) |
void(tevent_executor::* | double_click )(tevent_handler &) |
bool(tevent_executor::* | wants_double_click )() const |
bool | is_down |
Is the button down? |
Definition at line 70 of file event_handler.hpp.
gui2::tevent_handler::tmouse_button::tmouse_button | ( | const std::string & | name, | |
void(tevent_executor::*)(tevent_handler &) | down, | |||
void(tevent_executor::*)(tevent_handler &) | up, | |||
void(tevent_executor::*)(tevent_handler &) | click, | |||
void(tevent_executor::*)(tevent_handler &) | double_click, | |||
bool(tevent_executor::*)() const | wants_double_click | |||
) | [inline] |
Definition at line 72 of file event_handler.hpp.
The time of the last click used for double clicking.
Definition at line 90 of file event_handler.hpp.
Referenced by gui2::tevent_handler::mouse_click().
If the mouse isn't captured we need to verify the up is on the same widget as the down so we send a proper click, also needed to send the up to the right widget.
Definition at line 95 of file event_handler.hpp.
Referenced by gui2::tevent_handler::mouse_button_down(), and gui2::tevent_handler::mouse_button_up().
const std::string gui2::tevent_handler::tmouse_button::name |
used for debug messages.
Definition at line 98 of file event_handler.hpp.
Referenced by gui2::tevent_handler::mouse_button_down(), and gui2::tevent_handler::mouse_button_up().
void(tevent_executor::* gui2::tevent_handler::tmouse_button::down)(tevent_handler &) |
Pointers to member functions, this way we can call the proper function indirect without writing a case for which button to use.
Referenced by gui2::tevent_handler::mouse_button_down().
void(tevent_executor::* gui2::tevent_handler::tmouse_button::up)(tevent_handler &) |
Referenced by gui2::tevent_handler::mouse_button_up().
void(tevent_executor::* gui2::tevent_handler::tmouse_button::click)(tevent_handler &) |
Referenced by gui2::tevent_handler::mouse_click().
void(tevent_executor::* gui2::tevent_handler::tmouse_button::double_click)(tevent_handler &) |
Referenced by gui2::tevent_handler::mouse_click().
bool(tevent_executor::* gui2::tevent_handler::tmouse_button::wants_double_click)() const |
Referenced by gui2::tevent_handler::mouse_click().
Is the button down?
Definition at line 110 of file event_handler.hpp.
Referenced by gui2::tevent_handler::mouse_button_down(), gui2::tevent_handler::mouse_button_up(), and gui2::tevent_handler::set_hover().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |