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:34
std::string text() const
Get the text of the gadget that delivered the event.
Definition: textchangedlistener.h:71
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
Event details for a change of text in a gadget.
Definition: textchangedlistener.h:39
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:71
virtual ~TextChangedEvent()
Virtual destructor.
Definition: textchangedlistener.h:51
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
std::string text_from_event() const
text from event data
Definition: textchangedlistener.h:85
Listener for text changed events.
Definition: textchangedlistener.h:92
bool too_long() const
Check if new text was delivered with the toolbox event.
Definition: textchangedlistener.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
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:41
TextChangedEvent(IdBlock &id_block, PollBlock &data)
Construct the event.
Definition: textchangedlistener.h:45
virtual std::string text_from_gadget() const =0
Override in sub class to fetch text from the gadget.