26 #ifndef TGUI_HORIZONTAL_WRAP_HPP
27 #define TGUI_HORIZONTAL_WRAP_HPP
29 #include <TGUI/Widgets/BoxLayout.hpp>
42 typedef std::shared_ptr<HorizontalWrap>
Ptr;
43 typedef std::shared_ptr<const HorizontalWrap>
ConstPtr;
78 void updateWidgets()
override;
86 return std::make_shared<HorizontalWrap>(*
this);
99 #endif // TGUI_HORIZONTAL_WRAP_HPP
HorizontalWrap(const Layout2d &size={"100%", "100%"})
Default constructor.
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37
Abstract class for box layout containers.
Definition: BoxLayout.hpp:41
Class to store the position or size of a widget.
Definition: Layout.hpp:260
std::shared_ptr< const HorizontalWrap > ConstPtr
Shared constant widget pointer.
Definition: HorizontalWrap.hpp:43
static Ptr copy(ConstPtr layout)
Makes a copy of another layout.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Definition: HorizontalWrap.hpp:84
std::shared_ptr< Container > Ptr
Shared widget pointer.
Definition: Container.hpp:51
static HorizontalWrap::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new horizontal wrap widget.
std::shared_ptr< HorizontalWrap > Ptr
Shared widget pointer.
Definition: HorizontalWrap.hpp:42
std::shared_ptr< const Container > ConstPtr
Shared constant widget pointer.
Definition: Container.hpp:52
Container that automatically arranges children in lines, adding a new line when a horizontal line is ...
Definition: HorizontalWrap.hpp:40