26#ifndef TGUI_HORIZONTAL_LAYOUT_HPP
27#define TGUI_HORIZONTAL_LAYOUT_HPP
29#include <TGUI/Widgets/BoxLayoutRatios.hpp>
33TGUI_MODULE_EXPORT
namespace tgui
43 using Ptr = std::shared_ptr<HorizontalLayout>;
44 using ConstPtr = std::shared_ptr<const HorizontalLayout>;
46 static constexpr const char StaticWidgetType[] =
"HorizontalLayout";
56 HorizontalLayout(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
85 void updateWidgets()
override;
Abstract class for box layout containers.
Definition BoxLayoutRatios.hpp:40
Container that automatically resizes children to fit the entire available space between children.
Definition HorizontalLayout.hpp:41
std::shared_ptr< HorizontalLayout > Ptr
Shared widget pointer.
Definition HorizontalLayout.hpp:43
TGUI_NODISCARD Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
static TGUI_NODISCARD HorizontalLayout::Ptr copy(const HorizontalLayout::ConstPtr &layout)
Makes a copy of another layout.
std::shared_ptr< const HorizontalLayout > ConstPtr
Shared constant widget pointer.
Definition HorizontalLayout.hpp:44
static TGUI_NODISCARD HorizontalLayout::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new horizontal layout widget.
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