summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-01-24 02:23:14 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-01-24 02:23:14 +0000
commitebdbf7c6ec4748674ea3a156b0e429dec2115eed (patch)
tree60929ff287f4a82e582c892612462df9aa61cb89 /legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
parent40843fe6893bf08c08177c9e77d598c4ec44d683 (diff)
tslib supprot back from tobias.
SVN revision: 33577
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h83
1 files changed, 33 insertions, 50 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
index 3eae77b774..537481758f 100644
--- a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
+++ b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
@@ -43,16 +43,15 @@
43extern "C" { 43extern "C" {
44#endif 44#endif
45 45
46
47typedef struct _Ecore_Fb_Input_Device Ecore_Fb_Input_Device; /* an input device handler */ 46typedef struct _Ecore_Fb_Input_Device Ecore_Fb_Input_Device; /* an input device handler */
48 47
49/* device capabilities */ 48/* device capabilities */
50enum _Ecore_Fb_Input_Device_Cap 49enum _Ecore_Fb_Input_Device_Cap
51{ 50{
52 ECORE_FB_INPUT_DEVICE_CAP_NONE = 0x00000000, 51 ECORE_FB_INPUT_DEVICE_CAP_NONE = 0x00000000,
53 ECORE_FB_INPUT_DEVICE_CAP_RELATIVE = 0x00000001, 52 ECORE_FB_INPUT_DEVICE_CAP_RELATIVE = 0x00000001,
54 ECORE_FB_INPUT_DEVICE_CAP_ABSOLUTE = 0x00000002, 53 ECORE_FB_INPUT_DEVICE_CAP_ABSOLUTE = 0x00000002,
55 ECORE_FB_INPUT_DEVICE_CAP_KEYS_OR_BUTTONS = 0x00000004 54 ECORE_FB_INPUT_DEVICE_CAP_KEYS_OR_BUTTONS = 0x00000004
56}; 55};
57typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap; 56typedef enum _Ecore_Fb_Input_Device_Cap Ecore_Fb_Input_Device_Cap;
58 57
@@ -72,52 +71,53 @@ typedef struct _Ecore_Fb_Event_Mouse_Wheel Ecore_Fb_Event_Mouse_Wheel; /**
72 71
73struct _Ecore_Fb_Event_Key_Down /** FB Key Down event */ 72struct _Ecore_Fb_Event_Key_Down /** FB Key Down event */
74{ 73{
75 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */ 74 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
76 char *keyname; /**< The name of the key that was pressed */ 75 char *keyname; /**< The name of the key that was pressed */
77 char *keysymbol; /**< The logical symbol of the key that was pressed */ 76 char *keysymbol; /**< The logical symbol of the key that was pressed */
78 char *key_compose; /**< The UTF-8 string conversion if any */ 77 char *key_compose; /**< The UTF-8 string conversion if any */
79}; 78};
80 79
81struct _Ecore_Fb_Event_Key_Up /** FB Key Up event */ 80struct _Ecore_Fb_Event_Key_Up /** FB Key Up event */
82{ 81{
83 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */ 82 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
84 char *keyname; /**< The name of the key that was released */ 83 char *keyname; /**< The name of the key that was released */
85 char *keysymbol; /**< The logical symbol of the key that was pressed */ 84 char *keysymbol; /**< The logical symbol of the key that was pressed */
86 char *key_compose; /**< The UTF-8 string conversion if any */ 85 char *key_compose; /**< The UTF-8 string conversion if any */
87}; 86};
88 87
89struct _Ecore_Fb_Event_Mouse_Button_Down /** FB Mouse Down event */ 88struct _Ecore_Fb_Event_Mouse_Button_Down /** FB Mouse Down event */
90{ 89{
91 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */ 90 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
92 int button; /**< Mouse button that was pressed (1 - 32) */ 91 int button; /**< Mouse button that was pressed (1 - 32) */
93 int x; /**< Mouse co-ordinates when mouse button was pressed */ 92 int x; /**< Mouse co-ordinates when mouse button was pressed */
94 int y; /**< Mouse co-ordinates when mouse button was pressed */ 93 int y; /**< Mouse co-ordinates when mouse button was pressed */
95 int double_click : 1; /**< Set if click was a double click */ 94 int double_click : 1; /**< Set if click was a double click */
96 int triple_click : 1; /**< Set if click was a triple click */ 95 int triple_click : 1; /**< Set if click was a triple click */
97}; 96};
98 97
99struct _Ecore_Fb_Event_Mouse_Button_Up /** FB Mouse Up event */ 98struct _Ecore_Fb_Event_Mouse_Button_Up /** FB Mouse Up event */
100{ 99{
101 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */ 100 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
102 int button; /**< Mouse button that was released (1 - 32) */ 101 int button; /**< Mouse button that was released (1 - 32) */
103 int x; /**< Mouse co-ordinates when mouse button was raised */ 102 int x; /**< Mouse co-ordinates when mouse button was raised */
104 int y; /**< Mouse co-ordinates when mouse button was raised */ 103 int y; /**< Mouse co-ordinates when mouse button was raised */
105}; 104};
106 105
107struct _Ecore_Fb_Event_Mouse_Move /** FB Mouse Move event */ 106struct _Ecore_Fb_Event_Mouse_Move /** FB Mouse Move event */
108{ 107{
109 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */ 108 Ecore_Fb_Input_Device *dev; /**< The device associated with the event */
110 int x; /**< Mouse co-ordinates where the mouse cursor moved to */ 109 int x; /**< Mouse co-ordinates where the mouse cursor moved to */
111 int y; /**< Mouse co-ordinates where the mouse cursor moved to */ 110 int y; /**< Mouse co-ordinates where the mouse cursor moved to */
112}; 111};
113 112
114struct _Ecore_Fb_Event_Mouse_Wheel /** FB Mouse Wheel event */ 113struct _Ecore_Fb_Event_Mouse_Wheel /** FB Mouse Wheel event */
115{ 114{
116 Ecore_Fb_Input_Device *dev; 115 Ecore_Fb_Input_Device *dev;
117 int x,y; 116 int x,y;
118 int direction; /* 0 = vertical, 1 = horizontal */ 117 int direction; /* 0 = vertical, 1 = horizontal */
119 int wheel; /* value 1 (left/up), -1 (right/down) */ 118 int wheel; /* value 1 (left/up), -1 (right/down) */
120}; 119};
120
121/* ecore_fb_vt.c */ 121/* ecore_fb_vt.c */
122EAPI void ecore_fb_callback_gain_set(void (*func) (void *data), void *data); 122EAPI 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); 123EAPI void ecore_fb_callback_lose_set(void (*func) (void *data), void *data);
@@ -134,27 +134,10 @@ EAPI double ecore_fb_input_threshold_click_get(Ecore_F
134EAPI int ecore_fb_init(const char *name); 134EAPI int ecore_fb_init(const char *name);
135EAPI int ecore_fb_shutdown(void); 135EAPI int ecore_fb_shutdown(void);
136EAPI void ecore_fb_size_get(int *w, int *h); 136EAPI void ecore_fb_size_get(int *w, int *h);
137 137
138/* DEPRECATED */
139#if 0
140EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap); 138EAPI void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap);
141EAPI void ecore_fb_touch_screen_calibrate_get(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);
142 140
143EAPI void ecore_fb_backlight_set(int on);
144EAPI int ecore_fb_backlight_get(void);
145
146EAPI void ecore_fb_backlight_brightness_set(double br);
147EAPI double ecore_fb_backlight_brightness_get(void);
148
149EAPI void ecore_fb_led_set(int on);
150EAPI void ecore_fb_led_blink_set(double speed);
151
152EAPI void ecore_fb_contrast_set(double cr);
153EAPI double ecore_fb_contrast_get(void);
154
155EAPI double ecore_fb_light_sensor_get(void);
156#endif
157
158#ifdef __cplusplus 141#ifdef __cplusplus
159} 142}
160#endif 143#endif