18 int mInternalSpacing{0};
26 mOrientation = orientation;
27 mInternalSpacing = internalSpace;
32 LayoutManager::Itr last)
override;
38 Size mInternalSpacing{0};
46 explicit GridLayout(
Orientation orientation,
int horizontalSpace = 0,
int verticalSpace = 0,
int stride = 0)
48 mOrientation = orientation;
49 mInternalSpacing.w = horizontalSpace;
50 mInternalSpacing.h = verticalSpace;
56 LayoutManager::Itr last)
override;
64 setLayoutManager(std::make_unique<LinearLayout>(Orientation::Horizontal));
67 static constexpr std::string_view
id =
"Row";
68 std::string_view nodeId()
const noexcept
override {
78 setLayoutManager(std::make_unique<LinearLayout>(Orientation::Vertical));
81 static constexpr std::string_view
id =
"Column";
83 std::string_view nodeId()
const noexcept
override {
93 setLayoutManager(std::make_unique<GridLayout>(Orientation::Horizontal, 2, 2, 0));
96 ~
Grid()
override =
default;
99 setLayoutManager(std::make_unique<GridLayout>(Orientation::Horizontal, 2, 2, stride));
102 static constexpr std::string_view
id =
"Grid";
104 std::string_view nodeId()
const noexcept
override {
126 LayoutManager::Itr last)
override;
A pure virtual base class for layout managers.
Definition: Visual.h:392
A Widget which manages contained Widgets.
Definition: Visual.h:697
void draw(gm::Context &context, const Position< int > &containerPosition) override
Draw the manager and contents.
Definition: Visual.cpp:217
void draw(gm::Context &context, const Position< int > &containerPosition) override
Draw the visual.
Definition: Manager.h:108
Context
Definition: GraphicsModel.h:76
A layout manager for to create overlays on the Container.
Definition: Manager.h:118
Orientation
Possible values for Widget orientation.
Definition: Types.h:41
A composite of a Position and a Size.
Definition: Types.h:307
A size in integer dimensions.
Definition: Types.h:230
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13
Rectangle layoutContent(gm::Context &context, const Rectangle &screenRect, LayoutManager::Itr first, LayoutManager::Itr last) override
Layout the contents of the associated manager.
Definition: Manager.cpp:13
User Interface Visual types.