aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_dialog.h
blob: 6523597b3fcbf903a2b983df724d3b2841b573f7 (plain) (blame)
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
39
40
41
42
43
44
45
46
#ifdef E_TYPEDEFS

typedef struct _E_Dialog E_Dialog;
typedef struct _E_Dialog_Button E_Dialog_Button;

#else
#ifndef E_DIALOG_H
#define E_DIALOG_H

#define E_DIALOG_TYPE 0xE0b01012

struct _E_Dialog
{
   E_Object             e_obj_inherit;

   Evas_Object         *win;
   Evas_Object         *bg_object;
   Evas_Object         *box_object;
   Evas_Object         *text_object;
   Evas_Object         *content_object;
   Evas_Object         *icon_object;
   Evas_Object         *event_object;
   Eina_List           *buttons;
   void                *data;
   int                  min_w, min_h;
   unsigned char        resizable E_BITFIELD;
};

typedef void (*E_Dialog_Cb)(void *data, E_Dialog *dia);

E_API E_Dialog *e_dialog_new                      (Evas_Object *parent, const char *name, const char *class);
E_API E_Dialog *e_dialog_normal_win_new           (Evas_Object *parent, const char *name, const char *class);
E_API void      e_dialog_button_add               (E_Dialog *dia, const char *label, const char *icon, E_Dialog_Cb func, void *data);
E_API int       e_dialog_button_focus_num         (E_Dialog *dia, int button);
E_API int       e_dialog_button_disable_num_set   (E_Dialog *dia, int button, int disabled);
E_API int       e_dialog_button_disable_num_get   (E_Dialog *dia, int button);
E_API void      e_dialog_title_set                (E_Dialog *dia, const char *title);
E_API void      e_dialog_text_set                 (E_Dialog *dia, const char *text);
E_API void      e_dialog_icon_set                 (E_Dialog *dia, const char *icon, Evas_Coord size);
E_API void      e_dialog_border_icon_set          (E_Dialog *dia, const char *icon);
E_API void      e_dialog_content_set              (E_Dialog *dia, Evas_Object *obj, Evas_Coord minw, Evas_Coord minh);
E_API void      e_dialog_resizable_set            (E_Dialog *dia, int resizable);
E_API void      e_dialog_show                     (E_Dialog *dia);

#endif
#endif