26#ifndef TGUI_CLICKABLE_WIDGET_HPP
27#define TGUI_CLICKABLE_WIDGET_HPP
30#include <TGUI/Widget.hpp>
43 typedef std::shared_ptr<ClickableWidget>
Ptr;
44 typedef std::shared_ptr<const ClickableWidget>
ConstPtr;
54 ClickableWidget(
const char* typeName =
"ClickableWidget",
bool initRenderer =
true);
88 void leftMousePressed(
Vector2f pos)
override;
93 void leftMouseReleased(
Vector2f pos)
override;
98 void rightMousePressed(
Vector2f pos)
override;
103 void rightMouseReleased(
Vector2f pos)
override;
108 void rightMouseButtonNoLongerDown()
override;
157 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