2005-02-07 05:51:09 -08:00
|
|
|
/*
|
|
|
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
|
|
|
*/
|
2005-01-12 08:03:09 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
2005-01-03 01:26:13 -08:00
|
|
|
|
|
|
|
typedef struct _E_Zone E_Zone;
|
|
|
|
|
2005-01-15 00:31:39 -08:00
|
|
|
typedef struct _E_Event_Zone_Desk_Count_Set E_Event_Zone_Desk_Count_Set;
|
|
|
|
|
2005-01-12 08:03:09 -08:00
|
|
|
#else
|
|
|
|
#ifndef E_ZONE_H
|
|
|
|
#define E_ZONE_H
|
|
|
|
|
2005-01-21 22:58:34 -08:00
|
|
|
#define E_ZONE_TYPE 0xE0b0100d
|
|
|
|
|
2005-01-03 01:26:13 -08:00
|
|
|
struct _E_Zone
|
|
|
|
{
|
|
|
|
E_Object e_obj_inherit;
|
|
|
|
|
|
|
|
int x, y, w, h;
|
|
|
|
char *name;
|
2005-02-13 04:33:31 -08:00
|
|
|
/* num matches the id of the xinerama screen
|
|
|
|
* this zone belongs to.
|
|
|
|
*/
|
2005-01-03 01:26:13 -08:00
|
|
|
int num;
|
|
|
|
E_Container *container;
|
|
|
|
|
|
|
|
Evas_Object *bg_object;
|
|
|
|
Evas_Object *bg_event_object;
|
2005-01-20 05:42:51 -08:00
|
|
|
Evas_Object *bg_clip_object;
|
2005-01-03 01:26:13 -08:00
|
|
|
|
2005-01-08 06:41:21 -08:00
|
|
|
int desk_x_count, desk_y_count;
|
|
|
|
int desk_x_current, desk_y_current;
|
2005-01-12 08:03:09 -08:00
|
|
|
E_Desk **desks;
|
2005-01-03 01:26:13 -08:00
|
|
|
Evas_List *clients;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2005-01-15 00:31:39 -08:00
|
|
|
struct _E_Event_Zone_Desk_Count_Set
|
|
|
|
{
|
|
|
|
E_Zone *zone;
|
|
|
|
};
|
|
|
|
|
2005-01-05 02:37:53 -08:00
|
|
|
EAPI int e_zone_init(void);
|
|
|
|
EAPI int e_zone_shutdown(void);
|
2005-02-13 04:33:31 -08:00
|
|
|
EAPI E_Zone *e_zone_new(E_Container *con, int num, int x, int y, int w, int h);
|
2005-01-03 01:26:13 -08:00
|
|
|
EAPI void e_zone_move(E_Zone *zone, int x, int y);
|
|
|
|
EAPI void e_zone_resize(E_Zone *zone, int w, int h);
|
|
|
|
EAPI void e_zone_move_resize(E_Zone *zone, int x, int y, int w, int h);
|
|
|
|
EAPI E_Zone *e_zone_current_get(E_Container *con);
|
|
|
|
EAPI void e_zone_bg_reconfigure(E_Zone *zone);
|
|
|
|
EAPI Evas_List *e_zone_clients_list_get(E_Zone *zone);
|
2005-01-08 13:21:56 -08:00
|
|
|
EAPI void e_zone_desk_count_set(E_Zone *zone, int x_count, int y_count);
|
2005-01-09 10:58:13 -08:00
|
|
|
EAPI void e_zone_desk_count_get(E_Zone *zone, int *x_count, int *y_count);
|
2005-01-03 01:26:13 -08:00
|
|
|
|
2005-01-15 00:31:39 -08:00
|
|
|
extern EAPI int E_EVENT_ZONE_DESK_COUNT_SET;
|
|
|
|
|
2005-01-03 01:26:13 -08:00
|
|
|
#endif
|
2005-01-12 08:03:09 -08:00
|
|
|
#endif
|