gui2::tevent_handler::tmouse_button Struct Reference

Collaboration diagram for gui2::tevent_handler::tmouse_button:

Collaboration graph
[legend]

List of all members.

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.
twidgetfocus
 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?


Detailed Description

Definition at line 70 of file event_handler.hpp.


Constructor & Destructor Documentation

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.


Member Data Documentation

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().

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().

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().


The documentation for this struct was generated from the following file:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs