25#ifndef TGUI_TOGGLE_BUTTON_HPP
26#define TGUI_TOGGLE_BUTTON_HPP
28#include <TGUI/Widgets/ButtonBase.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
41 using Ptr = std::shared_ptr<ToggleButton>;
42 using ConstPtr = std::shared_ptr<const ToggleButton>;
44 static constexpr const char StaticWidgetType[] =
"ToggleButton";
53 ToggleButton(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
91 void leftMouseReleased(
Vector2f pos)
override;
126 TGUI_NODISCARD std::unique_ptr<DataIO::Node>
save(SavingRenderersMap& renderers)
const override;
131 void load(
const std::unique_ptr<DataIO::Node>& node,
const LoadingRenderersMap& renderers)
override;
Signal to which the user can subscribe to get callbacks from.
Definition Signal.hpp:61
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