25#ifndef TGUI_CLICKABLE_WIDGET_HPP
26#define TGUI_CLICKABLE_WIDGET_HPP
28#include <TGUI/Widget.hpp>
39 class TGUI_API ClickableWidget :
public Widget
42 using Ptr = std::shared_ptr<ClickableWidget>;
43 using ConstPtr = std::shared_ptr<const ClickableWidget>;
54 explicit ClickableWidget(
const char* typeName =
StaticWidgetType,
bool initRenderer =
true);
88 void leftMouseReleased(Vector2f pos)
override;
93 void rightMousePressed(Vector2f pos)
override;
98 void rightMouseReleased(Vector2f pos)
override;
103 void rightMouseButtonNoLongerDown()
override;
142 "RightMousePressed"};
144 "RightMouseReleased"};
150 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:320
Signal to which the user can subscribe to get callbacks from.
Definition Signal.hpp:59
Wrapper class to store strings.
Definition String.hpp:94
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:37
SignalTyped< Vector2f > SignalVector2f
Signal with one "Vector2f" as optional unbound parameter.
Definition Signal.hpp:414
States used for drawing.
Definition RenderStates.hpp:38