26#ifndef TGUI_HORIZONTAL_LAYOUT_HPP
27#define TGUI_HORIZONTAL_LAYOUT_HPP
29#include <TGUI/Widgets/BoxLayoutRatios.hpp>
43 typedef std::shared_ptr<HorizontalLayout>
Ptr;
44 typedef std::shared_ptr<const HorizontalLayout>
ConstPtr;
54 HorizontalLayout(
const char* typeName =
"HorizontalLayout",
bool initRenderer =
true);
83 void updateWidgets()
override;
91 return std::make_shared<HorizontalLayout>(*
this);
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
static HorizontalLayout::Ptr copy(ConstPtr layout)
Makes a copy of another layout.
std::shared_ptr< HorizontalLayout > Ptr
Shared widget pointer.
Definition HorizontalLayout.hpp:43
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Definition HorizontalLayout.hpp:89
std::shared_ptr< const HorizontalLayout > ConstPtr
Shared constant widget pointer.
Definition HorizontalLayout.hpp:44
static 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:262
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36