|
libt3widget
|
Public Member Functions | |
| void | grab_mouse (void) |
| Grab all future mouse events. More... | |
| virtual bool | process_mouse_event (mouse_event_t event)=0 |
| Process a mouse event. More... | |
| void | register_mouse_target (t3_window_t *target) |
| Register a window to receive mouse events. More... | |
| void | release_mouse_grab (void) |
| Release a previous mouse grab. More... | |
| void | unregister_mouse_target (t3_window_t *target) |
| Unregister a window to receive mouse events. More... | |
Static Public Member Functions | |
| static bool | handle_mouse_event (mouse_event_t event) |
Protected Member Functions | |
| mouse_target_t (bool use_window=true) | |
Protected Member Functions inherited from t3_widget::window_component_t | |
| virtual void | force_redraw (void)=0 |
| Request that this window_component_t be completely redrawn. More... | |
| virtual t3_window_t * | get_base_window (void) |
| Retrieve the t3_window_t for this window_component_t. More... | |
| virtual void | hide (void)=0 |
| Hide the window_component_t. More... | |
| virtual bool | process_key (key_t key)=0 |
| Handle a key press by the user. More... | |
| virtual void | set_focus (focus_t focus)=0 |
| Set whether this window_component_t has the input focus. More... | |
| virtual void | set_position (optint top, optint left)=0 |
| Move the window_component_t to a specified position. More... | |
| virtual bool | set_size (optint height, optint width)=0 |
| Set the size of this window_component_t. More... | |
| virtual void | show (void)=0 |
| Display the window_component_t. More... | |
| virtual void | update_contents (void)=0 |
| Update the contents of the window. More... | |
| window_component_t (void) | |
| Base constructor. More... | |
| virtual | ~window_component_t (void) |
| Base destructor. More... | |
Additional Inherited Members | |
Protected Types inherited from t3_widget::window_component_t | |
| enum | focus_t { FOCUS_OUT, FOCUS_SET, FOCUS_IN_FWD, FOCUS_IN_BCK, FOCUS_REVERT } |
Protected Attributes inherited from t3_widget::window_component_t | |
| cleanup_t3_window_ptr | window |
| The t3_window_t used for presenting this item on screen (see libt3window). More... | |
| void t3_widget::mouse_target_t::grab_mouse | ( | void | ) |
Grab all future mouse events.
Ensure that all mouse events are reported to the current ::mouse_target_t, and not to the ::mouse_target_t that should normally receive them. The grab should released using release_mouse_grab.
|
pure virtual |
Process a mouse event.
Implemented in t3_widget::edit_window_t, t3_widget::text_field_t::drop_down_list_t, t3_widget::text_field_t, t3_widget::file_pane_t::search_panel_t, t3_widget::file_pane_t, t3_widget::menu_bar_t, t3_widget::list_pane_t, t3_widget::widget_t, t3_widget::expander_t, t3_widget::button_t, t3_widget::text_window_t, t3_widget::scrollbar_t, t3_widget::checkbox_t, t3_widget::color_picker_base_t, and t3_widget::popup_t.
| void t3_widget::mouse_target_t::register_mouse_target | ( | t3_window_t * | target | ) |
Register a window to receive mouse events.
| void t3_widget::mouse_target_t::release_mouse_grab | ( | void | ) |
Release a previous mouse grab.
| void t3_widget::mouse_target_t::unregister_mouse_target | ( | t3_window_t * | target | ) |
Unregister a window to receive mouse events.
1.8.9.1