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