26 #ifndef TGUI_CLICKABLE_WIDGET_HPP 27 #define TGUI_CLICKABLE_WIDGET_HPP 30 #include <TGUI/Widget.hpp> 59 typedef std::shared_ptr<ClickableWidget>
Ptr;
60 typedef std::shared_ptr<const ClickableWidget>
ConstPtr;
109 return std::make_shared<ClickableWidget>(*this);
116 virtual bool mouseOnWidget(
float x,
float y)
const override;
121 virtual void leftMousePressed(
float x,
float y)
override;
126 virtual void leftMouseReleased(
float x,
float y)
override;
136 virtual void draw(sf::RenderTarget& target, sf::RenderStates states)
const override;
144 #endif // TGUI_CLICKABLE_WIDGET_HPP Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:33
Class to store the position or size of a widget.
Definition: Layout.hpp:254
Class to store the left, top, width or height of a widget.
Definition: Layout.hpp:120