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;
85 void leftMousePressed(
Vector2f pos)
override;
90 void leftMouseReleased(
Vector2f pos)
override;
95 void rightMousePressed(
Vector2f pos)
override;
100 void rightMouseReleased(
Vector2f pos)
override;
105 void rightMouseButtonNoLongerDown()
override;
115 void draw(sf::RenderTarget& target, sf::RenderStates states)
const override;
138 return std::make_shared<ClickableWidget>(*
this);
145 SignalVector2f onMousePress = {
"MousePressed"};
146 SignalVector2f onMouseRelease = {
"MouseReleased"};
147 SignalVector2f onClick = {
"Clicked"};
149 SignalVector2f onRightMousePress = {
"RightMousePressed"};
150 SignalVector2f onRightMouseRelease = {
"RightMouseReleased"};
151 SignalVector2f onRightClick = {
"RightClicked"};
157 bool m_rightMouseDown =
false;
Class to store the position or size of a widget.
Definition: Layout.hpp:260
Signal to which the user can subscribe to get callbacks from.
Definition: Signal.hpp:231
Definition: Vector2f.hpp:39
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37