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

Forward declaration of types. More...

#include "mcr/util/util.h"

Go to the source code of this file.

Classes

struct  mcr_DispatchReceiver
 
struct  mcr_ReceiverMapElement
 
struct  mcr_MapElement
 
struct  mcr_Array_tag
 
struct  mcr_Map_tag
 
struct  mcr_BiMap
 

Typedefs

typedef bool(* mcr_dispatch_receive_fnc) (struct mcr_DispatchReceiver *dispatchReceiver, struct mcr_Signal *dispatchSignal, unsigned int mods)
 
typedef struct mcr_Array_tag mcr_Array_t
 
typedef struct mcr_Map_tag mcr_Map_t
 
typedef long long mcr_SpacePosition[MCR_DIMENSION_COUNT]
 
typedef mcr_SpacePosition mcr_Dimensions
 

Enumerations

enum  mcr_Dimension {
  MCR_X = 0, MCR_Y, MCR_Z, MCR_W,
  MCR_Y1 = MCR_X, MCR_Y2 = MCR_Y, MCR_Y3 = MCR_Z, MCR_Y4 = MCR_W,
  MCR_DIMENSION_MAX = MCR_Z, MCR_DIMENSION_COUNT = MCR_DIMENSION_MAX + 1
}
 
enum  mcr_ApplyType { MCR_SET = 0, MCR_UNSET, MCR_BOTH, MCR_TOGGLE }
 

Detailed Description

Forward declaration of types.

Definition in file types.h.

Typedef Documentation

§ mcr_Array_t

typedef struct mcr_Array_tag mcr_Array_t

Can be used as a function parameter for an array.

§ mcr_Dimensions

mcr_SpacePosition

Definition at line 178 of file types.h.

§ mcr_dispatch_receive_fnc

typedef bool(* mcr_dispatch_receive_fnc) (struct mcr_DispatchReceiver *dispatchReceiver, struct mcr_Signal *dispatchSignal, unsigned int mods)

Receive dispatch before signal is sent

Parameters
dispatchReceiverHas a reference to the receiver. mcr_DispatchReceiver::receiver
dispatchSignalIntercepted signal
modsIntercepted modifiers
Returns
True to block from sending

Definition at line 50 of file types.h.

§ mcr_Map_t

typedef struct mcr_Map_tag mcr_Map_t
Todo:
may replace mcr_Map with this.

§ mcr_SpacePosition

typedef long long mcr_SpacePosition[MCR_DIMENSION_COUNT]

Spatial position, indices are coordinates. MCR_DIMENSION_COUNT

This is logically a spatial vector for MCR_DIMENSION_COUNT coordinates.

Definition at line 176 of file types.h.

Enumeration Type Documentation

§ mcr_ApplyType

A value state is set or unset

Enumerator
MCR_SET 

Set, value is applied.

MCR_UNSET 

Unset, value is released or not applied.

MCR_BOTH 

Value is both set and unset, in that order.

MCR_TOGGLE 

Set or unset is swapped. Other mcr_ApplyType are ignored.

Definition at line 160 of file types.h.

§ mcr_Dimension

Usable spatial dimensions for cursor/spatial events

Enumerator
MCR_W 

mcr_future

MCR_Y4 

mcr_future

Definition at line 144 of file types.h.