openMSX
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
[legend]
Collaboration diagram for openmsx::MouseButtonEvent:
Collaboration graph
[legend]

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 const unsigned LEFT = 1
 
static const unsigned MIDDLE = 2
 
static const unsigned RIGHT = 3
 

Protected Member Functions

 MouseButtonEvent (EventType type, unsigned button_)
 
 ~MouseButtonEvent ()=default
 
TclObject toTclHelper (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 59 of file InputEvents.hh.

Constructor & Destructor Documentation

◆ MouseButtonEvent()

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

Definition at line 68 of file InputEvents.cc.

◆ ~MouseButtonEvent()

openmsx::MouseButtonEvent::~MouseButtonEvent ( )
protecteddefault

Member Function Documentation

◆ getButton()

unsigned openmsx::MouseButtonEvent::getButton ( ) const
inline

Definition at line 66 of file InputEvents.hh.

Referenced by toTclHelper().

◆ toTclHelper()

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

Member Data Documentation

◆ LEFT

const unsigned openmsx::MouseButtonEvent::LEFT = 1
static

Definition at line 62 of file InputEvents.hh.

◆ MIDDLE

const unsigned openmsx::MouseButtonEvent::MIDDLE = 2
static

Definition at line 63 of file InputEvents.hh.

◆ RIGHT

const unsigned openmsx::MouseButtonEvent::RIGHT = 3
static

Definition at line 64 of file InputEvents.hh.


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