Refactor layout / widget interface

This allows to cut loose quite some dependencies on headers.
This commit is contained in:
Raphael Coeffic
2021-04-18 07:58:28 +02:00
parent 3c4047bb8d
commit 413b97c9d6
32 changed files with 942 additions and 693 deletions
@@ -398,11 +398,11 @@ PACK(struct TelemetrySensor_218 {
#if defined(PCBHORUS)
PACK(struct CustomScreenData_v218 {
char LayoutId[10];
Layout::PersistentData layoutData;
LayoutPersistentData layoutData;
});
#define VIEW_DATA \
CustomScreenData screenData[MAX_CUSTOM_SCREENS]; \
TopBar::PersistentData topbarData; \
TopBarPersistentData topbarData; \
uint8_t view;
#elif defined(PCBTARANIS)
#define VIEW_DATA uint8_t view;