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