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;
Class to store the position or size of a widget.
Definition: Layout.hpp:255
Class to store the left, top, width or height of a widget.
Definition: Layout.hpp:121
Namespace that contains all TGUI functions and classes.
Definition: Animation.hpp:34