UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SScissorRectBox.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"
6#include "Layout/Visibility.h"
8#include "Widgets/SWidget.h"
9#include "Layout/Children.h"
10#include "Widgets/SPanel.h"
11
13class FPaintArgs;
15
30class SScissorRectBox : public SPanel
31{
32
33public:
35
41 SLATE_DEFAULT_SLOT(FArguments, Content)
43
45
46 SLATE_API void Construct( const FArguments& InArgs );
47
52
54 SLATE_API virtual FVector2D ComputeDesiredSize(float) const override;
55 SLATE_API virtual void OnArrangeChildren( const FGeometry& AllottedGeometry, FArrangedChildren& ArrangedChildren ) const override;
56 SLATE_API virtual FChildren* GetChildren() override;
57 SLATE_API virtual int32 OnPaint( const FPaintArgs& Args, const FGeometry& AllottedGeometry, const FSlateRect& MyCullingRect, FSlateWindowElementList& OutDrawElements, int32 LayerId, const FWidgetStyle& InWidgetStyle, bool bParentEnabled ) const override;
58
59 FScissorRectSlot ChildSlot;
60};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
#define SLATE_DEFAULT_SLOT(DeclarationType, SlotName)
Definition DeclarativeSyntaxSupport.h:444
Definition ArrangedChildren.h:15
Definition ChildrenBase.h:27
Definition PaintArgs.h:23
Definition Children.h:398
Definition SlateRect.h:26
Definition DrawElements.h:220
Definition WidgetStyle.h:15
Definition SPanel.h:30
void Construct()
Definition SPanel.h:65
Definition SScissorRectBox.h:31
SLATE_BEGIN_ARGS(SScissorRectBox)
Definition SScissorRectBox.h:36
SLATE_API void SetContent(const TSharedRef< SWidget > &InContent)
Definition SScissorRectBox.cpp:73
FSingleWidgetChildrenWithSlot FScissorRectSlot
Definition SScissorRectBox.h:34
Definition SWidget.h:165
Definition SharedPointer.h:153
static SLATECORE_API const EVisibility SelfHitTestInvisible
Definition Visibility.h:26
Definition Geometry.h:40