diff options
| author | dam <dam@gudinoff> | 2024-03-11 00:10:26 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-03-11 00:10:26 +0000 |
| commit | 4013fe7798a04761102fb2511c6eb6afbeeca4b8 (patch) | |
| tree | bfd7251981c30327b9882f6f4983d3ed4077e2bc /kscurses/ui/text_buf.jai | |
| parent | b379cbe75de1f4cf6ef9fabd73b1c0c9630af842 (diff) | |
| download | task-time-tracker-4013fe7798a04761102fb2511c6eb6afbeeca4b8.tar.zst task-time-tracker-4013fe7798a04761102fb2511c6eb6afbeeca4b8.zip | |
Removing curses dependency files.
Diffstat (limited to 'kscurses/ui/text_buf.jai')
| -rw-r--r-- | kscurses/ui/text_buf.jai | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/kscurses/ui/text_buf.jai b/kscurses/ui/text_buf.jai deleted file mode 100644 index 689bb98..0000000 --- a/kscurses/ui/text_buf.jai +++ /dev/null @@ -1,15 +0,0 @@ -UI_Text_Buf :: struct { - #as using base : UI_Elem = .{type = .TEXT_BUF}; - lines : []string; - lines_dynamic : *[]string; -} -c_draw_textbuf :: (canvas : *Canvas, ui_elem : *UI_Elem, zone : Ibox2, style : *UI_Style) -> bool { - using cast(*UI_Text_Buf) ui_elem; - - lines_to_draw := ifx lines_dynamic then <<lines_dynamic else lines; - for l, y : lines_to_draw { - if y >= zone.height break; - c_draw_line_ascii(canvas, l, zone, .{0, xx y}, style.text.default); - } - return true; -} |
