2014-11-02 18:35:13 -08:00
|
|
|
#ifndef E_TYPEDEFS
|
|
|
|
#ifndef E_WIN_H
|
|
|
|
#define E_WIN_H
|
2005-07-11 02:19:17 -07:00
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
EINTERN int e_win_init (void);
|
|
|
|
EINTERN int e_win_shutdown (void);
|
2012-10-02 01:54:35 -07:00
|
|
|
|
2005-07-11 02:19:17 -07:00
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
EAPI E_Client *e_win_client_get(Evas_Object *obj);
|
|
|
|
EAPI Ecore_Evas *e_win_ee_get(Evas_Object *obj);
|
|
|
|
EAPI E_Pointer *e_win_pointer_get(Evas_Object *obj);
|
|
|
|
EAPI Eina_Bool e_win_centered_get(Evas_Object *obj);
|
2013-09-04 01:31:26 -07:00
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
EAPI void e_win_client_icon_set(Evas_Object *win, const char *icon);
|
|
|
|
EAPI void e_win_client_icon_key_set(Evas_Object *win, const char *key);
|
2005-07-11 02:19:17 -07:00
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
EAPI void e_win_placed_set(Evas_Object *win, Eina_Bool placed);
|
|
|
|
EAPI void e_win_no_remember_set(Evas_Object *win, Eina_Bool no_rem);
|
|
|
|
EAPI void e_win_no_reopen_set(Evas_Object *win, Eina_Bool no_reopen);
|
2005-07-11 02:19:17 -07:00
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
static inline Evas_Object *
|
|
|
|
e_win_evas_object_win_get(Evas_Object *obj)
|
2005-07-11 02:19:17 -07:00
|
|
|
{
|
2014-11-02 18:35:13 -08:00
|
|
|
return ecore_evas_data_get(e_win_ee_get(obj), "elm_win");
|
|
|
|
}
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2015-01-06 13:00:04 -08:00
|
|
|
static inline Evas_Object *
|
|
|
|
e_win_evas_win_get(Evas *e)
|
|
|
|
{
|
|
|
|
return ecore_evas_data_get(ecore_evas_ecore_evas_get(e), "elm_win");
|
|
|
|
}
|
|
|
|
|
2014-11-02 18:35:13 -08:00
|
|
|
static inline Eina_Bool
|
|
|
|
e_obj_is_win(const void *obj)
|
|
|
|
{
|
|
|
|
const char *type = evas_object_type_get(obj);
|
|
|
|
return type && !strcmp(type, "elm_win");
|
|
|
|
}
|
2005-07-11 02:19:17 -07:00
|
|
|
|
2014-11-03 11:08:45 -08:00
|
|
|
EAPI Evas_Object *e_elm_win_add(Evas_Object *parent, const char *name, Elm_Win_Type type);
|
2005-08-29 18:16:48 -07:00
|
|
|
|
2014-11-03 11:08:45 -08:00
|
|
|
#define elm_win_add(X, Y, Z) \
|
|
|
|
e_elm_win_add((X), (Y), (Z))
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2005-07-11 02:19:17 -07:00
|
|
|
#endif
|
|
|
|
#endif
|