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

#include <Event.hh>

Inheritance diagram for openmsx::Event:
Inheritance graph
[legend]

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 81 of file Event.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

openmsx::Event::Event ( const Event )
delete

◆ Event() [2/2]

openmsx::Event::Event ( EventType  type_)
inlineexplicitprotected

Definition at line 117 of file Event.hh.

References ~Event().

◆ ~Event()

openmsx::Event::~Event ( )
protecteddefault

Referenced by Event().

Member Function Documentation

◆ getType()

EventType openmsx::Event::getType ( ) const
inline

◆ isRepeatStopper()

virtual bool openmsx::Event::isRepeatStopper ( const Event ) const
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.

Definition at line 105 of file Event.hh.

Referenced by openmsx::OsdControlEvent::getButton().

◆ matches()

virtual bool openmsx::Event::matches ( const Event other) const
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.

Definition at line 112 of file Event.hh.

◆ operator!=()

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

Definition at line 36 of file Event.cc.

Referenced by getType().

◆ operator<()

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

Definition at line 13 of file Event.cc.

References getType().

Referenced by getType().

◆ operator<=()

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

Definition at line 23 of file Event.cc.

Referenced by getType().

◆ operator=()

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

◆ operator==()

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

Definition at line 32 of file Event.cc.

Referenced by getType().

◆ operator>()

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

Definition at line 19 of file Event.cc.

Referenced by getType().

◆ operator>=()

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

Definition at line 27 of file Event.cc.

Referenced by getType().

◆ toString()

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

Get a string representation of this event.

Definition at line 8 of file Event.cc.

References openmsx::TclObject::getString(), string_view::str(), and toTclList().

Referenced by getType().

◆ toTclList()

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

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