aboutsummaryrefslogtreecommitdiff
path: root/src/ui.h
blob: d8e419a3db52b968becd30553ad3f04d199dffdd (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
26
27
28
29
30
31
32
33
34
35
36
37
enum UI_PanelType {
    UI_PANELTYPE_CANVAS,
    UI_PANELTYPE_PALETTE,
    UI_PANELTYPE_BUTTONS,
    UI_PANELTYPE_TIMELINE,
    UI_PANELTYPE_DIVIDER,
};

struct UI;
struct UIPanel;
struct UIPanelCanvas;
struct UIPanelPalette;
struct UIPanelButtons;
struct UIPanelTimeline;
struct UIPanelDivider;

typedef struct UI               UI;
typedef struct UIPanel          UIPanel;
typedef struct UIPanelCanvas    UIPanelCanvas;
typedef struct UIPanelPalette   UIPanelPalette;
typedef struct UIPanelButtons   UIPanelButtons;
typedef struct UIPanelTimeline  UIPanelTimeline;
typedef struct UIPanelDivider   UIPanelDivider;

extern UI *main_ui;

void            ui_create(const char *);
void            ui_destroy();
unsigned char   ui_resize();
void            ui_redraw();
void            ui_redraw_panel(unsigned char);
void            ui_present();
void            ui_mousel_up(int, int);
void            ui_mousel_down(int, int);
int             ui_mouser_down(int, int);
void            ui_mouse_move(int, int);
unsigned char   ui_theme_load(const char *);