summaryrefslogtreecommitdiff
path: root/src/bin/e_gadcon_popup.h
blob: e01af6b7914d580d1d11e6eab29954414b098cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifdef E_TYPEDEFS

typedef struct _E_Gadcon_Popup E_Gadcon_Popup;

#else
#ifndef E_GADCON_POPUP_H
#define E_GADCON_POPUP_H

#define E_GADCON_POPUP_TYPE 0xE0b0104e

struct _E_Gadcon_Popup
{
   E_Object             e_obj_inherit;

   Evas_Object         *comp_object;
   E_Gadcon_Client     *gcc;
   Evas_Object         *o_bg;
   Evas_Object        *content;
   Ecore_Event_Handler *autoclose_handlers[2];
   Ecore_Idler         *show_idler;
   Ecore_Animator      *show_animator;
   Evas_Coord           w, h;

   Eina_Bool            pinned E_BITFIELD;
   Eina_Bool            gadcon_lock E_BITFIELD;
   Eina_Bool            gadcon_was_locked E_BITFIELD;
   Eina_Bool            visible E_BITFIELD;
};

E_API E_Gadcon_Popup *e_gadcon_popup_new(E_Gadcon_Client *gcc, Eina_Bool noshadow);
E_API void e_gadcon_popup_content_set(E_Gadcon_Popup *pop, Evas_Object *o);
E_API void e_gadcon_popup_show(E_Gadcon_Popup *pop);
E_API void e_gadcon_popup_hide(E_Gadcon_Popup *pop);
E_API void e_gadcon_popup_toggle_pinned(E_Gadcon_Popup *pop);
E_API void e_gadcon_popup_lock_set(E_Gadcon_Popup *pop, Eina_Bool setting);

#endif
#endif