25#ifndef TGUI_SUBWIDGET_CONTAINER_HPP
26#define TGUI_SUBWIDGET_CONTAINER_HPP
28#include <TGUI/Widgets/Group.hpp>
29#include <TGUI/CopiedSharedPtr.hpp>
33TGUI_MODULE_EXPORT
namespace tgui
40 class TGUI_API SubwidgetContainer :
public Widget
44 using Ptr = std::shared_ptr<SubwidgetContainer>;
45 using ConstPtr = std::shared_ptr<const SubwidgetContainer>;
54 SubwidgetContainer(
const char* typeName,
bool initRenderer);
102 void leftMouseReleased(Vector2f pos)
override;
107 void rightMousePressed(Vector2f pos)
override;
112 void rightMouseReleased(Vector2f pos)
override;
117 void mouseMoved(Vector2f pos)
override;
127 void textEntered(
char32_t key)
override;
132 bool scrolled(
float delta, Vector2f pos,
bool touch)
override;
137 void mouseNoLongerOnWidget()
override;
142 void leftMouseButtonNoLongerDown()
override;
147 void rightMouseButtonNoLongerDown()
override;
155 TGUI_NODISCARD
Widget::Ptr askToolTip(Vector2f mousePos)
override;
161 bool updateTime(
Duration elapsedTime)
override;
173 void setParent(Container* parent)
override;
188 TGUI_NODISCARD std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
193 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
Base class for render targets.
Definition BackendRenderTarget.hpp:46
Definition CopiedSharedPtr.hpp:42
Wrapper for durations.
Definition Duration.hpp:55
Class to store the position or size of a widget.
Definition Layout.hpp:323
Wrapper class to store strings.
Definition String.hpp:96
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
KeyPressed event parameters.
Definition Event.hpp:168
States used for drawing.
Definition RenderStates.hpp:38