25#ifndef TGUI_CUSTOM_WIDGET_FOR_BINDINGS_HPP
26#define TGUI_CUSTOM_WIDGET_FOR_BINDINGS_HPP
28#ifndef TGUI_REMOVE_DEPRECATED_CODE
32#include <TGUI/Widget.hpp>
36TGUI_MODULE_EXPORT
namespace tgui
47 using Ptr = std::shared_ptr<CustomWidgetForBindings>;
48 using ConstPtr = std::shared_ptr<const CustomWidgetForBindings>;
50 static constexpr const char StaticWidgetType[] =
"CustomWidget";
168 bool updateTime(
Duration elapsedTime)
override;
184 void leftMouseReleased(
Vector2f pos)
override;
189 void rightMousePressed(
Vector2f pos)
override;
194 void rightMouseReleased(
Vector2f pos)
override;
199 void mouseMoved(
Vector2f pos)
override;
209 void textEntered(
char32_t key)
override;
220 void mouseNoLongerOnWidget()
override;
225 void leftMouseButtonNoLongerDown()
override;
268 std::function<void(
Vector2f)> implPositionChanged;
269 std::function<void(
Vector2f)> implSizeChanged;
270 std::function<void(
bool)> implVisibleChanged;
271 std::function<void(
bool)> implEnableChanged;
272 std::function<void(
bool)> implFocusChanged;
273 std::function<bool()> implCanGainFocus;
274 std::function<
Vector2f()> implGetFullSize;
275 std::function<
Vector2f()> implGetWidgetOffset;
276 std::function<bool(
Duration)> implUpdateTimeFunction;
277 std::function<bool(
Vector2f)> implMouseOnWidget;
278 std::function<bool(
Vector2f)> implLeftMousePressed;
279 std::function<void(
Vector2f)> implLeftMouseReleased;
280 std::function<void(
Vector2f)> implRightMousePressed;
281 std::function<void(
Vector2f)> implRightMouseReleased;
282 std::function<void(
Vector2f)> implMouseMoved;
284 std::function<void(
char32_t)> implTextEntered;
285 std::function<bool(
float,
Vector2f,
bool)> implScrolled;
286 std::function<void()> implMouseNoLongerOnWidget;
287 std::function<void()> implLeftMouseButtonNoLongerDown;
288 std::function<void()> implMouseEnteredWidget;
289 std::function<void()> implMouseLeftWidget;
290 std::function<bool(
const String&)> implRendererChanged;
Base class for render targets.
Definition BackendRenderTarget.hpp:46
Wrapper for durations.
Definition Duration.hpp:55
Class to store the position or size of a widget.
Definition Layout.hpp:323
Wrapper class to store strings.
Definition String.hpp:96
Namespace that contains all TGUI functions and classes.
Definition AbsoluteOrRelativeValue.hpp:38
KeyPressed event parameters.
Definition Event.hpp:168
States used for drawing.
Definition RenderStates.hpp:38