Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
move_cursor.h
Go to the documentation of this file.
1 /* Libmacro - A multi-platform, extendable macro and hotkey C library
2  Copyright (C) 2013 Jonathan Pelletier, New Paradigm Software
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
23 #ifndef MCR_STANDARD_MOVE_CURSOR_H_
24 #define MCR_STANDARD_MOVE_CURSOR_H_
25 
26 #include "mcr/base/base.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
39 };
40 
46 MCR_API int mcr_MoveCursor_send(struct mcr_Signal *signalPt);
54 MCR_API int mcr_MoveCursor_send_member(struct mcr_MoveCursor *mcPt, struct mcr_context *ctx);
55 /* Default allocate, deallocate, init, deinit, compare, and copy */
56 
61 MCR_API void mcr_cursor_position(struct mcr_context *ctx, mcr_SpacePosition buffer);
70 MCR_API bool mcr_resembles(const struct mcr_MoveCursor *lhs,
71  const struct mcr_MoveCursor *rhs, const unsigned int measurementError);
72 
74 MCR_API struct mcr_ISignal *mcr_iMoveCursor(struct mcr_context *ctx);
76 #define mcr_MoveCursor_data(sigPt) \
77 mcr_castpt(struct mcr_MoveCursor, mcr_Signal_data(sigPt))
78 
79 #ifdef __cplusplus
80 }
81 #endif
82 
83 #endif
mcr_SpacePosition position
Definition: move_cursor.h:35
MCR_API int mcr_MoveCursor_send(struct mcr_Signal *signalPt)
Move HID cursor position.
MCR_API struct mcr_ISignal * mcr_iMoveCursor(struct mcr_context *ctx)
MCR_API int mcr_MoveCursor_send_member(struct mcr_MoveCursor *mcPt, struct mcr_context *ctx)
MCR_API bool mcr_resembles(const struct mcr_MoveCursor *lhs, const struct mcr_MoveCursor *rhs, const unsigned int measurementError)
long long mcr_SpacePosition[MCR_DIMENSION_COUNT]
Definition: types.h:176
Base module implements mcr_base - Libmacro first module.
MCR_API void mcr_cursor_position(struct mcr_context *ctx, mcr_SpacePosition buffer)