Working on fixing grid movement.

This commit is contained in:
2021-09-11 17:23:31 -07:00
parent 9b179778b9
commit 4f705ad278
7 changed files with 25 additions and 20 deletions

View File

@ -27,14 +27,6 @@ typedef struct {
float gutterY;
} gridbreakpoint_t;
/** Callback to receive when a grid child is to be resized */
typedef void gridchildresizecallback_t(
void *user, uint8_t i,
float screenWidth, float screenHeight,
float x, float y,
float width, float height
);
/** Definition of a grid child's breakpoint */
typedef struct {
uint8_t columns;
@ -43,6 +35,14 @@ typedef struct {
uint8_t y;
} gridchildbreakpoint_t;
/** Callback to receive when a grid child is to be resized */
typedef void gridchildresizecallback_t(
void *user, uint8_t i, gridchildbreakpoint_t *breakpoint,
float screenWidth, float screenHeight,
float x, float y,
float width, float height
);
/** Definition of a grid child */
typedef struct {
gridchildbreakpoint_t breakpoints[GRID_BREAKPOINT_COUNT];

View File

@ -5,6 +5,7 @@
#pragma once
#include "../libs.h"
#include "../display/font.h"
#include "menuv2.h"
#include "grid.h"
#include "label.h"