Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
mcr::KeyDispatcher Struct Reference

#include <key_dispatcher.h>

Public Member Functions

 KeyDispatcher (Libmacro *context=nullptr)
 
 KeyDispatcher (const KeyDispatcher &copytron)
 
KeyDispatcheroperator= (const KeyDispatcher &)
 
mcr_AbsKeyDispatcheroperator* ()
 
const mcr_AbsKeyDispatcheroperator* () const
 
virtual void add (struct mcr_Signal *sigPt, void *receiver, mcr_dispatch_receive_fnc receiverFnc)
 
virtual void clear ()
 
virtual void remove (void *remReceiver)
 
virtual void trim ()
 
virtual unsigned int modifiers (int key) const
 
virtual int key (unsigned int modifiers) const
 
virtual void setModifiers (int key, unsigned int modifiers, bool updateFlag=true)
 
virtual void addModifiers (int key, unsigned int modifiers, bool updateFlag=true)
 
virtual void clearModifiers ()
 

Static Public Member Functions

static KeyDispatcheroffset (mcr_IDispatcher *originPt)
 
static const KeyDispatcheroffset (const mcr_IDispatcher *originPt)
 

Public Attributes

const int ANY = MCR_KEY_ANY
 
mcr_AbsKeyDispatcher self
 

Friends

class KeyDispatcherPrivate
 

Detailed Description

Each key will be at most one modifier, and each modifier will be at most one key. However, multiple keys may be mapped to the same modifier.

Definition at line 38 of file key_dispatcher.h.


The documentation for this struct was generated from the following file: