aboutsummaryrefslogtreecommitdiff
path: root/src/canvas.h
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2024-07-19 15:52:31 +0300
committerKrow Savcik <krow@savcik.xyz>2024-07-19 15:52:31 +0300
commit39c5caccf8486d4a2ffc551b8acf0806fd832d4f (patch)
treef99c3ce2888ee07b5d83e40fadab88b028f1adfd /src/canvas.h
parent7386dd9cf283f0846a34bf8efc95d059953cad60 (diff)
feature: add UI frames
Diffstat (limited to 'src/canvas.h')
-rw-r--r--src/canvas.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/canvas.h b/src/canvas.h
index 21b1d67..58f20b7 100644
--- a/src/canvas.h
+++ b/src/canvas.h
@@ -10,9 +10,14 @@ struct Layer {
char name[LAYERNAMELEN+1];
};
+struct Frame {
+ unsigned int state;
+};
+
struct Canvas {
unsigned int layer_arr_cnt, layer_arr_sz;
- unsigned int cur_col, cur_layer;
+ unsigned int frame_arr_cnt, frame_arr_sz;
+ unsigned int cur_col, cur_layer, cur_frame;
unsigned int w, h, zoom;
char *proj_path;
struct Layer **layers;
@@ -29,7 +34,6 @@ struct Canvas {
unsigned int a;
};
-typedef struct Layer Layer;
typedef struct Canvas Canvas;
extern unsigned char is_drawing;