Add drawing buttons

This commit is contained in:
2024-01-15 22:36:46 +00:00
parent f7449d8014
commit 6d7de03ae8
2 changed files with 26 additions and 0 deletions

10
src/button.c Normal file
View File

@@ -0,0 +1,10 @@
#include "button.h"
#include "window.h"
#define BUTTON_FILL_COLOUR ((colour_t){.abgr = 0xff89a83c})
#define BUTTON_BORDER_COLOUR ((colour_t){.abgr = 0xff768432})
void draw_button(const window_t *wnd, const button_t *button) {
fill_rect(wnd, &(button->rect), BUTTON_FILL_COLOUR);
draw_rect(wnd, &(button->rect), BUTTON_BORDER_COLOUR);
}