UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateInvalidationWidgetIndex.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "CoreMinimal.h"
7#include "HAL/Platform.h"
8
9class SWidget;
10
13{
16
17public:
19 bool operator== (FSlateInvalidationWidgetIndex Other) const { return ArrayIndex == Other.ArrayIndex && ElementIndex == Other.ElementIndex; }
20 bool operator!= (FSlateInvalidationWidgetIndex Other) const { return ArrayIndex != Other.ArrayIndex || ElementIndex != Other.ElementIndex; }
21 FString ToString() const { return FString::Printf(TEXT("{%d, %d}"), ArrayIndex, ElementIndex); }
22
23private:
24 using IndexType = uint16;
25
26 FSlateInvalidationWidgetIndex(IndexType InArray, IndexType InElement) : ArrayIndex(InArray), ElementIndex(InElement) {}
27
29 IndexType ArrayIndex;
31 IndexType ElementIndex;
32};
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint16_t uint16
Definition binka_ue_file_header.h:7
Definition SlateInvalidationWidgetList.h:20
Definition SWidget.h:165
Definition SlateInvalidationWidgetIndex.h:13
bool operator!=(FSlateInvalidationWidgetIndex Other) const
Definition SlateInvalidationWidgetIndex.h:20
bool operator==(FSlateInvalidationWidgetIndex Other) const
Definition SlateInvalidationWidgetIndex.h:19
FString ToString() const
Definition SlateInvalidationWidgetIndex.h:21
static const FSlateInvalidationWidgetIndex Invalid
Definition SlateInvalidationWidgetIndex.h:7
Definition SlateInvalidationWidgetSortOrder.h:17