summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/widget/label.h
blob: 9992f8c34db052db7bb8ee0600ad443911dc359d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdint.h>

#define EVE_LABEL_MARGIN        10

typedef struct EVELabel {
    EVERect g;
    EVEFont *font;
    char *title;
} EVELabel;

typedef struct EVELabelSpec {
    EVERect g;
    EVEFont *font;
    char *title;
    int16_t margin;
} EVELabelSpec;

void eve_label_init(EVELabel *label, EVERect *g, EVEFont *font, char *title);

void eve_label_create(EVELabel *label, EVELabelSpec *spec, EVEPage *page);
void eve_label_draw(EVELabel *label);