3 typedef enum _E_Zone_Edge
11 E_ZONE_EDGE_TOP_RIGHT,
12 E_ZONE_EDGE_BOTTOM_RIGHT,
13 E_ZONE_EDGE_BOTTOM_LEFT
16 typedef struct _E_Zone E_Zone;
18 typedef struct _E_Event_Zone_Desk_Count_Set E_Event_Zone_Desk_Count_Set;
19 typedef struct _E_Event_Zone_Move_Resize E_Event_Zone_Move_Resize;
20 typedef struct _E_Event_Zone_Add E_Event_Zone_Add;
21 typedef struct _E_Event_Zone_Del E_Event_Zone_Del;
22 /* TODO: Move this to a general place? */
23 typedef struct _E_Event_Pointer_Warp E_Event_Pointer_Warp;
24 typedef struct _E_Event_Zone_Edge E_Event_Zone_Edge;
25 #ifdef _F_ZONE_WINDOW_ROTATION_
26 typedef struct _E_Event_Zone_Rotation_Change E_Event_Zone_Rotation_Change; /* deprecated */
27 typedef struct _E_Event_Zone_Rotation_Change_Begin E_Event_Zone_Rotation_Change_Begin;
28 typedef struct _E_Event_Zone_Rotation_Change_Cancel E_Event_Zone_Rotation_Change_Cancel;
29 typedef struct _E_Event_Zone_Rotation_Change_End E_Event_Zone_Rotation_Change_End;
36 #define E_ZONE_TYPE (int)0xE0b0100d
40 E_Object e_obj_inherit;
44 /* num matches the id of the xinerama screen
45 * this zone belongs to. */
47 E_Container *container;
50 Evas_Object *bg_object;
51 Evas_Object *bg_event_object;
52 Evas_Object *bg_clip_object;
53 Evas_Object *prev_bg_object;
54 Evas_Object *transition_object;
56 int desk_x_count, desk_y_count;
57 int desk_x_current, desk_y_current;
64 unsigned char switching : 1;
66 E_Event_Zone_Edge *ev;
72 Ecore_X_Window top, right, bottom, left;
76 Ecore_X_Window left_top, top_left, top_right, right_top,
77 right_bottom, bottom_right, bottom_left, left_bottom;
80 E_Action *cur_mouse_action;
83 Ecore_Evas *black_ecore_evas;
85 Ecore_X_Window black_win;
94 #ifdef _F_ZONE_WINDOW_ROTATION_
99 Eina_Bool wait_for_done : 1;
100 Eina_Bool pending : 1;
105 struct _E_Event_Zone_Desk_Count_Set
110 struct _E_Event_Zone_Move_Resize
115 struct _E_Event_Zone_Add
120 struct _E_Event_Zone_Del
125 struct _E_Event_Pointer_Warp
137 struct _E_Event_Zone_Edge
146 #ifdef _F_ZONE_WINDOW_ROTATION_
148 struct _E_Event_Zone_Rotation_Change
153 struct _E_Event_Zone_Rotation_Change_Begin
158 struct _E_Event_Zone_Rotation_Change_Cancel
163 struct _E_Event_Zone_Rotation_Change_End
169 EINTERN int e_zone_init(void);
170 EINTERN int e_zone_shutdown(void);
171 EAPI E_Zone *e_zone_new(E_Container *con, int num, int id, int x, int y, int w, int h);
172 EAPI void e_zone_name_set(E_Zone *zone, const char *name);
173 EAPI void e_zone_move(E_Zone *zone, int x, int y);
174 EAPI void e_zone_resize(E_Zone *zone, int w, int h);
175 EAPI void e_zone_move_resize(E_Zone *zone, int x, int y, int w, int h);
176 EAPI void e_zone_fullscreen_set(E_Zone *zone, int on);
177 EAPI E_Zone *e_zone_current_get(E_Container *con);
178 EAPI void e_zone_bg_reconfigure(E_Zone *zone);
179 EAPI void e_zone_flip_coords_handle(E_Zone *zone, int x, int y);
180 EAPI void e_zone_desk_count_set(E_Zone *zone, int x_count, int y_count);
181 EAPI void e_zone_desk_count_get(E_Zone *zone, int *x_count, int *y_count);
182 EAPI void e_zone_desk_flip_by(E_Zone *zone, int dx, int dy);
183 EAPI void e_zone_desk_flip_to(E_Zone *zone, int x, int y);
184 EAPI void e_zone_desk_linear_flip_by(E_Zone *zone, int dx);
185 EAPI void e_zone_desk_linear_flip_to(E_Zone *zone, int x);
186 EAPI void e_zone_edge_flip_eval(E_Zone *zone);
187 EAPI void e_zone_edge_new(E_Zone_Edge edge);
188 EAPI void e_zone_edge_free(E_Zone_Edge edge);
189 EAPI void e_zone_edge_enable(void);
190 EAPI void e_zone_edge_disable(void);
191 EAPI void e_zone_edges_desk_flip_capable(E_Zone *zone, Eina_Bool l, Eina_Bool r, Eina_Bool t, Eina_Bool b);
192 EAPI Eina_Bool e_zone_exists_direction(E_Zone *zone, E_Zone_Edge edge);
193 EAPI void e_zone_edge_win_layer_set(E_Zone *zone, int layer);
195 EAPI void e_zone_useful_geometry_dirty(E_Zone *zone);
196 EAPI void e_zone_useful_geometry_get(E_Zone *zone, int *x, int *y, int *w, int *h);
198 #ifdef _F_ZONE_WINDOW_ROTATION_
199 EAPI void e_zone_rotation_set(E_Zone *zone, int rot);
200 EAPI int e_zone_rotation_get(E_Zone *zone);
201 EAPI Eina_Bool e_zone_rotation_block_set(E_Zone *zone, const char *name_hint, Eina_Bool set);
202 EAPI void e_zone_rotation_update_done(E_Zone *zone);
203 EAPI void e_zone_rotation_update_cancel(E_Zone *zone);
206 extern EAPI int E_EVENT_ZONE_DESK_COUNT_SET;
207 extern EAPI int E_EVENT_ZONE_MOVE_RESIZE;
208 extern EAPI int E_EVENT_ZONE_ADD;
209 extern EAPI int E_EVENT_ZONE_DEL;
210 extern EAPI int E_EVENT_POINTER_WARP;
211 extern EAPI int E_EVENT_ZONE_EDGE_IN;
212 extern EAPI int E_EVENT_ZONE_EDGE_OUT;
213 extern EAPI int E_EVENT_ZONE_EDGE_MOVE;
214 #ifdef _F_ZONE_WINDOW_ROTATION_
215 extern EAPI int E_EVENT_ZONE_ROTATION_CHANGE; /* deprecated */
216 extern EAPI int E_EVENT_ZONE_ROTATION_CHANGE_BEGIN;
217 extern EAPI int E_EVENT_ZONE_ROTATION_CHANGE_CANCEL;
218 extern EAPI int E_EVENT_ZONE_ROTATION_CHANGE_END;