summaryrefslogtreecommitdiff
path: root/src/bin/e_entry_dialog.h
blob: 222493839dc735aecd2765af34598675e621ba6b (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
39
40
41
42
/*
 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
 */
#ifdef E_TYPEDEFS

typedef struct _E_Entry_Dialog E_Entry_Dialog;

#else
#ifndef E_ENTRY_DIALOG_H
#define E_ENTRY_DIALOG_H

#define E_ENTRY_DIALOG_TYPE 0xE0b0101d

struct _E_Entry_Dialog
{
   E_Object e_obj_inherit;
   
   E_Dialog *dia;
   Evas_Object *entry;
   char *text;
   struct {
      void (*func) (char *text, void *data);
      void *data;
   } ok;
   struct {
      void (*func) (void *data);
      void *data;
   } cancel;
};

EAPI E_Entry_Dialog *e_entry_dialog_show(const char *title,
					 const char *icon,
					 const char *text,
					 const char *initial_text,
					 const char *button_text,
					 const char *button2_text, 
					 void (*ok_func) (char *text, void *data), 
					 void (*cancel_func) (void *data),
					 void *data);

#endif
#endif