tizen 2.4 release
[framework/uifw/e17-mod-tizen-comp.git] / src / e_mod_comp_screen.h
1 #ifdef E_TYPEDEFS
2 #else
3 #ifndef E_MOD_COMP_SCREEN_H
4 #define E_MOD_COMP_SCREEN_H
5
6 typedef struct _E_Comp_Screen_Rotation E_Comp_Screen_Rotation;
7 typedef struct _E_Comp_Screen_Lock     E_Comp_Screen_Lock;
8
9 struct _E_Comp_Screen_Rotation
10 {
11    Eina_Bool    enabled : 1;
12    int          angle;
13    int          scr_w;
14    int          scr_h;
15 };
16
17 struct _E_Comp_Screen_Lock
18 {
19    Eina_Bool    locked : 1;
20    Ecore_Timer *timeout;
21 };
22
23 EAPI Eina_Bool e_mod_comp_screen_rotation_init(E_Comp_Screen_Rotation *r, Ecore_X_Window root, int w, int h);
24 EAPI Eina_Bool e_mod_comp_screen_lock_init(E_Comp_Screen_Lock *l);
25 EAPI Eina_Bool e_mod_comp_screen_lock_handler_message(Ecore_X_Event_Client_Message *ev);
26 EAPI void      e_mod_comp_screen_lock_func(void *data, E_Manager *man);
27 EAPI void      e_mod_comp_screen_unlock_func(void *data, E_Manager *man);
28
29 #endif
30 #endif