}
}
+EAPI unsigned int
+e_desks_count(void)
+{
+ Eina_List *l;
+ E_Zone *zone;
+ unsigned int count = 0;
+
+ EINA_LIST_FOREACH(e_comp->zones, l, zone)
+ {
+ int cx = 0, cy = 0;
+
+ e_zone_desk_count_get(zone, &cx, &cy);
+ count += cx * cy;
+ }
+ return count;
+}
+
static void
_e_desk_free(E_Desk *desk)
{
EAPI void e_desk_flip_cb_set(E_Desk_Flip_Cb cb, const void *data);
EAPI void e_desk_flip_end(E_Desk *desk);
+EAPI unsigned int e_desks_count(void);
+
extern EAPI int E_EVENT_DESK_SHOW;
extern EAPI int E_EVENT_DESK_BEFORE_SHOW;
extern EAPI int E_EVENT_DESK_AFTER_SHOW;
}
}
-EAPI int
-e_util_comp_desk_count_get(E_Comp *c)
-{
- Eina_List *zl;
- E_Zone *zone;
- int count = 0;
-
- E_OBJECT_CHECK_RETURN(c, 0);
- E_OBJECT_TYPE_CHECK_RETURN(c, E_COMP_TYPE, 0);
- EINA_LIST_FOREACH(c->zones, zl, zone)
- {
- int x, y;
- int cx = 0, cy = 0;
-
- e_zone_desk_count_get(zone, &cx, &cy);
- for (x = 0; x < cx; x++)
- {
- for (y = 0; y < cy; y++)
- count += 1;
- }
- }
- return count;
-}
-
/* local subsystem functions */
static Evas_Object *
dialog warning if loaded version is older or newer than current */
EAPI Eina_Bool e_util_module_config_check(const char *module_name, int loaded, int current);
-EAPI int e_util_comp_desk_count_get(E_Comp *con);
EAPI E_Config_Binding_Key *e_util_binding_match(const Eina_List *bindlist, Ecore_Event_Key *ev, unsigned int *num, const E_Config_Binding_Key *skip);
EAPI Eina_Bool e_util_fullscreen_current_any(void);
EAPI Eina_Bool e_util_fullscreen_any(void);