25#ifndef TGUI_GROW_HORIZONTAL_LAYOUT_HPP
26#define TGUI_GROW_HORIZONTAL_LAYOUT_HPP
28#include <TGUI/Widgets/BoxLayoutRatios.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
47 using Ptr = std::shared_ptr<GrowHorizontalLayout>;
48 using ConstPtr = std::shared_ptr<const GrowHorizontalLayout>;
50 static constexpr const char StaticWidgetType[] =
"GrowHorizontalLayout";
124 void updateWidgets()
override;
134 std::vector<Layout> m_widgetLayouts;
Abstract class for box layout containers.
Definition BoxLayout.hpp:40
Container that automatically positions children beside each other.
Definition GrowHorizontalLayout.hpp:45
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
std::shared_ptr< GrowHorizontalLayout > Ptr
Shared widget pointer.
Definition GrowHorizontalLayout.hpp:47
static GrowHorizontalLayout::Ptr copy(const GrowHorizontalLayout::ConstPtr &layout)
Makes a copy of another layout.
void removeAllWidgets() override
Removes all widgets that were added to the container.
Vector2f getInnerSize() const override
Returns the space available for widgets inside the container.
std::shared_ptr< const GrowHorizontalLayout > ConstPtr
Shared constant widget pointer.
Definition GrowHorizontalLayout.hpp:48
GrowHorizontalLayout(const GrowHorizontalLayout &)
Copy constructor.
GrowHorizontalLayout(GrowHorizontalLayout &&) noexcept
Move constructor.
Class to store the left, top, width or height of a widget.
Definition Layout.hpp:102
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
Helper class to create an AbsoluteOrRelativeValue object containing a relative value without using a ...
Definition AbsoluteOrRelativeValue.hpp:166