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

struct EVEWidgetSpec;

typedef struct EVEPageWidget {
    EVEWidget w;
    EVEFont *font;
    char *title;
    eve_view_constructor_t constructor;
} EVEPageWidget;

typedef struct EVEPageSpec {
    EVEFont *font;
    char *title;
    eve_view_constructor_t constructor;
} EVEPageSpec;

void eve_pagew_init(EVEPageWidget *widget, EVERect *g, EVEPage *page, EVEFont *font, char *title, eve_view_constructor_t constructor);

int eve_pagew_create(EVEWidget *_widget, struct EVEWidgetSpec *spec, EVEPage *page);
uint8_t eve_pagew_draw(EVEWidget *_widget, uint8_t tag0);
int eve_pagew_touch(EVEWidget *_widget, EVETouch *touch, uint16_t evt);