32 #ifndef TBX_POINTERINFO_H_ 33 #define TBX_POINTERINFO_H_ 48 PointerInfo(
bool update_now =
true,
bool get_objects =
true);
52 void Update(
bool get_objects =
true);
bool on_object() const
Check if pointer is returning object information.
Definition: pointerinfo.h:105
Class to store and fetch information about the WIMP mouse pointer.
Definition: pointerinfo.h:43
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
WindowHandle window_handle() const
Get the WIMP window handle the pointer was over.
Definition: pointerinfo.h:121
int button_state() const
Get the button state.
Definition: pointerinfo.h:77
int mouse_x() const
Get the x mouse coordinate.
Definition: pointerinfo.h:60
bool system_icon() const
Check if this is a system icon.
Definition: pointerinfo.h:167
This is the base class for all Gadgets.
Definition: gadget.h:48
PointerInfo(bool update_now=true, bool get_objects=true)
Constructor to optionally get the current pointer position.
Definition: pointerinfo.cc:44
int WindowHandle
Type for WIMP windows handle.
Definition: handles.h:35
bool on_iconbar() const
Check if the window returned is the iconbar.
Definition: pointerinfo.h:157
IconHandle icon_handle() const
Get the WIMP icon handle the pointer was over.
Definition: pointerinfo.h:130
void Update(bool get_objects=true)
Update to current location of mouse.
Definition: pointerinfo.cc:81
int mouse_y() const
Get the y mouse coordinate.
Definition: pointerinfo.h:66
Object object() const
Return object the pointer is over.
Definition: pointerinfo.cc:108
int IconHandle
Type for WIMP icon handle.
Definition: handles.h:37
Gadget gadget() const
Return gadget the pointer is over.
Definition: pointerinfo.cc:122
bool user_window() const
Check if the window returned is a user window.
Definition: pointerinfo.h:139
bool select_down() const
Check if the select button is pressed.
Definition: pointerinfo.h:97
bool on_background() const
Check if the window returned is the desktop background.
Definition: pointerinfo.h:148
Class to manipulate a toolbox object.
Definition: object.h:50
bool menu_down() const
Check if then menu button is pressed.
Definition: pointerinfo.h:91
bool adjust_down() const
Check if the adjust button is pressed.
Definition: pointerinfo.h:85