|
FIFE
2008.0
|
#include <ec_mouseevent.h>


Public Types | |
| enum | MouseEventType |
| enum | MouseButtonType |
Public Member Functions | |
| MouseEvent () | |
| virtual | ~MouseEvent () |
| MouseButtonType | getButton () const |
| MouseEventType | getType () const |
| int | getX () const |
| int | getY () const |
| virtual bool | isAltPressed () const |
| virtual bool | isControlPressed () const |
| virtual bool | isMetaPressed () const |
| virtual bool | isShiftPressed () const |
| virtual void | consume () |
| virtual bool | isConsumed () const |
| virtual void | consumedByWidgets () |
| virtual void | setSource (IEventSource *source) |
| virtual int | getTimeStamp () const |
| virtual void | setTimeStamp (int timestamp) |
| virtual const std::string & | getName () const |
| virtual std::string | getDebugString () const |
| virtual std::string | getAttrStr () const |
Public Member Functions inherited from FIFE::InputEvent | |
| InputEvent () | |
| ~InputEvent () | |
Public Member Functions inherited from FIFE::Event | |
| Event () | |
| virtual | ~Event () |
| virtual IEventSource * | getSource () const |
Static Public Member Functions | |
| static std::string | mouseEventType2str (MouseEventType t) |
| static std::string | mouseButtonType2str (MouseButtonType t) |
Class for mouse events
Definition at line 42 of file ec_mouseevent.h.
Mouse button types.
Definition at line 64 of file ec_mouseevent.h.
Mouse event types.
Definition at line 47 of file ec_mouseevent.h.
|
inline |
Constructor.
Definition at line 76 of file ec_mouseevent.h.
|
inlinevirtual |
Destructor.
Definition at line 85 of file ec_mouseevent.h.
|
inlinevirtual |
Marks the event as consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 126 of file ec_mouseevent.h.
|
inlinevirtual |
Marks events as consumed by widget library.
Reimplemented from FIFE::InputEvent.
Definition at line 128 of file ec_mouseevent.h.
|
inlinevirtual |
Gets attribute string of the event
Reimplemented from FIFE::InputEvent.
Definition at line 140 of file ec_mouseevent.h.
References mouseButtonType2str(), and mouseEventType2str().
|
inline |
Gets the button of the mouse event.
Definition at line 91 of file ec_mouseevent.h.
|
inlinevirtual |
Gets the debugstring of the event
Reimplemented from FIFE::InputEvent.
Definition at line 139 of file ec_mouseevent.h.
|
inlinevirtual |
Gets the name of the event
Reimplemented from FIFE::InputEvent.
Definition at line 135 of file ec_mouseevent.h.
|
inlinevirtual |
Gets the timestamp of the event
Reimplemented from FIFE::InputEvent.
Definition at line 132 of file ec_mouseevent.h.
|
inline |
Gets the type of the event.
Definition at line 98 of file ec_mouseevent.h.
|
inline |
Gets the x coordinate of the mouse event. The coordinate is relative to the source event source.
Definition at line 106 of file ec_mouseevent.h.
|
inline |
Gets the y coordinate of the mouse event. The coordinate is relative to the source event source.
Definition at line 114 of file ec_mouseevent.h.
|
inlinevirtual |
Checks whether alt is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 117 of file ec_mouseevent.h.
|
inlinevirtual |
Checks if the event is consumed.
Reimplemented from FIFE::InputEvent.
Definition at line 127 of file ec_mouseevent.h.
|
inlinevirtual |
Checks whether control is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 119 of file ec_mouseevent.h.
|
inlinevirtual |
Checks whether meta is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 121 of file ec_mouseevent.h.
|
inlinevirtual |
Checks whether shift is pressed.
Reimplemented from FIFE::InputEvent.
Definition at line 123 of file ec_mouseevent.h.
|
inlinestatic |
Returns string representation of given button type
Definition at line 190 of file ec_mouseevent.h.
Referenced by getAttrStr().

|
inlinestatic |
Returns string representation of given event type
Definition at line 152 of file ec_mouseevent.h.
Referenced by getAttrStr().

|
inlinevirtual |
Sets the source of the event.
Reimplemented from FIFE::InputEvent.
Definition at line 131 of file ec_mouseevent.h.
|
inlinevirtual |
Sets the timestamp of the event
Reimplemented from FIFE::InputEvent.
Definition at line 133 of file ec_mouseevent.h.