25#ifndef TGUI_GROW_VERTICAL_LAYOUT_HPP
26#define TGUI_GROW_VERTICAL_LAYOUT_HPP
28#include <TGUI/Widgets/BoxLayoutRatios.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
44 class TGUI_API GrowVerticalLayout :
public BoxLayout
47 using Ptr = std::shared_ptr<GrowVerticalLayout>;
48 using ConstPtr = std::shared_ptr<const GrowVerticalLayout>;
59 GrowVerticalLayout(
const char* typeName =
StaticWidgetType,
bool initRenderer =
true);
74 GrowVerticalLayout& operator=(const GrowVerticalLayout&);
79 GrowVerticalLayout& operator=(GrowVerticalLayout&&) noexcept;
84 ~GrowVerticalLayout() = default;
124 void updateWidgets()
override;
134 std::vector<Layout> m_widgetLayouts;
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
void removeAllWidgets() override
Removes all widgets that were added to the container.
static GrowVerticalLayout::Ptr copy(const GrowVerticalLayout::ConstPtr &layout)
Makes a copy of another layout.
Vector2f getInnerSize() const override
Returns the space available for widgets inside the container.
static constexpr const char StaticWidgetType[]
Type name of the widget.
Definition GrowVerticalLayout.hpp:50
GrowVerticalLayout(const GrowVerticalLayout &)
Copy constructor.
GrowVerticalLayout(GrowVerticalLayout &&) noexcept
Move constructor.
std::shared_ptr< const GrowVerticalLayout > ConstPtr
Shared constant widget pointer.
Definition GrowVerticalLayout.hpp:48
std::shared_ptr< GrowVerticalLayout > Ptr
Shared widget pointer.
Definition GrowVerticalLayout.hpp:47
static GrowVerticalLayout::Ptr create(const Layout &width={RelativeValue(1)})
Creates a new vertical layout widget.
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