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
+3 -3
View File
@@ -553,11 +553,11 @@ typedef uint8_t swarnenable_t;
#define LAYOUT_ID_LEN 10
PACK(struct CustomScreenData {
char LayoutId[LAYOUT_ID_LEN];
Layout::PersistentData layoutData;
LayoutPersistentData layoutData;
});
#define CUSTOM_SCREENS_DATA \
NOBACKUP(CustomScreenData screenData[MAX_CUSTOM_SCREENS]); \
NOBACKUP(TopBar::PersistentData topbarData); \
NOBACKUP(TopBarPersistentData topbarData); \
NOBACKUP(uint8_t view);
#else
#define CUSTOM_SCREENS_DATA \
@@ -921,7 +921,7 @@ static inline void check_struct()
CHKSIZE(ModelHeader, 31);
CHKSIZE(CurveHeader, 4);
CHKSIZE(CustomScreenData, 850);
CHKSIZE(TopBar::PersistentData, 300);
CHKTYPE(TopBarPersistentData, 300);
#elif defined(PCBNV14)
// TODO
#elif defined(PCBSKY9X)