@@ -28,33 +28,45 @@ struct SizeGroup : public WidgetGroup {
28
28
public:
29
29
constexpr SizeGroup (Orientation orientation) : orientation(orientation) {}
30
30
31
+ ~SizeGroup () override = default ;
32
+
31
33
Orientation orientation;
32
34
33
35
void beforeLayout (bool dirty) final ;
34
36
};
35
37
36
38
struct WidthGroup final : public SizeGroup {
37
39
constexpr WidthGroup () : SizeGroup(Orientation::Horizontal) {}
40
+
41
+ ~WidthGroup () override = default ;
38
42
};
39
43
40
44
struct HeightGroup final : public SizeGroup {
41
45
constexpr HeightGroup () : SizeGroup(Orientation::Vertical) {}
46
+
47
+ ~HeightGroup () override = default ;
42
48
};
43
49
44
50
struct VisualGroup : public WidgetGroup {
45
51
constexpr VisualGroup (Orientation orientation) : orientation(orientation) {}
46
52
53
+ ~VisualGroup () override = default ;
54
+
47
55
Orientation orientation;
48
56
49
57
void beforeFrame () final ;
50
58
};
51
59
52
60
struct HorizontalVisualGroup final : public VisualGroup {
53
61
constexpr HorizontalVisualGroup () : VisualGroup(Orientation::Horizontal) {}
62
+
63
+ ~HorizontalVisualGroup () override = default ;
54
64
};
55
65
56
66
struct VerticalVisualGroup final : public VisualGroup {
57
67
constexpr VerticalVisualGroup () : VisualGroup(Orientation::Vertical) {}
68
+
69
+ ~VerticalVisualGroup () override = default ;
58
70
};
59
71
60
72
template <typename WidgetGroup>
@@ -71,6 +83,8 @@ class WIDGET WidgetWithGroup final : public Widget {
71
83
endConstruction ();
72
84
}
73
85
86
+ ~WidgetWithGroup () override = default ;
87
+
74
88
void append (RC<Widget> widget) override {
75
89
if (widget)
76
90
widget->apply (&group);
0 commit comments