UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SUserWidget.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"
8
59{
60 public:
75
76 protected:
77 void Construct( const FArguments& InArgs )
78 {
79 this->ChildSlot
80 .HAlign( InArgs._HAlign )
81 .VAlign( InArgs._VAlign )
82 [
83 InArgs._Content.Widget
84 ];
85 }
86
87 protected:
89 void* operator new ( const size_t InSize )
90 {
91 return FMemory::Malloc(InSize);
92 }
93
94 public:
95 // This exists to silence V1062 and provide implementation balance with the new above
96 void operator delete (void* InMem)
97 {
99 }
100};
#define FORCENOINLINE
Definition AndroidPlatform.h:142
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define SLATE_DEFAULT_SLOT(DeclarationType, SlotName)
Definition DeclarativeSyntaxSupport.h:444
#define SLATE_ARGUMENT(ArgType, ArgName)
Definition DeclarativeSyntaxSupport.h:208
EHorizontalAlignment
Definition SlateEnums.h:174
EVerticalAlignment
Definition SlateEnums.h:194
Definition SCompoundWidget.h:22
FCompoundWidgetOneChildSlot ChildSlot
Definition SCompoundWidget.h:113
Definition SUserWidget.h:59
void Construct(const FArguments &InArgs)
Definition SUserWidget.h:77
MixedIntoType & HAlign(EHorizontalAlignment InHAlignment)
Definition BasicLayoutWidgetSlot.h:149
static FORCENOINLINE CORE_API void Free(void *Original)
Definition UnrealMemory.cpp:685
Definition SUserWidget.h:62
FArguments WidgetArgsType
Definition SUserWidget.h:63
FORCENOINLINE FArguments()
Definition SUserWidget.h:64
Definition DeclarativeSyntaxSupport.h:681