Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
key.h File Reference

mcr_Key - Simulate keyboard keys. More...

#include "mcr/base/base.h"

Go to the source code of this file.

Classes

struct  mcr_Key
 

Macros

#define mcr_Key_data(sigPt)   mcr_castpt(struct mcr_Key, mcr_Signal_data(sigPt))
 

Functions

MCR_API int mcr_Key_send (struct mcr_Signal *signalPt)
 Simulate keyboard keys. More...
 
MCR_API int mcr_Key_send_member (struct mcr_Key *dataPt, struct mcr_context *ctx)
 
MCR_API int mcr_Key_compare (const void *lhsPt, const void *rhsPt)
 
MCR_API struct mcr_ISignalmcr_iKey (struct mcr_context *ctx)
 

Detailed Description

mcr_Key - Simulate keyboard keys.

Definition in file key.h.

Macro Definition Documentation

§ mcr_Key_data

#define mcr_Key_data (   sigPt)    mcr_castpt(struct mcr_Key, mcr_Signal_data(sigPt))

Signal data cast mcr_Key *

Definition at line 65 of file key.h.

Function Documentation

§ mcr_iKey()

MCR_API struct mcr_ISignal* mcr_iKey ( struct mcr_context ctx)

Get the Signal interface of mcr_Key

§ mcr_Key_compare()

MCR_API int mcr_Key_compare ( const void *  lhsPt,
const void *  rhsPt 
)

Compare mcr_Key elements, to find by key.

§ mcr_Key_send()

MCR_API int mcr_Key_send ( struct mcr_Signal signalPt)

Simulate keyboard keys.

Precondition
Signal instance data is mcr_Key
Parameters
sigPtHas data member mcr_Key
Returns
reterr

§ mcr_Key_send_member()

MCR_API int mcr_Key_send_member ( struct mcr_Key dataPt,
struct mcr_context ctx 
)