25 #ifndef TBX_CARETLISTENER_H_
26 #define TBX_CARETLISTENER_H_
30 #include "eventinfo.h"
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Listener for gain caret Wimp event.
Definition: caretlistener.h:145
Gadget gadget() const
Get the gadget that is losing (LoseCaretListener) or gaining (GainCaretListener) the focus.
Definition: caretlistener.h:68
int colour() const
Get caret colour - if colour set.
Definition: caretlistener.h:90
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
Window window() const
Get Window that is losing (LoseCaretListener) or gaining (GainCaretListener) the caret.
Definition: caretlistener.h:60
The Window object represents a toolbox window.
Definition: window.h:70
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
virtual void gain_caret(CaretEvent &event)=0
virtual function called when the application receives the gain caret window event
virtual void lose_caret(CaretEvent &event)=0
virtual function called when the application receives the lose caret window event
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:72
bool uses_colour() const
caret_color is used for the colour otherwise caret is Wimp colour 11
Definition: caretlistener.h:106
Event data for lose or gain caret listener.
Definition: caretlistener.h:40
CaretEvent(IdBlock &id_block, PollBlock &poll_block)
Construct from toolbox event information.
Definition: caretlistener.h:49
int index() const
The index of the caret into the writeable field or -1 if not in a writeable field.
Definition: caretlistener.h:117
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:42
Component self_component() const
Get the component the event occured on.
Definition: eventrouter.cc:1658
Object self_object() const
Get the object the event occured on.
Definition: eventrouter.cc:1647
int height() const
Get the height of the caret.
Definition: caretlistener.h:85
Base class for all toolbox event listeners.
Definition: listener.h:34
bool invisible() const
Invisible caret.
Definition: caretlistener.h:101
int x_offset() const
Get the current x offset of the caret relative to the window origin.
Definition: caretlistener.h:74
int y_offset() const
Get the current y offset of the caret relative to the window origin.
Definition: caretlistener.h:80
This is the base class for all Gadgets.
Definition: gadget.h:49
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
Listener for LoseCaret Wimp event.
Definition: caretlistener.h:127
bool vdu() const
Is it a vdu caret.
Definition: caretlistener.h:96
bool colour_untranslated() const
Colour is untranslated, otherwise they are a Wimp colour.
Definition: caretlistener.h:111
Class to provide information on a toolbox event.
Definition: eventinfo.h:49