aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_backlight.h
blob: 0a8b239bd8a213e0893635b252c32d9a93b35733 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifdef E_TYPEDEFS

//typedef struct _E_Screen E_Screen;

typedef enum _E_Backlight_Mode
{
   E_BACKLIGHT_MODE_NORMAL = 0,
   E_BACKLIGHT_MODE_OFF = 1,
   E_BACKLIGHT_MODE_MIN = 2,
   E_BACKLIGHT_MODE_DIM = 3,
   E_BACKLIGHT_MODE_MAX = 4
      // for the future. right now not working as we'd need an optical
      // sensor support framework
//   E_BACKLIGHT_MODE_AUTO = 5
} E_Backlight_Mode;

#else
#ifndef E_BACKLIGHT_H
#define E_BACKLIGHT_H

extern E_API int E_EVENT_BACKLIGHT_CHANGE;

//struct _E_Screen
//{
//   int screen, escreen;
//   int x, y, w, h;
//};

EINTERN int              e_backlight_init(void);
EINTERN int              e_backlight_shutdown(void);
E_API Eina_Bool           e_backlight_exists(void);
E_API void                e_backlight_update(void);
E_API void                e_backlight_level_set(E_Zone *zone, double val, double tim);
E_API double              e_backlight_level_get(E_Zone *zone);
E_API void                e_backlight_mode_set(E_Zone *zone, E_Backlight_Mode mode);
E_API E_Backlight_Mode    e_backlight_mode_get(E_Zone *zone);
E_API const Eina_List    *e_backlight_devices_get(void);

#endif
#endif