25#ifndef TGUI_HORIZONTAL_LAYOUT_HPP
26#define TGUI_HORIZONTAL_LAYOUT_HPP
28#include <TGUI/Widgets/BoxLayoutRatios.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
42 using Ptr = std::shared_ptr<HorizontalLayout>;
43 using ConstPtr = std::shared_ptr<const HorizontalLayout>;
45 static constexpr const char StaticWidgetType[] =
"HorizontalLayout";
54 HorizontalLayout(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
80 void updateWidgets()
override;
Abstract class for box layout containers.
Definition BoxLayoutRatios.hpp:39
Container that automatically resizes children to fit the entire available space between children.
Definition HorizontalLayout.hpp:40
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
std::shared_ptr< HorizontalLayout > Ptr
Shared widget pointer.
Definition HorizontalLayout.hpp:42
static HorizontalLayout::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new horizontal layout widget.
std::shared_ptr< const HorizontalLayout > ConstPtr
Shared constant widget pointer.
Definition HorizontalLayout.hpp:43
static HorizontalLayout::Ptr copy(const HorizontalLayout::ConstPtr &layout)
Makes a copy of another layout.
Class to store the position or size of a widget.
Definition Layout.hpp:323
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38