FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
Class for text events. More...
#include <textevent.h>
Public Types | |
enum | TextEventType { UNKNOWN = 0, INPUT = 1, EDIT = 2 } |
Public Member Functions | |
TextEvent () | |
Constructor. More... | |
virtual | ~TextEvent () |
Destructor. More... | |
TextEventType | getType () const |
void | setType (TextEventType type) |
const Text & | getText () const |
void | setText (const Text &text) |
virtual void | consume () |
Marks events as consumed. More... | |
virtual bool | isConsumed () const |
Checks whether event is consumed. More... | |
virtual void | consumedByWidgets () |
Marks events as consumed by widget library. More... | |
virtual bool | isConsumedByWidgets () const |
Checks whether event is consumed by widget library. More... | |
virtual IEventSource * | getSource () const |
Gets the source of the event. More... | |
virtual void | setSource (IEventSource *source) |
Sets the source of the event. More... | |
virtual int32_t | getTimeStamp () const |
Gets the timestamp of the event. More... | |
virtual void | setTimeStamp (int32_t timestamp) |
Sets the timestamp of the event. More... | |
virtual const std::string & | getName () const |
Gets the name of the event. More... | |
virtual std::string | getDebugString () const |
Gets the debugstring of the event. More... | |
Public Member Functions inherited from FIFE::InputEvent | |
InputEvent () | |
Constructor. More... | |
~InputEvent () | |
Destructor. More... | |
virtual bool | isAltPressed () const |
Checks whether alt is pressed. More... | |
virtual void | setAltPressed (bool pressed) |
Sets alt to pressed. More... | |
virtual bool | isControlPressed () const |
Checks whether control is pressed. More... | |
virtual void | setControlPressed (bool pressed) |
Sets control to pressed. More... | |
virtual bool | isMetaPressed () const |
Checks whether meta is pressed. More... | |
virtual void | setMetaPressed (bool pressed) |
Sets meta to pressed. More... | |
virtual bool | isShiftPressed () const |
Checks whether shift is pressed. More... | |
virtual void | setShiftPressed (bool pressed) |
Sets shift to pressed. More... | |
virtual std::string | getAttrStr () const |
Gets attribute string of the event. More... | |
Public Member Functions inherited from FIFE::Event | |
Event () | |
Constructor. More... | |
virtual | ~Event () |
Destructor. More... | |
Private Attributes | |
TextEventType | m_eventType |
Text | m_text |
Class for text events.
Definition at line 45 of file textevent.h.
Enumerator | |
---|---|
UNKNOWN | |
INPUT | |
EDIT |
Definition at line 47 of file textevent.h.
|
inline |
Constructor.
Definition at line 55 of file textevent.h.
|
inlinevirtual |
Destructor.
Definition at line 62 of file textevent.h.
|
inlinevirtual |
Marks events as consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 70 of file textevent.h.
References FIFE::InputEvent::consume().
|
inlinevirtual |
Marks events as consumed by widget library.
Reimplemented from FIFE::InputEvent.
Definition at line 72 of file textevent.h.
References FIFE::InputEvent::consumedByWidgets().
|
inlinevirtual |
Gets the debugstring of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 83 of file textevent.h.
References FIFE::InputEvent::getDebugString().
|
inlinevirtual |
Gets the name of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 79 of file textevent.h.
|
inlinevirtual |
Gets the source of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 74 of file textevent.h.
References FIFE::InputEvent::getSource().
|
inline |
Definition at line 67 of file textevent.h.
References m_text.
|
inlinevirtual |
Gets the timestamp of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 76 of file textevent.h.
References FIFE::InputEvent::getTimeStamp().
|
inline |
Definition at line 64 of file textevent.h.
References m_eventType.
Referenced by FIFE::EventManager::dispatchTextEvent().
|
inlinevirtual |
Checks whether event is consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 71 of file textevent.h.
References FIFE::InputEvent::isConsumed().
Referenced by FIFE::EventManager::dispatchTextEvent().
|
inlinevirtual |
Checks whether event is consumed by widget library.
Reimplemented from FIFE::InputEvent.
Definition at line 73 of file textevent.h.
References FIFE::InputEvent::isConsumedByWidgets().
|
inlinevirtual |
Sets the source of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 75 of file textevent.h.
References FIFE::InputEvent::setSource().
Referenced by FIFE::EventManager::processTextEvent().
|
inline |
Definition at line 68 of file textevent.h.
References m_text.
Referenced by FIFE::EventManager::fillTextEvent().
|
inlinevirtual |
Sets the timestamp of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 77 of file textevent.h.
References FIFE::InputEvent::setTimeStamp().
|
inline |
Definition at line 65 of file textevent.h.
References m_eventType.
Referenced by FIFE::EventManager::fillTextEvent().
|
private |
Definition at line 86 of file textevent.h.
|
private |
Definition at line 87 of file textevent.h.