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