2005-01-12 08:03:09 -08:00
|
|
|
#ifdef E_TYPEDEFS
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2010-08-01 07:29:19 -07:00
|
|
|
typedef struct _E_Manager E_Manager;
|
2004-11-24 19:37:45 -08:00
|
|
|
|
2005-01-12 08:03:09 -08:00
|
|
|
#else
|
|
|
|
#ifndef E_MANAGER_H
|
|
|
|
#define E_MANAGER_H
|
|
|
|
|
2010-06-24 09:19:12 -07:00
|
|
|
#define E_MANAGER_TYPE (int) 0xE0b01008
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2012-12-12 11:21:31 -08:00
|
|
|
extern EAPI int E_EVENT_MANAGER_KEYS_GRAB;
|
2013-01-12 04:57:53 -08:00
|
|
|
extern EAPI int E_EVENT_MANAGER_COMP_SET;
|
2012-12-12 11:21:31 -08:00
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
struct _E_Manager
|
|
|
|
{
|
|
|
|
E_Object e_obj_inherit;
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
Ecore_X_Window win;
|
2005-06-02 02:49:07 -07:00
|
|
|
int num;
|
2004-11-24 19:37:45 -08:00
|
|
|
int x, y, w, h;
|
|
|
|
char visible : 1;
|
|
|
|
Ecore_X_Window root;
|
2008-10-22 04:49:33 -07:00
|
|
|
Eina_List *handlers;
|
|
|
|
Eina_List *containers;
|
2005-09-28 06:30:49 -07:00
|
|
|
|
|
|
|
E_Pointer *pointer;
|
2007-09-23 18:16:47 -07:00
|
|
|
Ecore_X_Window initwin;
|
2013-01-18 04:47:14 -08:00
|
|
|
E_Comp *comp;
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2012-02-20 19:16:32 -08:00
|
|
|
Ecore_Timer *clear_timer;
|
2004-11-24 19:37:45 -08:00
|
|
|
};
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int e_manager_init(void);
|
|
|
|
EINTERN int e_manager_shutdown(void);
|
2008-10-22 04:49:33 -07:00
|
|
|
EAPI Eina_List *e_manager_list(void);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2005-08-25 06:48:32 -07:00
|
|
|
EAPI E_Manager *e_manager_new(Ecore_X_Window root, int num);
|
2005-02-13 04:31:31 -08:00
|
|
|
EAPI void e_manager_manage_windows(E_Manager *man);
|
2005-01-05 00:30:25 -08:00
|
|
|
EAPI void e_manager_show(E_Manager *man);
|
|
|
|
EAPI void e_manager_hide(E_Manager *man);
|
|
|
|
EAPI void e_manager_move(E_Manager *man, int x, int y);
|
|
|
|
EAPI void e_manager_resize(E_Manager *man, int w, int h);
|
|
|
|
EAPI void e_manager_move_resize(E_Manager *man, int x, int y, int w, int h);
|
|
|
|
EAPI void e_manager_raise(E_Manager *man);
|
|
|
|
EAPI void e_manager_lower(E_Manager *man);
|
2005-07-27 21:35:45 -07:00
|
|
|
EAPI E_Manager *e_manager_current_get(void);
|
2005-08-25 06:41:26 -07:00
|
|
|
EAPI E_Manager *e_manager_number_get(int num);
|
2005-02-13 03:17:46 -08:00
|
|
|
|
2005-04-29 12:42:19 -07:00
|
|
|
EAPI void e_managers_keys_grab(void);
|
|
|
|
EAPI void e_managers_keys_ungrab(void);
|
2013-02-07 05:20:07 -08:00
|
|
|
|
|
|
|
static inline E_Manager *
|
|
|
|
e_manager_find_by_root(Ecore_X_Window root)
|
|
|
|
{
|
|
|
|
Eina_List *l;
|
|
|
|
E_Manager *man;
|
|
|
|
|
|
|
|
EINA_LIST_FOREACH(e_manager_list(), l, man)
|
|
|
|
if (root == man->root) return man;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2004-11-24 19:37:45 -08:00
|
|
|
#endif
|
2005-01-12 08:03:09 -08:00
|
|
|
#endif
|