forked from Miroirs/x49gp
style UI using a global (hardcoded) CSS style; fix _tiny_text_width(); better annunciators
This commit is contained in:
parent
2d0aa0a987
commit
ca9bc1eac1
2 changed files with 350 additions and 501 deletions
841
src/x49gpng/ui.c
841
src/x49gpng/ui.c
File diff suppressed because it is too large
Load diff
|
@ -7,8 +7,6 @@
|
||||||
|
|
||||||
#include "x49gp_types.h"
|
#include "x49gp_types.h"
|
||||||
|
|
||||||
#define LCD_PIXEL_SCALE 2
|
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
UI_COLOR_BLACK = 0,
|
UI_COLOR_BLACK = 0,
|
||||||
UI_COLOR_WHITE,
|
UI_COLOR_WHITE,
|
||||||
|
@ -47,25 +45,23 @@ typedef enum {
|
||||||
} x49gp_ui_calculator_t;
|
} x49gp_ui_calculator_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
const char* css_class;
|
||||||
const char* label;
|
const char* label;
|
||||||
const char* letter;
|
const char* letter;
|
||||||
const char* left;
|
const char* left;
|
||||||
const char* right;
|
const char* right;
|
||||||
const char* below;
|
const char* below;
|
||||||
x49gp_ui_color_t color;
|
|
||||||
double font_size;
|
|
||||||
cairo_font_weight_t font_weight;
|
|
||||||
double letter_size;
|
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
|
|
||||||
int column;
|
int column;
|
||||||
int row;
|
int row;
|
||||||
unsigned char columnbit;
|
unsigned char columnbit;
|
||||||
unsigned char rowbit;
|
unsigned char rowbit;
|
||||||
int eint;
|
int eint;
|
||||||
x49gp_ui_color_t bg_color;
|
|
||||||
} x49gp_ui_key_t;
|
} x49gp_ui_key_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in a new issue