summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2003-09-23 08:09:32 +0000
committerCarsten Haitzler <raster@rasterman.com>2003-09-23 08:09:32 +0000
commita5c2425084f670998654b7cf002d961dce963e82 (patch)
tree26bb48a4db414be854a6028c43364c23a02b4d3b /legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
parentcddaadb4477f3cc1b36d4f4fe68ba1f6abfa8a3d (diff)
damn you salizar! damn you!
errr. i mean. ecore moves to HEAD! SVN revision: 7475
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
new file mode 100644
index 0000000000..9acf66e254
--- /dev/null
+++ b/legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
@@ -0,0 +1,90 @@
1#ifndef _ECORE_FB_H
2#define _ECORE_FB_H
3
4/* FIXME:
5 * maybe a new module?
6 * - code to get battery info
7 * - code to get thermal info
8 */
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14extern int ECORE_FB_EVENT_KEY_DOWN; /**< FB Key Down event */
15extern int ECORE_FB_EVENT_KEY_UP; /**< FB Key Up event */
16extern int ECORE_FB_EVENT_MOUSE_BUTTON_DOWN; /**< FB Mouse Down event */
17extern int ECORE_FB_EVENT_MOUSE_BUTTON_UP; /**< FB Mouse Up event */
18extern int ECORE_FB_EVENT_MOUSE_MOVE; /**< FB Mouse Move event */
19
20typedef struct _Ecore_Fb_Event_Key_Down Ecore_Fb_Event_Key_Down; /**< FB Key Down event */
21typedef struct _Ecore_Fb_Event_Key_Up Ecore_Fb_Event_Key_Up; /**< FB Key Up event */
22typedef struct _Ecore_Fb_Event_Mouse_Button_Down Ecore_Fb_Event_Mouse_Button_Down; /**< FB Mouse Down event */
23typedef struct _Ecore_Fb_Event_Mouse_Button_Up Ecore_Fb_Event_Mouse_Button_Up; /**< FB Mouse Up event */
24typedef struct _Ecore_Fb_Event_Mouse_Move Ecore_Fb_Event_Mouse_Move; /**< FB Mouse Move event */
25
26struct _Ecore_Fb_Event_Key_Down /** FB Key Down event */
27{
28 char *keyname; /**< The name of the key that was prerssed */
29};
30
31struct _Ecore_Fb_Event_Key_Up /** FB Key Up event */
32{
33 char *keyname; /**< The name of the key that was released */
34};
35
36struct _Ecore_Fb_Event_Mouse_Button_Down /** FB Mouse Down event */
37{
38 int button; /**< Mouse button that was pressed (1 - 32) */
39 int x; /**< Mouse co-ordinates when mouse button was pressed */
40 int y; /**< Mouse co-ordinates when mouse button was pressed */
41 int double_click : 1; /**< Set if click was a double click */
42 int triple_click : 1; /**< Set if click was a triple click */
43};
44
45struct _Ecore_Fb_Event_Mouse_Button_Up /** FB Mouse Up event */
46{
47 int button; /**< Mouse button that was released (1 - 32) */
48 int x; /**< Mouse co-ordinates when mouse button was raised */
49 int y; /**< Mouse co-ordinates when mouse button was raised */
50};
51
52struct _Ecore_Fb_Event_Mouse_Move /** FB Mouse Move event */
53{
54 int x; /**< Mouse co-ordinates where the mouse cursor moved to */
55 int y; /**< Mouse co-ordinates where the mouse cursor moved to */
56};
57
58int ecore_fb_init(const char *name);
59int ecore_fb_shutdown(void);
60
61void ecore_fb_double_click_time_set(double t);
62double ecore_fb_double_click_time_get(void);
63
64void ecore_fb_size_get(int *w, int *h);
65
66void ecore_fb_touch_screen_calibrate_set(int xscale, int xtrans, int yscale, int ytrans, int xyswap);
67void ecore_fb_touch_screen_calibrate_get(int *xscale, int *xtrans, int *yscale, int *ytrans, int *xyswap);
68
69void ecore_fb_backlight_set(int on);
70int ecore_fb_backlight_get(void);
71
72void ecore_fb_backlight_brightness_set(double br);
73double ecore_fb_backlight_brightness_get(void);
74
75void ecore_fb_led_set(int on);
76void ecore_fb_led_blink_set(double speed);
77
78void ecore_fb_contrast_set(double cr);
79double ecore_fb_contrast_get(void);
80
81double ecore_fb_light_sensor_get(void);
82
83void ecore_fb_callback_gain_set(void (*func) (void *data), void *data);
84void ecore_fb_callback_lose_set(void (*func) (void *data), void *data);
85
86#ifdef __cplusplus
87}
88#endif
89
90#endif