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/parent.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/parent.jai')
| -rw-r--r-- | kscurses/ui/parent.jai | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/kscurses/ui/parent.jai b/kscurses/ui/parent.jai deleted file mode 100644 index af459de..0000000 --- a/kscurses/ui/parent.jai +++ /dev/null @@ -1,33 +0,0 @@ -UI_Parent :: struct { - #as using base : UI_Elem; - active_element : *UI_Elem; -} - -__last_set : *UI_Elem; - -set_active_recursive :: (ui_elem : *UI_Elem) { - assert(!__last_set); __last_set = ui_elem; - assert(ui_elem.cursor_state == .OUTSIDE); ui_elem.cursor_state = .ON; - - current := ui_elem; - while 1 { - parent := current.parent; - if !parent break; - assert(!parent.active_element); - parent.active_element = current; - current = xx parent; - } -} -unset_active_recursive :: (ui_elem : *UI_Elem) { - assert(__last_set == ui_elem); __last_set = null; - assert(ui_elem.cursor_state == .ON); ui_elem.cursor_state = .OUTSIDE; - - current := ui_elem; - while 1 { - parent := current.parent; - if !parent break; - assert(parent.active_element == current); - parent.active_element = null; - current = xx parent; - } -}
\ No newline at end of file |
