tbx
0.7.5
|
Event for click on a window. More...
#include <mouseclicklistener.h>
Public Member Functions | |
MouseClickEvent (IdBlock &id_block, PollBlock &data, bool d) | |
Constructor. | |
int | x () const |
x coordinate of click in screen coordinates | |
int | y () const |
y coordinate of click in screen coordinates | |
Point | point () const |
Point of the click in screen coordinates. | |
unsigned int | button () const |
Button pressed. More... | |
bool | is_adjust () const |
Adjust button has been clicked. | |
bool | is_menu () const |
Menu button has been clicked. | |
bool | is_select () const |
Select button has been clicked. | |
bool | is_adjust_drag () const |
Drag started with adjust. More... | |
bool | is_select_drag () const |
Drag start with select. More... | |
bool | is_adjust_double () const |
Click is a double adjust click. More... | |
bool | is_select_double () const |
Click is a double select click. More... | |
Event for click on a window.
Window clicked upon is id_block().self_object(); Gadget clicked upon is id_block().self_component() and will be null if click is on a window background
|
inline |
Button pressed.
Depends on the windows button flags. See the RISC OS Wimp_CreateIcon entry in the PRM for details.
The methods below take into account the icon/window button flags and return a consistent result.
|
inline |
Click is a double adjust click.
This only applies to window button type 5 & 10.
|
inline |
Drag started with adjust.
Button types 6 to 11 only
|
inline |
Click is a double select click.
This only applies to window button type 5 & 10.
|
inline |
Drag start with select.
Button types 6 to 11 only.