Files
UnrealEngine/Engine/Source/Editor/PropertyEditor/Private/SDetailRowIndent.h
2025-05-18 13:04:45 +08: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;
};