MX
2022-10-28 18:34:35 +03:00
parent 457b9ae2a9
commit 0a68d80028
44 changed files with 886 additions and 114 deletions

View File

@@ -5,7 +5,7 @@
#define TEXT_BOX_HEIGHT 13
#define TEXT_BOX_MARGIN 4
void ui_control_text_box_render(Canvas* const canvas, int8_t y, char* text, bool is_selected) {
void ui_control_text_box_render(Canvas* const canvas, int16_t y, const char* text, bool is_selected) {
if(y < -TEXT_BOX_HEIGHT) {
return;
}
@@ -44,7 +44,7 @@ void ui_control_select_render(
int16_t x,
int16_t y,
uint8_t width,
char* text,
const char* text,
bool is_selected) {
if(y < -TEXT_BOX_HEIGHT) {
return;
@@ -99,7 +99,7 @@ void ui_control_button_render(
int16_t y,
uint8_t width,
uint8_t height,
char* text,
const char* text,
bool is_selected) {
if(y < -height) {
return;

View File

@@ -3,19 +3,19 @@
#include <inttypes.h>
#include <gui/gui.h>
void ui_control_text_box_render(Canvas* const canvas, int8_t y, char* text, bool is_selected);
void ui_control_text_box_render(Canvas* const canvas, int16_t y, const char* text, bool is_selected);
void ui_control_button_render(
Canvas* const canvas,
int16_t x,
int16_t y,
uint8_t width,
uint8_t height,
char* text,
const char* text,
bool is_selected);
void ui_control_select_render(
Canvas* const canvas,
int16_t x,
int16_t y,
uint8_t width,
char* text,
const char* text,
bool is_selected);