summaryrefslogtreecommitdiff
path: root/code/fe310/eos/eve/widget/page.h
blob: 3b6be70455b1ce7c84a66d4ebeccec1ffc084f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdint.h>

typedef struct EVEPageWidget {
    EVEWidget w;
    char *title;
    EVEPage *page;
    uint8_t tag;
    uint8_t font_id;
} EVEPageWidget;

void eve_pagew_init(EVEPageWidget *widget, int16_t x, int16_t y, uint16_t w, uint16_t h, uint8_t font_id, char *title, EVEPage *page);
int eve_pagew_touch(EVEWidget *_widget, EVEPage *page, uint8_t tag0, int touch_idx, EVEPageFocus *focus);
uint8_t eve_pagew_draw(EVEWidget *_widget, EVEPage *page, uint8_t tag0);