26#ifndef TGUI_CLICKABLE_WIDGET_HPP
27#define TGUI_CLICKABLE_WIDGET_HPP
30#include <TGUI/Widget.hpp>
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);
90 void leftMousePressed(
Vector2f pos)
override;
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:284
Signal to which the user can subscribe to get callbacks from.
Definition: Signal.hpp:58
Wrapper class to store strings.
Definition: String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:36
States used for drawing.
Definition: RenderStates.hpp:39