26#ifndef TGUI_HORIZONTAL_LAYOUT_HPP
27#define TGUI_HORIZONTAL_LAYOUT_HPP
29#include <TGUI/Widgets/BoxLayoutRatios.hpp>
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
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:43
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:44
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:284
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36