tizen 2.4 release
[framework/uifw/e17-mod-tizen-comp.git] / src / hwcomp / hwcomp_util.h
1 #ifdef E_TYPEDEFS
2 #else
3 #ifndef HWCOMP_UTIL_H
4 #define HWCOMP_UTIL_H
5
6 #ifdef USE_HWC
7 EAPI void                    hwcomp_util_hwcomp_enable(Ecore_X_Window win);
8 EAPI Ecore_X_Display*        hwcomp_util_display_get(void);
9 EAPI Eina_Bool               hwcomp_util_hwcomp_query(void);
10 EAPI int                     hwcomp_util_max_layer_get(void);
11 EAPI void                    hwcomp_util_max_layer_set(int maxLayer);
12 EAPI int                     hwcomp_util_get_event_data(Ecore_X_Event_Generic *e);
13 EAPI void                    hwcomp_util_turn_composite(E_Comp_HWComp *hwcomp, Eina_Bool on);
14 EAPI Eina_Bool               hwcomp_util_check_fullcomp_mode(E_Comp_Win *cw);
15
16 EAPI const char*             hwcomp_util_border_name_get(E_Border *bd);
17
18 EAPI void                    hwcomp_util_dec_set_countdown(E_Comp_HWComp_Drawable *d);
19 EAPI void                    hwcomp_util_reset_set_countdown(E_Comp_HWComp_Drawable *d);
20 EAPI void                    hwcomp_util_dec_comp_countdown(E_Comp_HWComp_Drawable *d);
21 EAPI void                    hwcomp_util_reset_comp_countdown(E_Comp_HWComp_Drawable *d);
22
23 EAPI void                    hwcomp_util_update_countdown(E_Comp_HWComp_Update *hwc_update, E_Comp_Win *cw);
24 EAPI Eina_Bool               hwcomp_util_update_check_region(E_Comp_HWComp_Update *hwc_update, E_Comp_Win *cw, int w, int h, int max_w, int max_h);
25 EAPI Eina_Bool               hwcomp_util_update_check_resized(E_Comp_HWComp_Update *hwc_update);
26 EAPI void                    hwcomp_util_update_unset_resized(E_Comp_HWComp_Update *hwc_update, E_Comp_Win *cw);
27 EAPI void                    hwcomp_util_update_set_resized(E_Comp_HWComp_Update *hwc_update, E_Comp_Win *cw);
28 EAPI Eina_Bool               hwcomp_util_update_check_comp(E_Comp_HWComp_Update *hwc_update);
29 EAPI void                    hwcomp_util_update_set_comp(E_Comp_HWComp_Update *hwc_update, Eina_Bool comp_update);
30
31 EAPI Eina_Bool               hwcomp_util_update_compare_drawables(E_Comp_HWComp_Update *cur_hwc_update, E_Comp_HWComp_Update *new_hwc_update);
32 EAPI void                    hwcomp_util_update_migrate_drawables(E_Comp_HWComp_Update *cur_hwc_update, E_Comp_HWComp_Update *new_hwc_update);
33 EAPI void                    hwcomp_util_update_destroy_drawable(E_Comp_HWComp_Update *hwc_update);
34 EAPI Eina_Bool               hwcomp_util_update_create_drawable(E_Comp_HWComp_Update *hwc_update);
35 EAPI void                    hwcomp_util_update_clear_drawable(E_Comp_HWComp_Update *hwc_update);
36 EAPI void                    hwcomp_util_update_destroy(E_Comp_HWComp_Update *hwc_update);
37 EAPI E_Comp_HWComp_Update *  hwcomp_util_update_create(E_Comp_HWComp *hwcomp, int num);
38 EAPI void                    hwcomp_util_update_clear(E_Comp_HWComp_Update *hwc_update);
39
40 EAPI void                    hwcomp_util_update_reset_maskobj(E_Comp_HWComp_Update *hwc_update);
41 EAPI void                    hwcomp_util_set_hybrid_composite(E_Comp_HWComp_Update *hwc_update);
42 #endif /* End of USE_HWC */
43 #endif /* End of HWCOMP_UTIL_H */
44 #endif /* End of E_TYPEDEFS */