From 373e48216d32a67e7976eac1beeeb427c28be485 Mon Sep 17 00:00:00 2001
From: Abdelrahman <said.abdelrahman89@gmail.com>
Date: Sun, 25 Feb 2024 20:33:04 +0000
Subject: [PATCH] Reorder ui functions

---
 src/ui.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/ui.c b/src/ui.c
index 8bd72d2..d0848cb 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -141,11 +141,6 @@ bool ui_node(const window *wnd, ui_ctx *ctx, rect rect,
   return false;
 }
 
-internal u64 get_id(ui_ctx *ctx) {
-  // This will always keep the 0 slot empty
-  return ++(ctx->count);
-}
-
 bool ui_noodle(const window *wnd, ui_ctx *ctx, line ln, ui_elem_colours colours,
                rect parent_node) {
   if (ctx->count + 1 >= MAX_UI_ELEMENTS) {
@@ -253,3 +248,8 @@ bool ui_noodle(const window *wnd, ui_ctx *ctx, line ln, ui_elem_colours colours,
 
   return false;
 }
+
+internal u64 get_id(ui_ctx *ctx) {
+  // This will always keep the 0 slot empty
+  return ++(ctx->count);
+}