UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SListPanel.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 "Misc/Attribute.h"
7#include "Layout/Visibility.h"
8#include "SlotBase.h"
9#include "Layout/Children.h"
11#include "Widgets/SPanel.h"
13
15
21class SListPanel : public SPanel
22{
24
25public:
27 class FSlot : public TSlotBase<FSlot>
28 {
29 public:
31 : TSlotBase<FSlot>()
32 {}
33 };
34
36 static SLATE_API FSlot::FSlotArguments Slot();
37
41
52
53 SLATE_SLOT_ARGUMENT(FSlot, Slots)
59
61
63
65
71 SLATE_API void Construct( const FArguments& InArgs );
72
73public:
74
75 // SWidget interface
80 SLATE_API virtual void Tick( const FGeometry& AllottedGeometry, const double InCurrentTime, const float InDeltaTime ) override;
81 // End of SWidget interface
82
85
88
90 SLATE_API void ClearItems();
91
94
96 SLATE_API FTableViewDimensions GetItemSize(const FGeometry& AllottedGeometry) const;
97
100
102 SLATE_API float GetItemPadding(const FGeometry& AllottedGeometry) const;
103
105 SLATE_API float GetItemPadding(const FGeometry& AllottedGeometry, const EListItemAlignment ListItemAlignment) const;
106
108 SLATE_API float GetLinePadding(const FGeometry& AllottedGeometry, const int32 LineStartIndex) const;
109
111 SLATE_API void SetRefreshPending( bool IsPendingRefresh );
112
114 SLATE_API bool IsRefreshPending() const;
115
117 SLATE_API void SetItemHeight(TAttribute<float> Height);
118
120 SLATE_API void SetItemWidth(TAttribute<float> Width);
121
123
125 SLATE_API bool ShouldArrangeAsTiles() const;
126
130
136
138 float OverscrollAmount = 0.f;
139
142
148
151
152private:
154 TSlateAttribute<EListItemAlignment> ItemAlignmentAttribute;
155
157 TSlateAttribute<float> ItemWidthAttribute;
158
160 TSlateAttribute<float> ItemHeightAttribute;
161
163 TSlateAttribute<int32> NumDesiredItemsAttribute;
164};
@ INDEX_NONE
Definition CoreMiscDefines.h:150
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_SLOT_ARGUMENT(SlotType, SlotName)
Definition DeclarativeSyntaxSupport.h:348
#define SLATE_ATTRIBUTE(AttrType, AttrName)
Definition DeclarativeSyntaxSupport.h:192
#define SLATE_END_ARGS()
Definition DeclarativeSyntaxSupport.h:116
#define SLATE_ARGUMENT(ArgType, ArgName)
Definition DeclarativeSyntaxSupport.h:208
EListItemAlignment
Definition STableViewBase.h:34
#define SLATE_DECLARE_WIDGET_API(WidgetType, ParentType, ModuleApiDefine)
Definition SlateControlledConstruction.h:22
EOrientation
Definition SlateEnums.h:261
Definition ArrangedChildren.h:15
Definition ChildrenBase.h:27
Definition SListPanel.h:28
FSlot()
Definition SListPanel.h:30
Definition SListPanel.h:22
virtual SLATE_API FVector2D ComputeDesiredSize(float) const override
Definition SListPanel.cpp:171
SLATE_API bool IsRefreshPending() const
Definition SListPanel.cpp:321
SLATE_API void SetFirstLineScrollOffset(float InFirstLineScrollOffset)
Definition SListPanel.cpp:221
static SLATE_API FSlot::FSlotArguments Slot()
Definition SListPanel.cpp:40
EOrientation Orientation
Definition SListPanel.h:150
bool bIsRefreshPending
Definition SListPanel.h:147
SLATE_API void SetRefreshPending(bool IsPendingRefresh)
Definition SListPanel.cpp:316
TPanelChildren< FSlot > Children
Definition SListPanel.h:129
SLATE_API void SetOverscrollAmount(float InOverscrollAmount)
Definition SListPanel.cpp:226
virtual SLATE_API FChildren * GetAllChildren() override
Definition SListPanel.cpp:200
SLATE_API void SetItemWidth(TAttribute< float > Width)
Definition SListPanel.cpp:337
float FirstLineScrollOffset
Definition SListPanel.h:135
virtual SLATE_API void OnArrangeChildren(const FGeometry &AllottedGeometry, FArrangedChildren &ArrangedChildren) const override
Definition SListPanel.cpp:50
SLATE_API FTableViewDimensions GetDesiredItemDimensions() const
Definition SListPanel.cpp:236
SLATE_API FTableViewDimensions GetItemSize(const FGeometry &AllottedGeometry) const
Definition SListPanel.cpp:266
virtual SLATE_API FChildren * GetChildren() override
Definition SListPanel.cpp:205
SLATE_API void SetItemHeight(TAttribute< float > Height)
Definition SListPanel.cpp:332
SLATE_API bool ShouldArrangeAsTiles() const
Definition SListPanel.cpp:326
SLATE_API float GetItemPadding(const FGeometry &AllottedGeometry) const
Definition SListPanel.cpp:241
float OverscrollAmount
Definition SListPanel.h:138
int32 PreferredNumLines
Definition SListPanel.h:141
SLATE_BEGIN_ARGS(SListPanel)
Definition SListPanel.h:42
SLATE_API void ClearItems()
Definition SListPanel.cpp:231
SLATE_API float GetLinePadding(const FGeometry &AllottedGeometry, const int32 LineStartIndex) const
Definition SListPanel.cpp:299
SLATE_API FScopedWidgetSlotArguments AddSlot(int32 InsertAtIndex=INDEX_NONE)
Definition SListPanel.cpp:45
Definition SPanel.h:30
void Construct()
Definition SPanel.h:65
Definition Attribute.h:17
Definition Children.h:461
Definition SlotBase.h:122
@ false
Definition radaudio_common.h:23
static SLATECORE_API const EVisibility SelfHitTestInvisible
Definition Visibility.h:26
Definition Geometry.h:40
Definition STableViewBase.h:80
Definition SWidget.h:189