30#include <TGUI/Container.hpp>
31#include <TGUI/Renderers/GroupRenderer.hpp>
47 typedef std::shared_ptr<Group>
Ptr;
137 void leftMousePressed(
Vector2f pos)
override;
147 void draw(sf::RenderTarget& target, sf::RenderStates states)
const override;
167 return std::make_shared<Group>(*
this);
Container widget.
Definition: Container.hpp:48
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
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.
void draw(sf::RenderTarget &target, sf::RenderStates states) const override
Draw the child widgets to a render target.
GroupRenderer * getSharedRenderer()
Returns the renderer, which gives access to functions that determine how the widget is displayed.
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...
Group(const Layout2d &size={"100%", "100%"})
Default constructor.
Widget::Ptr clone() const override
Makes a copy of the widget if you don't know its exact type.
Definition: Group.hpp:165
bool mouseOnWidget(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 std::string &property) override
Function called when one of the properties of the renderer is changed.
Class to store the position or size of a widget.
Definition: Layout.hpp:260
Definition: Outline.hpp:39
Definition: Vector2f.hpp:39
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37