aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/winFang.h
blob: 8749be53bd5e07551c145194e87d8d735da656be (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
#include <Elementary.h>


// Forward references.
typedef struct _globals globals;

typedef struct _winFang
{
  Evas_Object	*win;
  Eina_Clist	widgets;
  void		*data;
  Evas_Smart_Cb on_del;
} winFang;

typedef struct _Widget
{
  char		magic[8];
  Evas_Object	*obj;
  Eina_Clist	node;
  char		*label, *look, *action, *help;
  // foreground / background colour
  // thing
  // types {}
  // skangCoord x, y, w, h
  void		*data;
  Evas_Smart_Cb on_del;
} Widget;

winFang *winFangAdd(globals *ourGlobals);
void winFangComplete(globals *ourGlobals, winFang *win, int x, int y, int w, int h);
void winFangDel(globals *ourGlobals, winFang *win);
Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char *title);