diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-11-23 21:52:24 +0100 |
| commit | 6f7374c2fa58c8692b51018864b802e6b876d305 (patch) | |
| tree | a7e8ead757e9f4de1920395336dcac1c8a989576 /src/include/ui/button.h | |
A new start
Diffstat (limited to 'src/include/ui/button.h')
| -rw-r--r-- | src/include/ui/button.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/ui/button.h b/src/include/ui/button.h new file mode 100644 index 0000000..e381631 --- /dev/null +++ b/src/include/ui/button.h @@ -0,0 +1,20 @@ +/*
+* BSD 2-Clause “Simplified” License
+* Copyright (c) 2019, Aldrik Ramaekers, aldrik.ramaekers@protonmail.com
+* All rights reserved.
+*/
+
+#ifndef INCLUDE_BUTTON
+#define INCLUDE_BUTTON
+
+typedef enum t_button_type
+{
+ BUTTON_STATIC = 0,
+ BUTTON_ENABLED = 1,
+ BUTTON_DISABLED = 2,
+ BUTTON_HIGHLIGHTED = 3,
+} button_type;
+
+bool button_render(float scale, button_type enabled, char* text, s32 x, s32 y, s32 w, s32 h);
+
+#endif
\ No newline at end of file |
