diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2010-09-25 04:58:33 +0000 |
---|---|---|
committer | Vincent Torri <vincent.torri@gmail.com> | 2010-09-25 04:58:33 +0000 |
commit | 6fd7b23478f68283814b82653f8d79a9cbc4090e (patch) | |
tree | 32f6a34746d4badb76ae27aaf4140aa9a51746f3 /legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h | |
parent | 88b8b5499aa124a4f028df06760f7990cbc1e9df (diff) |
formatting
SVN revision: 52717
Diffstat (limited to '')
-rw-r--r-- | legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h | 59 |
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 | |||
49 | enum _Ecore_Fb_Input_Device_Cap | 42 | enum _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 | }; |
56 | typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap; | 49 | typedef 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 */ |
122 | EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); | 115 | EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); |
123 | EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data); | 116 | EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data); |
117 | |||
124 | /* ecore_fb_li.c */ | 118 | /* ecore_fb_li.c */ |
125 | EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev); | 119 | EAPI Ecore_Fb_Input_Device *ecore_fb_input_device_open(const char *dev); |
126 | EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev); | 120 | EAPI void ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev); |
127 | EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, int listen); | 121 | EAPI void ecore_fb_input_device_listen(Ecore_Fb_Input_Device *dev, int listen); |
128 | EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev); | 122 | EAPI const char *ecore_fb_input_device_name_get(Ecore_Fb_Input_Device *dev); |
129 | EAPI Ecore_Fb_Input_Device_Cap ecore_fb_input_device_cap_get(Ecore_Fb_Input_Device *dev); | 123 | EAPI Ecore_Fb_Input_Device_Cap ecore_fb_input_device_cap_get(Ecore_Fb_Input_Device *dev); |
130 | EAPI void ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h); | 124 | EAPI void ecore_fb_input_device_axis_size_set(Ecore_Fb_Input_Device *dev, int w, int h); |
131 | EAPI void ecore_fb_input_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold); | 125 | EAPI void ecore_fb_input_threshold_click_set(Ecore_Fb_Input_Device *dev, double threshold); |
132 | EAPI double ecore_fb_input_threshold_click_get(Ecore_Fb_Input_Device *dev); | 126 | EAPI double ecore_fb_input_threshold_click_get(Ecore_Fb_Input_Device *dev); |
127 | |||
133 | /* ecore_fb.c */ | 128 | /* ecore_fb.c */ |
134 | EAPI int ecore_fb_init(const char *name); | 129 | EAPI int ecore_fb_init(const char *name); |
135 | EAPI int ecore_fb_shutdown(void); | 130 | EAPI int ecore_fb_shutdown(void); |
136 | EAPI void ecore_fb_size_get(int *w, int *h); | 131 | EAPI void ecore_fb_size_get(int *w, int *h); |
137 | 132 | ||
138 | EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap); | 133 | EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap); |
139 | EAPI void ecore_fb_touch_screen_calibrate_get(int *xscale, int *xtrans, int *yscale, int *ytrans, int *xyswap); | 134 | EAPI 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 | } |