tbx  0.7.5
Public Member Functions | List of all members
tbx::MouseClickEvent Class Reference

Event for click on a window. More...

#include <mouseclicklistener.h>

Inheritance diagram for tbx::MouseClickEvent:
tbx::EventInfo

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

Detailed Description

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

Member Function Documentation

◆ button()

unsigned int tbx::MouseClickEvent::button ( ) const
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.

◆ is_adjust_double()

bool tbx::MouseClickEvent::is_adjust_double ( ) const
inline

Click is a double adjust click.

This only applies to window button type 5 & 10.

◆ is_adjust_drag()

bool tbx::MouseClickEvent::is_adjust_drag ( ) const
inline

Drag started with adjust.

Button types 6 to 11 only

◆ is_select_double()

bool tbx::MouseClickEvent::is_select_double ( ) const
inline

Click is a double select click.

This only applies to window button type 5 & 10.

◆ is_select_drag()

bool tbx::MouseClickEvent::is_select_drag ( ) const
inline

Drag start with select.

Button types 6 to 11 only.


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