Added textmenu

This commit is contained in:
2021-09-08 23:10:59 -07:00
parent a386d93bdd
commit 13f0345ba0
10 changed files with 196 additions and 72 deletions

View File

@@ -29,7 +29,7 @@ typedef struct {
/** Callback to receive when a grid child is to be resized */
typedef void gridchildresizecallback_t(
void *user, int32_t i,
void *user, uint8_t i,
float screenWidth, float screenHeight,
float x, float y,
float width, float height
@@ -47,7 +47,6 @@ typedef struct {
typedef struct {
gridchildbreakpoint_t breakpoints[GRID_BREAKPOINT_COUNT];
uint8_t breakpointCount;
gridchildresizecallback_t *onResize;
} gridchild_t;
/** Definitio of a grid */
@@ -65,9 +64,10 @@ typedef struct {
/** Internal size reference, used for caching resize events */
float width;
float height;
float x;
float y;
/** Pointer to any custom user data */
void *user;
/** Callback to listen for when children are resized */
gridchildresizecallback_t *onResize;
} grid_t;