summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/widgets.h
blob: 542b350f9f81f0466fee9c0dcbbc24d51faed42c (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
#include "font.h"
#include "label.h"
#include "widget.h"

#include "freew.h"
#include "spacerw.h"
#include "pagew.h"
#include "strw.h"
#include "textw.h"
#include "selectw.h"

typedef union EVEWidgetSpec {
    EVEFreeSpec free;
    EVESpacerSpec spacer;
    EVEPageSpec page;
    EVEStrSpec str;
    EVETextSpec text;
    EVESelectSpec select;
} EVEWidgetSpec;

typedef int (*eve_widget_create_t) (EVEWidget *, EVERect *g, EVEWidgetSpec *);
typedef void (*eve_widget_destroy_t) (EVEWidget *);

int eve_widget_create(EVEWidget *widget, uint8_t type, EVERect *g, EVEWidgetSpec *spec);
void eve_widget_destroy(EVEWidget *widget);