30#include <TGUI/Container.hpp>
31#include <TGUI/Renderers/GroupRenderer.hpp>
47 using Ptr = std::shared_ptr<Group>;
50 static constexpr const char StaticWidgetType[] =
"Group";
60 Group(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
107 using Widget::setSize;
Base class for render targets.
Definition: BackendRenderTarget.hpp:48
Container widget.
Definition: Container.hpp:47
Definition: GroupRenderer.hpp:37
Group widget.
Definition: Group.hpp:44
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.
GroupRenderer * getSharedRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
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()
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:48
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:47
Class to store the position or size of a widget.
Definition: Layout.hpp:284
Definition: Outline.hpp:39
Wrapper class to store strings.
Definition: String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
States used for drawing.
Definition: RenderStates.hpp:39