26#ifndef TGUI_HORIZONTAL_WRAP_HPP
27#define TGUI_HORIZONTAL_WRAP_HPP
29#include <TGUI/Widgets/BoxLayout.hpp>
33TGUI_MODULE_EXPORT
namespace tgui
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
static TGUI_NODISCARD HorizontalWrap::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new horizontal wrap widget.
static TGUI_NODISCARD HorizontalWrap::Ptr copy(const HorizontalWrap::ConstPtr &layout)
Makes a copy of another layout.
std::shared_ptr< HorizontalWrap > Ptr
Shared widget pointer.
Definition HorizontalWrap.hpp:42
std::shared_ptr< const HorizontalWrap > ConstPtr
Shared constant widget pointer.
Definition HorizontalWrap.hpp:43
TGUI_NODISCARD Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Class to store the position or size of a widget.
Definition Layout.hpp:305
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39