factorize buttons among all UIs

This commit is contained in:
Gwenhael Le Moine 2024-06-12 12:37:14 +02:00
parent 2077502bbe
commit 5be8dc8280
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
4 changed files with 1931 additions and 3786 deletions

1590
src/ui.c

File diff suppressed because it is too large Load diff

View file

@ -44,13 +44,37 @@ typedef struct color_t {
int gray_rgb;
} color_t;
typedef struct button_t {
const char* name;
int x, y;
unsigned int w, h;
int lc;
const char* label;
short font_size;
unsigned int lw, lh;
unsigned char* lb;
const char* letter;
const char* left;
short is_menu;
const char* right;
const char* sub;
} button_t;
/*************/
/* variables */
/*************/
extern letter_t small_font[ 128 ];
extern color_t colors_sx[ NB_COLORS ];
extern color_t colors_gx[ NB_COLORS ];
extern button_t buttons_sx[ NB_KEYS ];
extern button_t buttons_gx[ NB_KEYS ];
/***********/
/* bitmaps */
/***********/

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff