UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWidgetProxy Class Reference

#include <WidgetProxy.h>

Classes

struct  FUpdateResult
 

Public Member Functions

 FWidgetProxy (SWidget &InWidget)
 
FUpdateResult Update (const FPaintArgs &PaintArgs, FSlateWindowElementList &OutDrawElements)
 
void ProcessLayoutInvalidation (FSlateInvalidationWidgetPostHeap &UpdateList, FSlateInvalidationWidgetList &FastPathWidgetList, FSlateInvalidationRoot &Root)
 
bool ProcessPostInvalidation (FSlateInvalidationWidgetPostHeap &UpdateList, FSlateInvalidationWidgetList &FastPathWidgetList, FSlateInvalidationRoot &Root)
 
void MarkProxyUpdatedThisFrame (FSlateInvalidationWidgetPostHeap &UpdateList)
 
SWidgetGetWidget () const
 
FORCENOINLINE TSharedPtr< SWidgetGetWidgetAsShared () const
 
void ResetWidget ()
 
bool IsSameWidget (const SWidget *InWidget) const
 

Public Attributes

FSlateInvalidationWidgetIndex Index
 
FSlateInvalidationWidgetIndex ParentIndex
 
FSlateInvalidationWidgetIndex LeafMostChildIndex
 
EInvalidateWidgetReason CurrentInvalidateReason
 
FSlateInvalidationWidgetVisibility Visibility
 
union { 
 
   struct { 
 
      uint8   bContainedByWidgetPreHeap: 1 
 
      uint8   bContainedByWidgetPostHeap: 1 
 
      uint8   bContainedByWidgetPrepassList: 1 
 
      uint8   bIsInvalidationRoot: 1 
 
      uint8   bIsVolatilePrepass: 1 
 
   }  
 
   uint8   PrivateFlags 
 
};  
 

Constructor & Destructor Documentation

◆ FWidgetProxy()

FWidgetProxy::FWidgetProxy ( SWidget InWidget)

Member Function Documentation

◆ GetWidget()

SWidget * FWidgetProxy::GetWidget ( ) const
inline

◆ GetWidgetAsShared()

TSharedPtr< SWidget > FWidgetProxy::GetWidgetAsShared ( ) const

◆ IsSameWidget()

bool FWidgetProxy::IsSameWidget ( const SWidget InWidget) const
inline

◆ MarkProxyUpdatedThisFrame()

void FWidgetProxy::MarkProxyUpdatedThisFrame ( FSlateInvalidationWidgetPostHeap UpdateList)

◆ ProcessLayoutInvalidation()

void FWidgetProxy::ProcessLayoutInvalidation ( FSlateInvalidationWidgetPostHeap UpdateList,
FSlateInvalidationWidgetList FastPathWidgetList,
FSlateInvalidationRoot Root 
)

◆ ProcessPostInvalidation()

bool FWidgetProxy::ProcessPostInvalidation ( FSlateInvalidationWidgetPostHeap UpdateList,
FSlateInvalidationWidgetList FastPathWidgetList,
FSlateInvalidationRoot Root 
)

◆ ResetWidget()

void FWidgetProxy::ResetWidget ( )
inline

◆ Update()

FWidgetProxy::FUpdateResult FWidgetProxy::Update ( const FPaintArgs PaintArgs,
FSlateWindowElementList OutDrawElements 
)

Similar to SWidget::Paint but use the saved PersistentState. Only paint/tick if needed.

Returns
the new and previous LayerId is the widget was painted.

Member Data Documentation

◆ [union]

union { ... } FWidgetProxy

◆ bContainedByWidgetPostHeap

uint8 FWidgetProxy::bContainedByWidgetPostHeap

Is the widget in the post update list.

◆ bContainedByWidgetPreHeap

uint8 FWidgetProxy::bContainedByWidgetPreHeap

Is the widget in the pre update list.

◆ bContainedByWidgetPrepassList

uint8 FWidgetProxy::bContainedByWidgetPrepassList

Is the widget in a pending prepass list.

◆ bIsInvalidationRoot

uint8 FWidgetProxy::bIsInvalidationRoot

Is the widget an Invalidation Root. Cached value of SWidget::Advanced_IsInvalidationRoot

◆ bIsVolatilePrepass

uint8 FWidgetProxy::bIsVolatilePrepass

Is the widget has volatile prepass flag.

◆ CurrentInvalidateReason

EInvalidateWidgetReason FWidgetProxy::CurrentInvalidateReason

◆ Index

FSlateInvalidationWidgetIndex FWidgetProxy::Index

◆ LeafMostChildIndex

FSlateInvalidationWidgetIndex FWidgetProxy::LeafMostChildIndex

◆ ParentIndex

FSlateInvalidationWidgetIndex FWidgetProxy::ParentIndex

◆ PrivateFlags

uint8 FWidgetProxy::PrivateFlags

◆ Visibility

FSlateInvalidationWidgetVisibility FWidgetProxy::Visibility

The documentation for this class was generated from the following files: