ubitxv6/button.h
2020-02-09 22:17:50 -08:00

18 lines
327 B
C

#pragma once
#include <stdint.h>
enum ButtonStatus_e : uint8_t {
Stateless,
Inactive,
Active
};
struct Button {
int16_t x, y, w, h;
const char* text;
void (*text_override)(char* text_out, uint16_t max_text_size);
char morse;
ButtonStatus_e (*status)();
void (*on_select)();//Action to take when selected
};