factorize buttons among all UIs
This commit is contained in:
parent
2077502bbe
commit
5be8dc8280
4 changed files with 1931 additions and 3786 deletions
|
@ -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 */
|
||||
/***********/
|
||||
|
|
2034
src/ui_sdl.c
2034
src/ui_sdl.c
File diff suppressed because it is too large
Load diff
2069
src/ui_x11.c
2069
src/ui_x11.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue