22 #ifndef FIFE_EVENTCHANNEL_TEXTEVENT_H 23 #define FIFE_EVENTCHANNEL_TEXTEVENT_H 79 virtual const std::string&
getName()
const {
80 const static std::string eventName(
"TextEvent");
virtual void consume()
Marks events as consumed.
virtual void setSource(IEventSource *source)
Sets the source of the event.
TextEventType m_eventType
virtual const std::string & getName() const
Gets the name of the event.
const Text & getText() const
TextEventType getType() const
virtual IEventSource * getSource() const
Gets the source of the event.
virtual ~TextEvent()
Destructor.
virtual bool isConsumed() const
Checks whether event is consumed.
virtual std::string getDebugString() const
Gets the debugstring of the event.
void setText(const Text &text)
virtual void consumedByWidgets()
Marks events as consumed by widget library.
void setType(TextEventType type)
virtual bool isConsumedByWidgets() const
Checks whether event is consumed by widget library.
Representation of event source (a thing sending events)
virtual void setTimeStamp(int32_t timestamp)
Sets the timestamp of the event.
virtual int32_t getTimeStamp() const
Gets the timestamp of the event.