blob: 02aa72b3258109baa24892f31dfb54c270f40dfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 6 april 2015
#include "ui.h"
typedef struct uiSize uiSize;
typedef struct uiSizing uiSizing;
struct uiSize {
intmax_t width;
intmax_t height;
};
// TODO handle destruction
struct uiControl {
uintptr_t (*handle)(uiControl *);
void (*setParent)(uiControl *, uintptr_t);
uiSize (*preferredSize)(uiControl *, uiSizing *);
void (*resize)(uiControl *, intmax_t, intmax_t, intmax_t, intmax_t, uiSizing *);
void (*containerShow)(uiControl *);
void (*containerHide)(uiControl *);
};
|