openMSX
Classes | Public Types | Public Member Functions | List of all members
openmsx::HotKey Class Referencefinal

#include <HotKey.hh>

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

Classes

struct  Data
 
struct  HotKeyInfo
 

Public Types

using BindMap = std::vector< HotKeyInfo >
 
using KeySet = std::vector< Event >
 

Public Member Functions

 HotKey (RTScheduler &rtScheduler, GlobalCommandController &commandController, EventDistributor &eventDistributor)
 
void loadInit ()
 
void loadBind (const Data &data)
 
void loadUnbind (std::string_view key)
 
template<typename XmlStream >
void saveBindings (XmlStream &xml) const
 
const auto & getGlobalBindings () const
 
- Public Member Functions inherited from openmsx::RTSchedulable
 RTSchedulable (const RTSchedulable &)=delete
 
 RTSchedulable (RTSchedulable &&)=delete
 
RTSchedulableoperator= (const RTSchedulable &)=delete
 
RTSchedulableoperator= (RTSchedulable &&)=delete
 
void scheduleRT (uint64_t delta)
 
bool cancelRT ()
 
bool isPendingRT () const
 

Additional Inherited Members

- Protected Member Functions inherited from openmsx::RTSchedulable
 RTSchedulable (RTScheduler &scheduler)
 
 ~RTSchedulable ()
 

Detailed Description

Definition at line 23 of file HotKey.hh.

Member Typedef Documentation

◆ BindMap

using openmsx::HotKey::BindMap = std::vector<HotKeyInfo>

Definition at line 45 of file HotKey.hh.

◆ KeySet

using openmsx::HotKey::KeySet = std::vector<Event>

Definition at line 46 of file HotKey.hh.

Constructor & Destructor Documentation

◆ HotKey()

openmsx::HotKey::HotKey ( RTScheduler rtScheduler,
GlobalCommandController commandController,
EventDistributor eventDistributor 
)

Definition at line 38 of file HotKey.cc.

Member Function Documentation

◆ getGlobalBindings()

const auto & openmsx::HotKey::getGlobalBindings ( ) const
inline

Definition at line 86 of file HotKey.hh.

Referenced by openmsx::getShortCutForCommand().

◆ loadBind()

void openmsx::HotKey::loadBind ( const Data data)

◆ loadInit()

void openmsx::HotKey::loadInit ( )

Definition at line 163 of file HotKey.cc.

Referenced by openmsx::SettingsConfig::loadSetting().

◆ loadUnbind()

void openmsx::HotKey::loadUnbind ( std::string_view  key)

◆ saveBindings()

template<typename XmlStream >
void openmsx::HotKey::saveBindings ( XmlStream &  xml) const
inline

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