25#ifndef TGUI_GROW_VERTICAL_LAYOUT_HPP
26#define TGUI_GROW_VERTICAL_LAYOUT_HPP
28#include <TGUI/Widgets/BoxLayoutRatios.hpp>
44 class TGUI_API GrowVerticalLayout :
public BoxLayout
47 using Ptr = std::shared_ptr<GrowVerticalLayout>;
48 using ConstPtr = std::shared_ptr<const GrowVerticalLayout>;
59 explicit GrowVerticalLayout(
const char* typeName =
StaticWidgetType,
bool initRenderer =
true);
74 GrowVerticalLayout&
operator=(
const GrowVerticalLayout& other);
79 GrowVerticalLayout&
operator=(GrowVerticalLayout&& other)
noexcept;
124 void updateWidgets()
override;
134 std::vector<Layout> m_widgetLayouts;
static constexpr char StaticWidgetType[]
Type name of the widget.
Definition GrowVerticalLayout.hpp:50
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
GrowVerticalLayout & operator=(const GrowVerticalLayout &other)
Overload of copy assignment operator.
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.
GrowVerticalLayout(GrowVerticalLayout &&other) noexcept
Move constructor.
GrowVerticalLayout(const GrowVerticalLayout &other)
Copy constructor.
~GrowVerticalLayout() override=default
Destructor.
std::shared_ptr< const GrowVerticalLayout > ConstPtr
Shared constant widget pointer.
Definition GrowVerticalLayout.hpp:48
GrowVerticalLayout & operator=(GrowVerticalLayout &&other) noexcept
Move assignment.
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:100
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:37
Helper class to create an AbsoluteOrRelativeValue object containing a relative value without using a ...
Definition AbsoluteOrRelativeValue.hpp:163