From 6f7374c2fa58c8692b51018864b802e6b876d305 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 23 Nov 2024 21:52:24 +0100 Subject: A new start --- src/include/ui/button.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/include/ui/button.h (limited to 'src/include/ui/button.h') 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 -- cgit v1.2.3-70-g09d2