summaryrefslogtreecommitdiff
path: root/src/ui_elements
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui_elements')
-rw-r--r--src/ui_elements/UI.c7
-rw-r--r--src/ui_elements/UI.h8
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ui_elements/UI.c b/src/ui_elements/UI.c
new file mode 100644
index 0000000..fb469e3
--- /dev/null
+++ b/src/ui_elements/UI.c
@@ -0,0 +1,7 @@
+#include "UI.h"
+#include <raylib.h>
+
+void DrawRecBordered(Rectangle rec, Color bg, Color border_color, int border_width) {
+ DrawRectangleRounded(rec, 0.015f, 8, bg);
+ DrawRectangleRoundedLinesEx(rec, 0.015f, 8, border_width, border_color);
+}
diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h
new file mode 100644
index 0000000..4e70482
--- /dev/null
+++ b/src/ui_elements/UI.h
@@ -0,0 +1,8 @@
+#include <raylib.h>
+
+#ifndef UI_ELEMENTS_H
+#define UI_ELEMENTS_H
+
+void DrawRecBordered(Rectangle rec, Color bg, Color border, int border_width);
+
+#endif // UI_ELEMENTS_H