25#ifndef TGUI_CLICKABLE_WIDGET_HPP
26#define TGUI_CLICKABLE_WIDGET_HPP
28#include <TGUI/Widget.hpp>
32TGUI_MODULE_EXPORT
namespace tgui
41 using Ptr = std::shared_ptr<ClickableWidget>;
42 using ConstPtr = std::shared_ptr<const ClickableWidget>;
44 static constexpr const char StaticWidgetType[] =
"ClickableWidget";
53 ClickableWidget(
const char* typeName = StaticWidgetType,
bool initRenderer =
true);
87 void leftMouseReleased(
Vector2f pos)
override;
92 void rightMousePressed(
Vector2f pos)
override;
97 void rightMouseReleased(
Vector2f pos)
override;
102 void rightMouseButtonNoLongerDown()
override;
145 bool m_rightMouseDown =
false;
Base class for render targets.
Definition BackendRenderTarget.hpp:46
Class to store the position or size of a widget.
Definition Layout.hpp:323
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
States used for drawing.
Definition RenderStates.hpp:38