UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WidgetBaseBehavior.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/Interface.h"
7#include "Layout/Geometry.h"
8#include "Input/Events.h"
10
11#include "WidgetBaseBehavior.generated.h"
12
18UINTERFACE(MinimalAPI, meta = (CannotImplementInterfaceInBlueprint))
23
25{
27
28public:
29 // ~Begin SWidget "Proxy" Interface
40 INTERACTIVETOOLSFRAMEWORK_API virtual int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const;
41 // ~End SWidget "Proxy" Interface
42};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition PaintArgs.h:23
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition WidgetBaseBehavior.h:25
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnMouseButtonDown(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
Definition WidgetBaseBehavior.cpp:22
virtual INTERACTIVETOOLSFRAMEWORK_API int32 OnPaint(const FPaintArgs &Args, const FGeometry &AllottedGeometry, const FSlateRect &MyCullingRect, FSlateWindowElementList &OutDrawElements, int32 LayerId, const FWidgetStyle &InWidgetStyle, bool bParentEnabled) const
Definition WidgetBaseBehavior.cpp:56
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnKeyDown(const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
Definition WidgetBaseBehavior.cpp:12
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnMouseWheel(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
Definition WidgetBaseBehavior.cpp:37
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnDragDetected(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
Definition WidgetBaseBehavior.cpp:47
virtual INTERACTIVETOOLSFRAMEWORK_API void OnMouseCaptureLost(const FCaptureLostEvent &CaptureLostEvent)
Definition WidgetBaseBehavior.cpp:52
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnKeyUp(const FGeometry &MyGeometry, const FKeyEvent &InKeyEvent)
Definition WidgetBaseBehavior.cpp:17
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnMouseButtonUp(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
Definition WidgetBaseBehavior.cpp:27
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnMouseMove(const FGeometry &MyGeometry, const FPointerEvent &MouseEvent)
Definition WidgetBaseBehavior.cpp:32
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnKeyChar(const FGeometry &MyGeometry, const FCharacterEvent &InCharacterEvent)
Definition WidgetBaseBehavior.cpp:7
virtual INTERACTIVETOOLSFRAMEWORK_API bool OnMouseButtonDoubleClick(const FGeometry &InMyGeometry, const FPointerEvent &InMouseEvent)
Definition WidgetBaseBehavior.cpp:42
Definition Interface.h:19
Definition WidgetBaseBehavior.h:20
Definition Events.h:106
Definition Events.h:606
Definition Geometry.h:40
Definition Events.h:431
Definition Events.h:695