clearer resize code

This commit is contained in:
Alessandro Mauri 2023-01-13 19:26:59 +01:00
parent 5213823f44
commit 3948bd6f50
3 changed files with 65 additions and 69 deletions

1
ugui.h
View file

@ -8,6 +8,7 @@
#define SIZE_PX(x) { .size.i=x, .unit=UG_UNIT_PX }
#define SIZE_MM(x) { .size.f=x, .unit=UG_UNIT_MM }
#define SIZE_PT(x) { .size.f=x, .unit=UG_UNIT_PT }
#define SQUARE(x) .w = x, .h = x
// basic types
typedef unsigned int ug_id_t;