aboutsummaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
committerKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
commit9e660e594f6d3a43ea1427fb872801a2fcedad93 (patch)
tree459cd0c6fc5fef0366f7ef249ae19dd67c363772 /src/ui.h
initial commit
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ui.h b/src/ui.h
new file mode 100644
index 0000000..19c8881
--- /dev/null
+++ b/src/ui.h
@@ -0,0 +1,36 @@
+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);
+void ui_mouse_move(int, int);
+unsigned char ui_theme_load(const char *);