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