summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-09-25 04:58:33 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-09-25 04:58:33 +0000
commit6fd7b23478f68283814b82653f8d79a9cbc4090e (patch)
tree32f6a34746d4badb76ae27aaf4140aa9a51746f3 /legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
parent88b8b5499aa124a4f028df06760f7990cbc1e9df (diff)
formatting
SVN revision: 52717
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h59
1 files changed, 27 insertions, 32 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
index e93b20a6d8..15b54c9e84 100644
--- a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
+++ b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
@@ -2,24 +2,17 @@
2#define _ECORE_FB_H 2#define _ECORE_FB_H
3 3
4#ifdef EAPI 4#ifdef EAPI
5#undef EAPI 5# undef EAPI
6#endif 6#endif
7#ifdef _MSC_VER 7
8# ifdef BUILDING_DLL 8#ifdef __GNUC__
9# define EAPI __declspec(dllexport) 9# if __GNUC__ >= 4
10# else 10# define EAPI __attribute__ ((visibility("default")))
11# define EAPI __declspec(dllimport)
12# endif
13#else
14# ifdef __GNUC__
15# if __GNUC__ >= 4
16# define EAPI __attribute__ ((visibility("default")))
17# else
18# define EAPI
19# endif
20# else 11# else
21# define EAPI 12# define EAPI
22# endif 13# endif
14#else
15# define EAPI
23#endif 16#endif
24 17
25/** 18/**
@@ -49,9 +42,9 @@ typedef struct _Ecore_Fb_Input_Device Ecore_Fb_Input_Device; /* an input device
49enum _Ecore_Fb_Input_Device_Cap 42enum _Ecore_Fb_Input_Device_Cap
50{ 43{
51 ECORE_FB_INPUT_DEVICE_CAP_NONE = 0x00000000, 44 ECORE_FB_INPUT_DEVICE_CAP_NONE = 0x00000000,
52 ECORE_FB_INPUT_DEVICE_CAP_RELATIVE = 0x00000001, 45 ECORE_FB_INPUT_DEVICE_CAP_RELATIVE = 0x00000001,
53 ECORE_FB_INPUT_DEVICE_CAP_ABSOLUTE = 0x00000002, 46 ECORE_FB_INPUT_DEVICE_CAP_ABSOLUTE = 0x00000002,
54 ECORE_FB_INPUT_DEVICE_CAP_KEYS_OR_BUTTONS = 0x00000004 47 ECORE_FB_INPUT_DEVICE_CAP_KEYS_OR_BUTTONS = 0x00000004
55}; 48};
56typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap; 49typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap;
57 50
@@ -119,24 +112,26 @@ struct _Ecore_Fb_Event_Mouse_Wheel /** FB Mouse Wheel event */
119}; 112};
120 113
121/* ecore_fb_vt.c */ 114/* ecore_fb_vt.c */
122EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); 115EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data);
123EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data); 116EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data);
117
124/* ecore_fb_li.c */ 118/* ecore_fb_li.c */
125EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev); 119EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev);
126EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev); 120EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev);
127EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, int listen); 121EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, int listen);
128EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev); 122EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev);
129EAPI Ecore_Fb_Input_Device_Cap ecore_fb_input_device_cap_get(Ecore_Fb_Input_Device *dev); 123EAPI Ecore_Fb_Input_Device_Cap ecore_fb_input_device_cap_get(Ecore_Fb_Input_Device *dev);
130EAPI void ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h); 124EAPI void ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h);
131EAPI void ecore_fb_input_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold); 125EAPI void ecore_fb_input_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold);
132EAPI double ecore_fb_input_threshold_click_get(Ecore_Fb_Input_Device *dev); 126EAPI double ecore_fb_input_threshold_click_get(Ecore_Fb_Input_Device *dev);
127
133/* ecore_fb.c */ 128/* ecore_fb.c */
134EAPI int ecore_fb_init(const char *name); 129EAPI int ecore_fb_init(const char *name);
135EAPI int ecore_fb_shutdown(void); 130EAPI int ecore_fb_shutdown(void);
136EAPI void ecore_fb_size_get(int *w, int *h); 131EAPI void ecore_fb_size_get(int *w, int *h);
137 132
138EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap); 133EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap);
139EAPI void ecore_fb_touch_screen_calibrate_get(int *xscale, int *xtrans, int *yscale, int *ytrans, int *xyswap); 134EAPI void ecore_fb_touch_screen_calibrate_get(int *xscale, int *xtrans, int *yscale, int *ytrans, int *xyswap);
140 135
141#ifdef __cplusplus 136#ifdef __cplusplus
142} 137}