Updated X10 generated structs

This commit is contained in:
Raphael Coeffic
2021-11-10 11:05:47 +01:00
parent f1d50c585a
commit 94764d8fa9
4 changed files with 67 additions and 37 deletions
+7
View File
@@ -33,7 +33,14 @@ constexpr uint32_t LAYOUT_REFRESH = 1000 / 2; // 2 Hz
class BitmapBuffer;
#if !defined(YAML_GENERATOR)
typedef WidgetsContainerPersistentData<MAX_LAYOUT_ZONES,MAX_LAYOUT_OPTIONS> LayoutPersistentData;
#else
struct LayoutPersistentData {
ZonePersistentData zones[MAX_LAYOUT_ZONES];
ZoneOptionValueTyped options[MAX_LAYOUT_OPTIONS];
};
#endif
class LayoutFactory
{
@@ -67,7 +67,14 @@ struct WidgetsContainerPersistentData {
ZoneOptionValueTyped options[O];
};
#if !defined(YAML_GENERATOR)
typedef WidgetsContainerPersistentData<MAX_TOPBAR_ZONES, MAX_TOPBAR_OPTIONS> TopBarPersistentData;
#else
struct TopBarPersistentData {
ZonePersistentData zones[MAX_TOPBAR_ZONES];
ZoneOptionValueTyped options[MAX_TOPBAR_OPTIONS];
};
#endif
class WidgetsContainer: public FormGroup
{