From 8d4b59353fe56f268115c9511bb45ee239b86dd4 Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 14 Feb 2024 02:27:40 -0500 Subject: [PATCH] some progression on ui code --- code/ui.odin | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/code/ui.odin b/code/ui.odin index 81503bd..1c60e4e 100644 --- a/code/ui.odin +++ b/code/ui.odin @@ -12,6 +12,14 @@ Axis2 :: enum { Count, } +UI_FocusKind :: enum u32 { + Null, + Off, + On, + Root, + Count, +} + UI_IconKind :: enum u32 { Null, Arrow_Up, @@ -31,6 +39,34 @@ UI_IconInfo :: struct { placehodler : int } +UI_NavDeltaUnit :: enum u32 { + Element, + Chunk, + Whole, + End_Point, + Count, +} + +UI_NavActionFlag :: enum u32 { + Keep_Mark, + Delete, + Copy, + Paste, + Zero_Delta_On_Select, + Pick_Select_Side, + Can_At_Line, + Explicit_Directional, + Replace_And_Commit, +} +UI_NavActionFlags :: bit_set[UI_NavActionFlag; u32] + +UI_NavAction :: struct { + flags : UI_NavActionFlags, + delta : Vec2i, + delta_unit : UI_NavDeltaUnit, + insertion : string, +} + UI_SizeKind :: enum u32 { Null, Pixels,