aboutsummaryrefslogtreecommitdiff
path: root/kscurses/module.jai
diff options
context:
space:
mode:
Diffstat (limited to 'kscurses/module.jai')
-rw-r--r--kscurses/module.jai91
1 files changed, 91 insertions, 0 deletions
diff --git a/kscurses/module.jai b/kscurses/module.jai
new file mode 100644
index 0000000..23c0105
--- /dev/null
+++ b/kscurses/module.jai
@@ -0,0 +1,91 @@
+#module_parameters(
+ ENABLE_SIGINT := true,
+ ENABLE_SIGQUIT := true,
+ TICK_DURATION_MS := 1000,
+ ENABLE_UI_BELL := true,
+ ENABLE_UI_BLINKING := true
+);
+
+#if OS == .LINUX {
+ #import "POSIX";
+}
+
+// ivec2 :: Generic_Vector(s32, 2);
+// ivec3 :: Generic_Vector(s32, 3);
+// u8vec3 :: Generic_Vector(u8, 3);
+// Ibox2 :: Generic_Box(s32, 2);
+
+// #load "../Extra_Containers/module.jai";
+// #import "Extra_Containers";
+
+
+#import "Basic"();
+#import "Process";
+#import "String";
+
+#load "io.jai";
+#load "init.jai";
+#load "events.jai";
+
+#load "vectors.jai";
+#load "modes.jai";
+#load "print.jai";
+#load "utils.jai";
+#load "canvas.jai";
+
+#load "ui/style.jai";
+#load "ui/element.jai";
+#load "ui/master.jai";
+#load "ui/links.jai";
+
+#load "ui/button.jai";
+#load "ui/group.jai";
+#load "ui/text_buf.jai";
+#load "ui/select_list.jai";
+#load "ui/parent.jai";
+#load "ui/scene_manager.jai";
+#load "ui/popup_manager.jai";
+#load "ui/line_input.jai";
+#load "ui/table.jai";
+#load "ui/scalable_group.jai";
+#load "ui/progress_bar.jai";
+
+#load "lambdas.jai";
+#load "queue.jai";
+
+// TODO:
+// remake canvas:
+// -force full refresh only after resize / init
+// maybe_resize()
+// fill_by_proc()
+// clear()
+
+
+// in resize & fill: check if size same
+// add c_print_ascii_line, c_print_ascii_line_bounded
+
+// restart_clock && multiple clocks
+
+// in set_main_scene check if root is predecessor of active element
+// stop_clock -> clock_state
+
+// module overlap check / set minimum size of terminal
+
+// make generic_vec2/3
+// make better how_to
+// add meaningfull assertion text
+// UI_Scene <- UI_Popup
+// autogrow in line_input
+// detection of the element on which rendering breaks
+// extra debug lines on top
+// group view
+// + grid / group (maybe)
+// make text u8/u32 modes in text_buf, line_input & other
+// add block_input
+// (maybe) unset_active_recursive without arguments
+// plotter
+// tree/directory view
+// push graphics mode
+
+// add windows(os) support xd
+// (August 13, 2023). Fuck it, I don't want to deal with this shit anymore.