#include <distributor.hpp>


Public Member Functions | |
| tmouse_button (const std::string &name_, twidget &owner, const tdispatcher::tposition queue_position) | |
Protected Attributes | |
| Uint32 | last_click_stamp_ |
| The time of the last click used for double clicking. | |
| twidget * | last_clicked_widget_ |
| The widget the last click was on, 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. | |
Private Member Functions | |
| void | signal_handler_sdl_button_down (const event::tevent event, bool &handled, const tpoint &coordinate) |
| void | signal_handler_sdl_button_up (const event::tevent event, bool &handled, const tpoint &coordinate) |
| void | mouse_button_click (twidget *widget) |
Private Attributes | |
| const std::string | name_ |
| used for debug messages. | |
| bool | is_down_ |
| Is the button down? | |
| bool | signal_handler_sdl_button_down_entered_ |
| bool | signal_handler_sdl_button_up_entered_ |
Definition at line 158 of file distributor.hpp.
| gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::tmouse_button | ( | const std::string & | name_, | |
| twidget & | owner, | |||
| const tdispatcher::tposition | queue_position | |||
| ) | [inline] |
Definition at line 327 of file distributor.cpp.
References gui2::event::tdispatcher::connect_signal(), and gui2::event::tmouse_motion::owner_.

| void gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::signal_handler_sdl_button_down | ( | const event::tevent | event, | |
| bool & | handled, | |||
| const tpoint & | coordinate | |||
| ) | [inline, private] |
Definition at line 376 of file distributor.cpp.
References assert, DBG_GUI_E, gui2::twidget::find_at(), gui2::event::tdispatcher::fire(), LOG_HEADER, gui2::event::tmouse_motion::mouse_captured_, gui2::event::tmouse_motion::mouse_focus_, gui2::event::tmouse_motion::owner_, and WRN_GUI_E.

| void gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::signal_handler_sdl_button_up | ( | const event::tevent | event, | |
| bool & | handled, | |||
| const tpoint & | coordinate | |||
| ) | [inline, private] |
Definition at line 441 of file distributor.cpp.
References DBG_GUI_E, gui2::twidget::find_at(), gui2::event::tdispatcher::fire(), LOG_HEADER, gui2::event::tmouse_motion::mouse_captured_, gui2::event::tmouse_motion::mouse_enter(), gui2::event::tmouse_motion::mouse_focus_, gui2::event::tmouse_motion::mouse_leave(), gui2::event::tmouse_motion::owner_, and WRN_GUI_E.

| void gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::mouse_button_click | ( | twidget * | widget | ) | [inline, private] |
Definition at line 508 of file distributor.cpp.
References DBG_GUI_E, gui2::settings::double_click_time, gui2::event::tdispatcher::fire(), LOG_HEADER, and gui2::event::tmouse_motion::owner_.

Uint32 gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::last_click_stamp_ [protected] |
The time of the last click used for double clicking.
Definition at line 169 of file distributor.hpp.
twidget* gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::last_clicked_widget_ [protected] |
The widget the last click was on, used for double clicking.
Definition at line 172 of file distributor.hpp.
twidget* gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::focus_ [protected] |
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 179 of file distributor.hpp.
const std::string gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::name_ [private] |
bool gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::is_down_ [private] |
bool gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::signal_handler_sdl_button_down_entered_ [private] |
Definition at line 188 of file distributor.hpp.
bool gui2::event::tmouse_button< sdl_button_down, sdl_button_up, button_down, button_up, button_click, button_double_click >::signal_handler_sdl_button_up_entered_ [private] |
Definition at line 194 of file distributor.hpp.
| Generated by doxygen 1.5.6 on Fri Sep 3 01:05:50 2010 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |