You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

46 lines
1.9 KiB

#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