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;
289 std::function<void(
Vector2f)> implPositionChanged;
290 std::function<void(
Vector2f)> implSizeChanged;
291 std::function<void(
bool)> implVisibleChanged;
292 std::function<void(
bool)> implEnableChanged;
293 std::function<void(
bool)> implFocusChanged;
294 std::function<bool()> implCanGainFocus;
295 std::function<
Vector2f()> implGetFullSize;
296 std::function<
Vector2f()> implGetAbsolutePosition;
297 std::function<
Vector2f()> implGetWidgetOffset;
298 std::function<bool(
Duration)> implUpdateTimeFunction;
299 std::function<bool(
Vector2f)> implMouseOnWidget;
300 std::function<void(
Vector2f)> implLeftMousePressed;
301 std::function<void(
Vector2f)> implLeftMouseReleased;
302 std::function<void(
Vector2f)> implRightMousePressed;
303 std::function<void(
Vector2f)> implRightMouseReleased;
304 std::function<void(
Vector2f)> implMouseMoved;
306 std::function<void(
char32_t)> implTextEntered;
307 std::function<bool(
float,
Vector2f)> implMouseWheelScrolled;
308 std::function<void()> implMouseNoLongerOnWidget;
309 std::function<void()> implLeftMouseButtonNoLongerDown;
310 std::function<void()> implMouseEnteredWidget;
311 std::function<void()> implMouseLeftWidget;
312 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:284
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