#include <ec_event.h>
Public Member Functions | |
Event () | |
virtual | ~Event () |
virtual void | consume () |
virtual bool | isConsumed () const |
virtual IEventSource * | getSource () const |
virtual void | setSource (IEventSource *source) |
virtual gcn::Widget * | getSourceWidget () const |
virtual void | setSourceWidget (gcn::Widget *widget) |
virtual int | getTimeStamp () const |
virtual void | setTimeStamp (int timestamp) |
virtual const std::string & | getName () const |
virtual std::string | getAttrStr () const |
virtual std::string | getDebugString () const |
Base class for all events
Definition at line 53 of file ec_event.h.
FIFE::Event::Event | ( | ) | [inline] |
Constructor.
Definition at line 57 of file ec_event.h.
virtual FIFE::Event::~Event | ( | ) | [inline, virtual] |
Destructor.
Definition at line 64 of file ec_event.h.
virtual void FIFE::Event::consume | ( | ) | [inline, virtual] |
Marks the event as consumed.
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 68 of file ec_event.h.
virtual std::string FIFE::Event::getAttrStr | ( | ) | const [inline, virtual] |
Gets attribute string of the event
Reimplemented in FIFE::InputEvent, and FIFE::MouseEvent.
Definition at line 110 of file ec_event.h.
Referenced by getDebugString().
virtual std::string FIFE::Event::getDebugString | ( | ) | const [inline, virtual] |
Gets the debugstring of the event
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 120 of file ec_event.h.
References getAttrStr(), and getName().
virtual const std::string& FIFE::Event::getName | ( | ) | const [inline, virtual] |
Gets the name of the event
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 103 of file ec_event.h.
Referenced by getDebugString().
virtual IEventSource* FIFE::Event::getSource | ( | ) | const [inline, virtual] |
Gets the source of the event.
Definition at line 77 of file ec_event.h.
Referenced by FIFE::InputEvent::setTimeStamp().
virtual gcn::Widget* FIFE::Event::getSourceWidget | ( | ) | const [inline, virtual] |
Get the source of the (widget) event. Null for non-widget. FIXME: This is a bit of a hack, using forward declared guichan pointer Should use something non-guichan specific
Definition at line 87 of file ec_event.h.
Referenced by FIFE::InputEvent::getName().
virtual int FIFE::Event::getTimeStamp | ( | ) | const [inline, virtual] |
Gets the timestamp of the event
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 95 of file ec_event.h.
virtual bool FIFE::Event::isConsumed | ( | ) | const [inline, virtual] |
Checks if the event is consumed.
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 73 of file ec_event.h.
virtual void FIFE::Event::setSource | ( | IEventSource * | source | ) | [inline, virtual] |
Sets the source of the event.
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 81 of file ec_event.h.
virtual void FIFE::Event::setSourceWidget | ( | gcn::Widget * | widget | ) | [inline, virtual] |
Set the source of the (widget) event.
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 91 of file ec_event.h.
virtual void FIFE::Event::setTimeStamp | ( | int | timestamp | ) | [inline, virtual] |
Sets the timestamp of the event
Reimplemented in FIFE::InputEvent, FIFE::Command, FIFE::KeyEvent, and FIFE::MouseEvent.
Definition at line 99 of file ec_event.h.