Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
openmsx::MouseButtonEvent Class Reference

#include <InputEvents.hh>

Inheritance diagram for openmsx::MouseButtonEvent:
Inheritance graph
Collaboration diagram for openmsx::MouseButtonEvent:
Collaboration graph

Public Member Functions

unsigned getButton () const
- Public Member Functions inherited from openmsx::TimedEvent
uint64_t getRealTime () const
 Query creation time. More...
- Public Member Functions inherited from openmsx::Event
 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...

Static Public Attributes

static constexpr unsigned LEFT = 1
static constexpr unsigned MIDDLE = 2
static constexpr unsigned RIGHT = 3

Protected Member Functions

 MouseButtonEvent (EventType type, unsigned button_)
 ~MouseButtonEvent ()=default
TclObject toTclHelper (std::string_view direction) const
- Protected Member Functions inherited from openmsx::TimedEvent
 TimedEvent (EventType type)
 ~TimedEvent ()=default
- Protected Member Functions inherited from openmsx::Event
 Event (EventType type_)
 ~Event ()=default

Detailed Description

Definition at line 72 of file InputEvents.hh.

Constructor & Destructor Documentation

◆ MouseButtonEvent()

openmsx::MouseButtonEvent::MouseButtonEvent ( EventType  type,
unsigned  button_ 

Definition at line 62 of file

◆ ~MouseButtonEvent()

openmsx::MouseButtonEvent::~MouseButtonEvent ( )

Member Function Documentation

◆ getButton()

unsigned openmsx::MouseButtonEvent::getButton ( ) const

Definition at line 79 of file InputEvents.hh.

Referenced by toTclHelper().

◆ toTclHelper()

TclObject openmsx::MouseButtonEvent::toTclHelper ( std::string_view  direction) const

Member Data Documentation


constexpr unsigned openmsx::MouseButtonEvent::LEFT = 1

Definition at line 75 of file InputEvents.hh.


constexpr unsigned openmsx::MouseButtonEvent::MIDDLE = 2

Definition at line 76 of file InputEvents.hh.


constexpr unsigned openmsx::MouseButtonEvent::RIGHT = 3

Definition at line 77 of file InputEvents.hh.

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