25 #ifndef TBX_TEXTCHANGEDLISTENER_H_
26 #define TBX_TEXTCHANGEDLISTENER_H_
29 #include "eventinfo.h"
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
virtual std::string text_from_gadget() const =0
Override in sub class to fetch text from the gadget.
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
std::string text() const
Get the text of the gadget that delivered the event.
Definition: textchangedlistener.h:71
virtual ~TextChangedEvent()
Virtual destructor.
Definition: textchangedlistener.h:51
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:72
bool too_long() const
Check if new text was delivered with the toolbox event.
Definition: textchangedlistener.h:60
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:42
std::string text_from_event() const
text from event data
Definition: textchangedlistener.h:85
virtual void text_changed(TextChangedEvent &event)=0
The text has been changed.
Base class for all toolbox event listeners.
Definition: listener.h:34
Event details for a change of text in a gadget.
Definition: textchangedlistener.h:40
Listener for text changed events.
Definition: textchangedlistener.h:93
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
TextChangedEvent(IdBlock &id_block, PollBlock &data)
Construct the event.
Definition: textchangedlistener.h:45
Class to provide information on a toolbox event.
Definition: eventinfo.h:49