25#ifndef TGUI_CLICKABLE_WIDGET_HPP
26#define TGUI_CLICKABLE_WIDGET_HPP
28#include <TGUI/Widget.hpp>
39 class TGUI_API ClickableWidget :
public Widget
43 using Ptr = std::shared_ptr<ClickableWidget>;
44 using ConstPtr = std::shared_ptr<const ClickableWidget>;
55 ClickableWidget(
const char* typeName =
StaticWidgetType,
bool initRenderer =
true);
89 void leftMouseReleased(Vector2f pos)
override;
94 void rightMousePressed(Vector2f pos)
override;
99 void rightMouseReleased(Vector2f pos)
override;
104 void rightMouseButtonNoLongerDown()
override;
147 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:321
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:36
SignalTyped< Vector2f > SignalVector2f
Signal with one "Vector2f" as optional unbound parameter.
Definition Signal.hpp:427
States used for drawing.
Definition RenderStates.hpp:38