30#include <TGUI/Container.hpp>
31#include <TGUI/Renderers/GroupRenderer.hpp>
47 typedef std::shared_ptr<Group>
Ptr;
58 Group(
const char* typeName =
"Group",
bool initRenderer =
true);
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.
std::shared_ptr< const Group > ConstPtr
Shared constant widget pointer.
Definition: Group.hpp:48
void setSize(const Layout2d &size) override
Changes the size of the group.
std::shared_ptr< Group > Ptr
Shared widget pointer.
Definition: Group.hpp:47
void rendererChanged(const String &property) override
Function called when one of the properties of the renderer is changed.
static Group::Ptr copy(Group::ConstPtr group)
Makes a copy of another group.
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.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
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