26#ifndef TGUI_CUSTOM_WIDGET_FOR_BINDINGS_HPP
27#define TGUI_CUSTOM_WIDGET_FOR_BINDINGS_HPP
31#include <TGUI/Widget.hpp>
44 typedef std::shared_ptr<CustomWidgetForBindings>
Ptr;
45 typedef std::shared_ptr<const CustomWidgetForBindings>
ConstPtr;
182 bool updateTime(
Duration elapsedTime)
override;
194 void leftMousePressed(
Vector2f pos)
override;
199 void leftMouseReleased(
Vector2f pos)
override;
204 void rightMousePressed(
Vector2f pos)
override;
209 void rightMouseReleased(
Vector2f pos)
override;
214 void mouseMoved(
Vector2f pos)
override;
224 void textEntered(
char32_t key)
override;
230 bool mouseWheelScrolled(
float delta,
Vector2f pos)
override;
235 void mouseNoLongerOnWidget()
override;
240 void leftMouseButtonNoLongerDown()
override;
263 return std::make_shared<CustomWidgetForBindings>(*
this);
292 std::function<void(
Vector2f)> implPositionChanged;
293 std::function<void(
Vector2f)> implSizeChanged;
294 std::function<void(
bool)> implVisibleChanged;
295 std::function<void(
bool)> implEnableChanged;
296 std::function<void(
bool)> implFocusChanged;
297 std::function<bool()> implCanGainFocus;
298 std::function<
Vector2f()> implGetFullSize;
299 std::function<
Vector2f()> implGetAbsolutePosition;
300 std::function<
Vector2f()> implGetWidgetOffset;
301 std::function<bool(
Duration)> implUpdateTimeFunction;
302 std::function<bool(
Vector2f)> implMouseOnWidget;
303 std::function<void(
Vector2f)> implLeftMousePressed;
304 std::function<void(
Vector2f)> implLeftMouseReleased;
305 std::function<void(
Vector2f)> implRightMousePressed;
306 std::function<void(
Vector2f)> implRightMouseReleased;
307 std::function<void(
Vector2f)> implMouseMoved;
309 std::function<void(
char32_t)> implTextEntered;
310 std::function<bool(
float,
Vector2f)> implMouseWheelScrolled;
311 std::function<void()> implMouseNoLongerOnWidget;
312 std::function<void()> implLeftMouseButtonNoLongerDown;
313 std::function<void()> implMouseEnteredWidget;
314 std::function<void()> implMouseLeftWidget;
315 std::function<bool(
const String&)> implRendererChanged;
Base class for render targets.
Definition BackendRenderTarget.hpp:48
Wrapper for durations.
Definition Duration.hpp:52
Class to store the position or size of a widget.
Definition Layout.hpp:262
Wrapper class to store strings.
Definition String.hpp:79
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:36
KeyPressed event parameters.
Definition Event.hpp:167
States used for drawing.
Definition RenderStates.hpp:39