Public Member Functions | Protected Member Functions | List of all members
openmsx::Event Class Referenceabstract

#include <Event.hh>

Inheritance diagram for openmsx::Event:
Inheritance graph

Public Member Functions

 Event (const Event &)=delete
Eventoperator= (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

Detailed Description

Definition at line 80 of file Event.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

openmsx::Event::Event ( const Event )

◆ Event() [2/2]

openmsx::Event::Event ( EventType  type_)

Definition at line 116 of file Event.hh.

◆ ~Event()

openmsx::Event::~Event ( )

Member Function Documentation

◆ getType()

EventType openmsx::Event::getType ( ) const

Definition at line 86 of file Event.hh.

Referenced by operator<(), and openmsx::SimpleEvent::toTclList().

◆ isRepeatStopper()

virtual bool openmsx::Event::isRepeatStopper ( const Event ) const

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.

Definition at line 104 of file Event.hh.

◆ matches()

virtual bool openmsx::Event::matches ( const Event other) const

Does this event 'match' the given event.

Normally an event only matches itself (as defined by operator==). But e.g. MouseMotionGroupEvent matches any MouseMotionEvent.

Definition at line 111 of file Event.hh.

◆ operator!=()

bool openmsx::Event::operator!= ( const Event other) const

Definition at line 36 of file

◆ operator<()

bool openmsx::Event::operator< ( const Event other) const

Definition at line 13 of file

References getType().

◆ operator<=()

bool openmsx::Event::operator<= ( const Event other) const

Definition at line 23 of file

◆ operator=()

Event& openmsx::Event::operator= ( const Event )

◆ operator==()

bool openmsx::Event::operator== ( const Event other) const

Definition at line 32 of file

◆ operator>()

bool openmsx::Event::operator> ( const Event other) const

Definition at line 19 of file

◆ operator>=()

bool openmsx::Event::operator>= ( const Event other) const

Definition at line 27 of file

◆ toString()

std::string openmsx::Event::toString ( ) const

Get a string representation of this event.

Definition at line 8 of file

References toTclList().

◆ toTclList()

virtual TclObject openmsx::Event::toTclList ( ) const
pure virtual

The documentation for this class was generated from the following files: