26#ifndef TGUI_HORIZONTAL_WRAP_HPP
27#define TGUI_HORIZONTAL_WRAP_HPP
29#include <TGUI/Widgets/BoxLayout.hpp>
42 using Ptr = std::shared_ptr<HorizontalWrap>;
43 using ConstPtr = std::shared_ptr<const HorizontalWrap>;
45 static constexpr const char StaticWidgetType[] =
"HorizontalWrap";
55 HorizontalWrap(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
84 void updateWidgets()
override;
Abstract class for box layout containers.
Definition: BoxLayout.hpp:41
Container that automatically arranges children in lines, adding a new line when a horizontal line is ...
Definition: HorizontalWrap.hpp:40
std::shared_ptr< HorizontalWrap > Ptr
Shared widget pointer.
Definition: HorizontalWrap.hpp:42
static HorizontalWrap::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new horizontal wrap widget.
std::shared_ptr< const HorizontalWrap > ConstPtr
Shared constant widget pointer.
Definition: HorizontalWrap.hpp:43
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
static HorizontalWrap::Ptr copy(const HorizontalWrap::ConstPtr &layout)
Makes a copy of another layout.
Class to store the position or size of a widget.
Definition: Layout.hpp:284
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36