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

mcr_MoveCursor - Change spatial coordinates of cursor. More...

#include "mcr/base/base.h"

Go to the source code of this file.

Classes

struct  mcr_MoveCursor
 

Macros

#define mcr_MoveCursor_data(sigPt)   mcr_castpt(struct mcr_MoveCursor, mcr_Signal_data(sigPt))
 

Functions

MCR_API int mcr_MoveCursor_send (struct mcr_Signal *signalPt)
 Move HID cursor position. More...
 
MCR_API int mcr_MoveCursor_send_member (struct mcr_MoveCursor *mcPt, struct mcr_context *ctx)
 
MCR_API void mcr_cursor_position (struct mcr_context *ctx, mcr_SpacePosition buffer)
 
MCR_API bool mcr_resembles (const struct mcr_MoveCursor *lhs, const struct mcr_MoveCursor *rhs, const unsigned int measurementError)
 
MCR_API struct mcr_ISignalmcr_iMoveCursor (struct mcr_context *ctx)
 

Detailed Description

mcr_MoveCursor - Change spatial coordinates of cursor.

Definition in file move_cursor.h.

Macro Definition Documentation

§ mcr_MoveCursor_data

#define mcr_MoveCursor_data (   sigPt)    mcr_castpt(struct mcr_MoveCursor, mcr_Signal_data(sigPt))

Signal data cast mcr_MoveCursor *

Definition at line 76 of file move_cursor.h.

Function Documentation

§ mcr_cursor_position()

MCR_API void mcr_cursor_position ( struct mcr_context ctx,
mcr_SpacePosition  buffer 
)

Current cursor position

mcr_platform

§ mcr_iMoveCursor()

MCR_API struct mcr_ISignal* mcr_iMoveCursor ( struct mcr_context ctx)

Signal interface of mcr_MoveCursor

§ mcr_MoveCursor_send()

MCR_API int mcr_MoveCursor_send ( struct mcr_Signal signalPt)

Move HID cursor position.

Precondition
Signal data is mcr_MoveCursor
Returns
reterr

§ mcr_MoveCursor_send_member()

MCR_API int mcr_MoveCursor_send_member ( struct mcr_MoveCursor mcPt,
struct mcr_context ctx 
)

mcr_MoveCursor_send

Todo:
Translate absolute coordinates on all screens size. Also allow to recalculate position values when screens size changes. mcr_platform
Returns
reterr

§ mcr_resembles()

MCR_API bool mcr_resembles ( const struct mcr_MoveCursor lhs,
const struct mcr_MoveCursor rhs,
const unsigned int  measurementError 
)

If justified then mcr_resembles_justified, else mcr_resembles_absolute

Parameters
lhsopt
rhsopt
measurementErrorOnly used in absolute
Returns
If false cursors do not resemble each other, otherwise they do