From: Brendan Hansen Date: Mon, 12 Jul 2021 23:32:12 +0000 (-0500) Subject: unprivated a function X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=2423f1bc43b26e2c22d980dd6642a962b55a55aa;p=onyx.git unprivated a function --- diff --git a/modules/ui/font.onyx b/modules/ui/font.onyx new file mode 100644 index 00000000..ff0375f6 --- /dev/null +++ b/modules/ui/font.onyx @@ -0,0 +1,5 @@ +package ui + +Font :: struct { + texture: gfx.Texture; +} \ No newline at end of file diff --git a/modules/ui/ui.onyx b/modules/ui/ui.onyx index cddd660b..2f08920c 100644 --- a/modules/ui/ui.onyx +++ b/modules/ui/ui.onyx @@ -206,10 +206,8 @@ get_text_width :: (text: str, size := DEFAULT_TEXT_SIZE) -> f32 { } - - - -#private move_towards :: (value: ^$T, target: T, step: T) { +@Relocate +move_towards :: (value: ^$T, target: T, step: T) { if *value < target do *value += step; if *value > target do *value -= step; if *value > target - step && *value < target + step do *value = target;