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

#include <Event.hh>

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

Public Member Functions

virtual ~Event ()
EventType getType () const
std::string toString () 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.
virtual bool matches (const Event &other) const
 Does this event 'match' the given event.

Protected Member Functions

 Event (EventType type)

Additional Inherited Members

Detailed Description

Definition at line 88 of file Event.hh.

Constructor & Destructor Documentation

openmsx::Event::~Event ( )
virtual

Definition at line 13 of file Event.cc.

openmsx::Event::Event ( EventType  type)
explicitprotected

Definition at line 8 of file Event.cc.

Member Function Documentation

EventType openmsx::Event::getType ( ) const

Definition at line 17 of file Event.cc.

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

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

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

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

Definition at line 40 of file Event.cc.

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

Definition at line 29 of file Event.cc.

References getType().

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

Definition at line 36 of file Event.cc.

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

Definition at line 22 of file Event.cc.

References openmsx::TclObject::getString(), and string_ref::str().


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