26#ifndef TGUI_CLICKABLE_WIDGET_HPP
27#define TGUI_CLICKABLE_WIDGET_HPP
30#include <TGUI/Widget.hpp>
34TGUI_MODULE_EXPORT
namespace tgui
43 using Ptr = std::shared_ptr<ClickableWidget>;
44 using ConstPtr = std::shared_ptr<const ClickableWidget>;
46 static constexpr const char StaticWidgetType[] =
"ClickableWidget";
56 ClickableWidget(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
95 void leftMouseReleased(
Vector2f pos)
override;
100 void rightMousePressed(
Vector2f pos)
override;
105 void rightMouseReleased(
Vector2f pos)
override;
110 void rightMouseButtonNoLongerDown()
override;
159 bool m_rightMouseDown =
false;
Base class for render targets.
Definition BackendRenderTarget.hpp:48
Class to store the position or size of a widget.
Definition Layout.hpp:305
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
States used for drawing.
Definition RenderStates.hpp:39