26#ifndef TGUI_BUTTON_HPP
27#define TGUI_BUTTON_HPP
29#include <TGUI/Widgets/ButtonBase.hpp>
33TGUI_MODULE_EXPORT
namespace tgui
42 using Ptr = std::shared_ptr<Button>;
43 using ConstPtr = std::shared_ptr<const Button>;
45 static constexpr const char StaticWidgetType[] =
"Button";
55 Button(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
83 bool leftMousePressed(
Vector2f pos)
override;
88 void leftMouseReleased(
Vector2f pos)
override;
93 void leftMouseButtonNoLongerDown()
override;
Signal to which the user can subscribe to get callbacks from.
Definition Signal.hpp:62
Wrapper class to store strings.
Definition String.hpp:101
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:39
KeyPressed event parameters.
Definition Event.hpp:169