aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_dialog.h
blob: f9d930c02baf35d88279101d81d2519c2e781f78 (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
/*
 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
 */
#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;

   E_Win               *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;
   Evas_List           *buttons;
   void                *data;
   int                  min_w, min_h;
   unsigned char        resizable : 1;
};

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

#endif
#endif