30#include <TGUI/Container.hpp>
31#include <TGUI/Renderers/GroupRenderer.hpp>
35TGUI_MODULE_EXPORT
namespace tgui
47 using Ptr = std::shared_ptr<Group>;
50 static constexpr const char StaticWidgetType[] =
"Group";
60 Group(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
90 TGUI_NODISCARD
const GroupRenderer* getSharedRenderer()
const override;
107 using Widget::setSize;
Base class for render targets.
Definition BackendRenderTarget.hpp:48
Container widget.
Definition Container.hpp:49
Definition GroupRenderer.hpp:37
Group widget.
Definition Group.hpp:44
TGUI_NODISCARD Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
void setSize(const Layout2d &size) override
Changes the size of the group.
TGUI_NODISCARD Vector2f getInnerSize() const override
Returns the space available for widgets inside the container.
TGUI_NODISCARD bool isMouseOnWidget(Vector2f pos) const override
Returns whether the mouse position (which is relative to the parent widget) lies on top of the widget...
void rendererChanged(const String &property) override
Function called when one of the properties of the renderer is changed.
TGUI_NODISCARD Vector2f getChildWidgetsOffset() const override
Returns the distance between the position of the container and a widget that would be drawn inside th...
TGUI_NODISCARD GroupRenderer * getSharedRenderer() override
Returns the renderer, which gives access to functions that determine how the widget is displayed.
void draw(BackendRenderTarget &target, RenderStates states) const override
Draw the child widgets to a render target.
static TGUI_NODISCARD Group::Ptr create(const Layout2d &size={"100%", "100%"})
Creates a new group.
std::shared_ptr< const Group > ConstPtr
Shared constant widget pointer.
Definition Group.hpp:48
std::shared_ptr< Group > Ptr
Shared widget pointer.
Definition Group.hpp:47
TGUI_NODISCARD GroupRenderer * getRenderer() override
Returns the renderer, which gives access to functions that determine how the widget is displayed.
static TGUI_NODISCARD Group::Ptr copy(const Group::ConstPtr &group)
Makes a copy of another group.
Class to store the position or size of a widget.
Definition Layout.hpp:305
Definition Outline.hpp:39
Wrapper class to store strings.
Definition String.hpp:101
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39
States used for drawing.
Definition RenderStates.hpp:39