26#ifndef TGUI_BOX_LAYOUT_HPP 
   27#define TGUI_BOX_LAYOUT_HPP 
   29#include <TGUI/Widgets/Group.hpp> 
   30#include <TGUI/Renderers/BoxLayoutRenderer.hpp> 
   44        typedef std::shared_ptr<BoxLayout> 
Ptr; 
 
   45        typedef std::shared_ptr<const BoxLayout> 
ConstPtr; 
 
   87        void add(
const Widget::Ptr& widget, 
const sf::String& widgetName = 
"") 
override;
 
  100        virtual void insert(std::size_t index, 
const Widget::Ptr& widget, 
const sf::String& widgetName = 
"");
 
  152        virtual void updateWidgets() = 0;
 
  158        float m_spaceBetweenWidgetsCached = 0;
 
Definition: BoxLayoutRenderer.hpp:37
 
Abstract class for box layout containers.
Definition: BoxLayout.hpp:41
 
std::shared_ptr< BoxLayout > Ptr
Shared widget pointer.
Definition: BoxLayout.hpp:44
 
void add(const Widget::Ptr &widget, const sf::String &widgetName="") override
Adds a widget at the end of the layout.
 
void rendererChanged(const std::string &property) override
Function called when one of the properties of the renderer is changed.
 
virtual void insert(std::size_t index, const Widget::Ptr &widget, const sf::String &widgetName="")
Inserts a widget to the layout.
 
bool remove(const Widget::Ptr &widget) override
Removes a single widget that was added to the container.
 
Widget::Ptr get(std::size_t index) const
Returns the widget at the given index in the layout.
 
BoxLayoutRenderer * getSharedRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
 
virtual bool remove(std::size_t index)
Removes a single widget that was added to the container.
 
BoxLayoutRenderer * getRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
 
void setSize(const Layout2d &size) override
Changes the size of the group.
 
std::shared_ptr< const BoxLayout > ConstPtr
Shared constant widget pointer.
Definition: BoxLayout.hpp:45
 
Widget::Ptr get(const sf::String &widgetName) const
Returns a pointer to a widget that was added earlier.
 
Group widget.
Definition: Group.hpp:44
 
Class to store the position or size of a widget.
Definition: Layout.hpp:260
 
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37