return eina_list_data_get(e_comp->zones);
}
+EINTERN E_Zone *
+e_zone_get_by_id(int id)
+{
+ Eina_List *l = NULL;
+ E_Zone *zone;
+
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
+ {
+ if (zone->id == id)
+ {
+ return zone;
+ }
+ }
+
+ ELOGF("E_ZONE", "No zone id:%d", NULL, id);
+ return NULL;
+}
+
+EINTERN E_Zone *
+e_zone_get_by_position(int x, int y)
+{
+ Eina_List *l = NULL;
+ E_Zone *zone;
+
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
+ {
+ if (E_INSIDE(x, y, zone->x, zone->y, zone->w, zone->h))
+ {
+ return zone;
+ }
+ }
+
+ ELOGF("E_ZONE", "No zone under position(%d,%d)", NULL, x, y);
+ return NULL;
+}
+
E_API void
e_zone_bg_reconfigure(E_Zone *zone)
{
E_API void e_zone_resize(E_Zone *zone, int w, int h);
E_API Eina_Bool e_zone_move_resize(E_Zone *zone, int x, int y, int w, int h);
E_API E_Zone *e_zone_current_get(void);
+EINTERN E_Zone *e_zone_get_by_id(int id);
+EINTERN E_Zone *e_zone_get_by_position(int x, int y);
E_API void e_zone_bg_reconfigure(E_Zone *zone);
E_API void e_zone_flip_coords_handle(E_Zone *zone, int x, int y);
E_API void e_zone_desk_count_set(E_Zone *zone, int x_count, int y_count);