openMSX
|
#include <Event.hh>
Public Member Functions | |
Event (const Event &)=delete | |
Event & | operator= (const Event &)=delete |
EventType | getType () const |
std::string | toString () const |
Get a string representation of this event. More... | |
virtual TclObject | toTclList () const =0 |
Similar to toString(), but retains the structure of the event. More... | |
bool | operator< (const Event &other) const |
bool | operator> (const Event &other) const |
bool | operator<= (const Event &other) const |
bool | operator>= (const Event &other) const |
bool | operator== (const Event &other) const |
bool | operator!= (const Event &other) const |
virtual bool | isRepeatStopper (const Event &) const |
Should 'bind -repeat' be stopped by 'other' event. More... | |
virtual bool | matches (const Event &other) const |
Does this event 'match' the given event. More... | |
Protected Member Functions | |
Event (EventType type_) | |
~Event ()=default | |
|
delete |
|
inlineexplicitprotected |
|
protecteddefault |
|
inline |
Definition at line 86 of file Event.hh.
Referenced by operator<(), and openmsx::SimpleEvent::toTclList().
|
inlinevirtual |
Should 'bind -repeat' be stopped by 'other' event.
Normally all events should stop auto-repeat of the previous event. But see OsdControlEvent for some exceptions.
Reimplemented in openmsx::OsdControlEvent.
|
inlinevirtual |
Does this event 'match' the given event.
Normally an event only matches itself (as defined by operator==). But e.g. MouseMotionGroupEvent matches any MouseMotionEvent.
bool openmsx::Event::operator!= | ( | const Event & | other | ) | const |
bool openmsx::Event::operator< | ( | const Event & | other | ) | const |
bool openmsx::Event::operator<= | ( | const Event & | other | ) | const |
bool openmsx::Event::operator== | ( | const Event & | other | ) | const |
bool openmsx::Event::operator>= | ( | const Event & | other | ) | const |
std::string openmsx::Event::toString | ( | ) | const |
Get a string representation of this event.
Definition at line 8 of file Event.cc.
References toTclList().
|
pure virtual |
Similar to toString(), but retains the structure of the event.
Implemented in openmsx::GroupEvent, openmsx::OsdControlPressEvent, openmsx::OsdControlReleaseEvent, openmsx::QuitEvent, openmsx::FileDropEvent, openmsx::ResizeEvent, openmsx::FocusEvent, openmsx::JoystickHatEvent, openmsx::JoystickAxisMotionEvent, openmsx::JoystickButtonDownEvent, openmsx::JoystickButtonUpEvent, openmsx::MouseMotionEvent, openmsx::MouseWheelEvent, openmsx::MouseButtonDownEvent, openmsx::MouseButtonUpEvent, openmsx::FinishFrameEvent, openmsx::SimpleEvent, and openmsx::CliCommandEvent.
Referenced by toString().