Files
UnrealEngineUWP/Engine/Source/Editor/PropertyEditor/Private/SDetailRowIndent.h
sebastian nordgren b571dc8c45 SDetailExpanderArrow and SDetailRowIndent no longer hold TSharedPtr to their owning rows, which was causing the owning rows to never be GC'd.
[REVIEW] [at]lauren.barnes
#jira UE-108254

#ROBOMERGE-SOURCE: CL 15377566 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15378776 by sebastian nordgren in ue5-main branch]
2021-02-10 15:20:13 -04:00

29 lines
854 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Styling/SlateColor.h"
#include "Types/SlateStructs.h"
#include "Widgets/DeclarativeSyntaxSupport.h"
#include "Widgets/SCompoundWidget.h"
class SDetailTableRowBase;
class SHorizontalBox;
class SDetailRowIndent : public SCompoundWidget
{
public:
SLATE_BEGIN_ARGS(SDetailRowIndent) {}
SLATE_END_ARGS()
void Construct(const FArguments& InArgs, TSharedRef<SDetailTableRowBase> DetailsRow);
private:
int32 OnPaint(const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled) const;
FOptionalSize GetIndentWidth() const;
FSlateColor GetRowBackgroundColor(int32 IndentLevel) const;
private:
TWeakPtr<SDetailTableRowBase> Row;
};