summaryrefslogtreecommitdiff
path: root/src/window.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-01-23 21:56:39 +0100
committerAlbert Cervin <albert@acervin.com>2023-01-23 21:56:39 +0100
commit9eda570311ffd292d333f7687074403ff46cc838 (patch)
tree40265e3d2c23831afaf352bb64b8d6634bae9730 /src/window.h
parent385c9d62a5507d901ff7e54d7a4c0342cf3aff43 (diff)
downloaddged-9eda570311ffd292d333f7687074403ff46cc838.tar.gz
dged-9eda570311ffd292d333f7687074403ff46cc838.tar.xz
dged-9eda570311ffd292d333f7687074403ff46cc838.zip
Implement some more commands
- More bug fixes for keys: You can now have mod-less keys in keymaps as binds. - Fix calculation bug with space fillouts.
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h
new file mode 100644
index 0000000..81535a0
--- /dev/null
+++ b/src/window.h
@@ -0,0 +1,15 @@
+#include <stdint.h>
+
+struct command_list;
+
+struct window {
+ uint32_t x;
+ uint32_t y;
+ uint32_t width;
+ uint32_t height;
+ struct buffer *buffer;
+};
+
+void window_update_buffer(struct window *window, struct command_list *commands,
+ uint64_t frame_time, uint32_t *relline,
+ uint32_t *relcol);