CCAux  2.17.0.0
CCAux API reference
TouchScreen.h
Go to the documentation of this file.
1 /************************************************
2 *
3 * CROSSCONTROL AUX API
4 *
5 * TouchScreen.h
6 *
7 * Version 2.17.0.0", 2019-10-22
8 *
9 * (c) CrossControl 2010-2019
10 *
11 
12  * File description:
13  * Touch Screen settings
14  *
15  * Use the function GetTouchScreen() to get a handle to pass on to the other functions.
16  * Use the method TouchScreen_release(TOUCHSCREENHANDLE) to return the handle.
17  * Note that the VC platform uses a different touch screen solution which is not supported by this API.
18  *
19  * Example Usage:
20  * @include touchscreen_example.cpp
21  *
22  ************************************************/
23 
24 #ifndef CC_TOUCHSCR_H
25 #define CC_TOUCHSCR_H
26 
27 #include "CCAuxErrors.h"
28 #include "CCPlatform.h"
29 
30 #ifdef __cplusplus
31 namespace CrossControl {
32 #endif
33 
34  typedef void* TOUCHSCREENHANDLE;
35 
37  typedef enum
38  {
41  MOUSE_NOW = 2,
42  TOUCH_NOW = 3
44 
45 
49 #define TS_CALIBTATION_WIDTH TS_CALIBRATION_WIDTH
50 
54  typedef enum
55  {
60 
66 
71 
78 
85 
91 
97 
102 
108 
113 
118 
124 
133 
135 
155  EXTERN_C
156  CCAUXDLL_API
158  CCAUXDLL_CALLING_CONV
159  GetTouchScreen(void);
160 
171  EXTERN_C
172  CCAUXDLL_API
173  void
174  CCAUXDLL_CALLING_CONV
176 
189  EXTERN_C
190  CCAUXDLL_API
191  eErr
192  CCAUXDLL_CALLING_CONV
194 
207  EXTERN_C
208  CCAUXDLL_API
209  eErr
210  CCAUXDLL_CALLING_CONV
212 
222  EXTERN_C
223  CCAUXDLL_API
224  eErr
225  CCAUXDLL_CALLING_CONV
227 
237  EXTERN_C
238  CCAUXDLL_API
239  eErr
240  CCAUXDLL_CALLING_CONV
242 
254  EXTERN_C
255  CCAUXDLL_API
256  eErr
257  CCAUXDLL_CALLING_CONV
259 
274  EXTERN_C
275  CCAUXDLL_API
276  eErr
277  CCAUXDLL_CALLING_CONV
279 
281 #ifdef __cplusplus
282 } /* namespace CrossControl */
283 #endif
284 
285 #endif /* CC_TOUCHSCR_H */
286 
Definition: TouchScreen.h:40
eErr
Definition: CCAuxTypes.h:159
Definition: TouchScreen.h:42
EXTERN_C CCAUXDLL_API TOUCHSCREENHANDLE CCAUXDLL_CALLING_CONV GetTouchScreen(void)
Definition: TouchScreen.h:59
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t data)
TSAdvancedSettingsParameter
Definition: TouchScreen.h:54
Definition: TouchScreen.h:39
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMode(TOUCHSCREENHANDLE, TouchScreenModeSettings config)
TouchScreenModeSettings
Definition: TouchScreen.h:37
Definition: TouchScreen.h:112
Definition: TouchScreen.h:41
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t *time)
Definition: About.h:30
unsigned short uint16_t
Definition: CCAuxTypes.h:48
Definition: TouchScreen.h:65
Definition: TouchScreen.h:117
Definition: TouchScreen.h:107
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getMode(TOUCHSCREENHANDLE, TouchScreenModeSettings *config)
Definition: TouchScreen.h:132
Definition: TouchScreen.h:101
void * TOUCHSCREENHANDLE
Definition: TouchScreen.h:34
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_getAdvancedSetting(TOUCHSCREENHANDLE, TSAdvancedSettingsParameter param, uint16_t *data)
EXTERN_C CCAUXDLL_API eErr CCAUXDLL_CALLING_CONV TouchScreen_setMouseRightClickTime(TOUCHSCREENHANDLE, uint16_t time)
Definition: TouchScreen.h:77
Definition: TouchScreen.h:84
Definition: TouchScreen.h:70
Definition: TouchScreen.h:123
EXTERN_C CCAUXDLL_API void CCAUXDLL_CALLING_CONV TouchScreen_release(TOUCHSCREENHANDLE)
Definition: TouchScreen.h:96