Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UScrollBox
- UCommonHierarchicalScrollBox
- UEditorUtilityScrollBox
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/ScrollBox.h |
Include | #include "Components/ScrollBox.h" |
Syntax
class UScrollBox : public UPanelWidget
Remarks
An arbitrary scrollable collection of widgets. Great for presenting 10-100 widgets in a list. Doesn't support virtualization.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
float | DesiredScrollOffset | The desired scroll offset for the underlying scrollbox. |
![]() |
TSharedPtr< class SScrollBox > | MyScrollBox | |
![]() |
FOnUserScrolledEvent | OnUserScrolled | Called when the scroll has changed |
![]() |
FTSTicker::FDelegateHandle | TickHandle |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UScrollBox
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Instantly stops any inertial scrolling that is currently in progress | |
![]() ![]() |
EConsumeMouseWheel | ||
![]() ![]() |
EDescendantScrollDestination | ||
![]() ![]() |
float | ||
![]() ![]() |
EOrientation | ||
![]() ![]() |
FMargin | ||
![]() ![]() |
FVector2D | ||
![]() ![]() |
ESlateVisibility | ||
![]() ![]() |
float | Gets the scroll offset of the scrollbox in Slate Units. | |
![]() ![]() |
float | Gets the scroll offset of the bottom of the ScrollBox in Slate Units. | |
![]() ![]() |
EScrollWhenFocusChanges | ||
![]() ![]() |
float | Gets the fraction currently visible in the scrollbox | |
![]() ![]() |
float | ||
![]() ![]() |
float | ||
![]() ![]() |
const FScrollBarStyle & | ||
![]() ![]() |
const FScrollBoxStyle & | ||
![]() |
void | InitBackPadScrolling
(
bool InBackPadScrolling |
Initialize IsFocusable in the constructor before the SWidget is constructed. |
![]() |
void | InitFrontPadScrolling
(
bool InFrontPadScrolling |
Initialize IsFocusable in the constructor before the SWidget is constructed. |
![]() |
void | InitNavigationScrollPadding
(
float InNavigationScrollPadding |
Initialize IsFocusable in the constructor before the SWidget is constructed. |
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() ![]() |
bool | ||
![]() |
void | ScrollToEnd () |
Scrolls the ScrollBox to the bottom instantly during the next layout pass. |
![]() |
void | Scrolls the ScrollBox to the top instantly | |
![]() |
void | ScrollWidgetIntoView
(
UWidget* WidgetToFind, |
Scrolls the ScrollBox to the widget during the next layout pass. |
![]() |
void | SetAllowOverscroll
(
bool NewAllowOverscroll |
|
![]() |
void | SetAllowRightClickDragScrolling
(
bool bShouldAllowRightClickDragScrolling |
|
![]() |
void | SetAlwaysShowScrollbar
(
bool NewAlwaysShowScrollbar |
|
![]() |
void | SetAlwaysShowScrollbarTrack
(
bool NewAlwaysShowScrollbarTrack |
|
![]() |
void | SetAnimateWheelScrolling
(
bool bShouldAnimateWheelScrolling |
|
![]() |
void | SetConsumeMouseWheel
(
EConsumeMouseWheel NewConsumeMouseWheel |
|
![]() |
void | SetNavigationDestination
(
const EDescendantScrollDestination NewNavigationDestination |
|
![]() |
void | SetOrientation
(
EOrientation NewOrientation |
|
![]() |
void | SetScrollbarPadding
(
const FMargin& NewScrollbarPadding |
|
![]() |
void | SetScrollbarThickness
(
const FVector2D& NewScrollbarThickness |
|
![]() |
void | SetScrollBarVisibility
(
ESlateVisibility NewScrollBarVisibility |
|
![]() |
void | SetScrollOffset
(
float NewScrollOffset |
Updates the scroll offset of the scrollbox. |
![]() |
void | SetScrollWhenFocusChanges
(
EScrollWhenFocusChanges NewScrollWhenFocusChanges |
|
![]() |
void | SetWheelScrollMultiplier
(
float NewWheelScrollMultiplier |
|
![]() |
void | SetWidgetBarStyle
(
const FScrollBarStyle& NewWidgetBarStyle |
|
![]() |
void | SetWidgetStyle
(
const FScrollBoxStyle& NewWidgetStyle |
|
![]() |
void | SlateHandleUserScrolled
(
float CurrentOffset |
Overridden from UPanelWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
UClass * | GetSlotClass () |
UPanelWidget. |
![]() ![]() |
void | OnSlotAdded
(
UPanelSlot* Slot |
|
![]() ![]() |
void | OnSlotRemoved
(
UPanelSlot* Slot |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FText | Gets the palette category of the widget | |
![]() ![]() |
void | OnDescendantDeselectedByDesigner
(
UWidget* DescendantWidget |
|
![]() ![]() |
void | OnDescendantSelectedByDesigner
(
UWidget* DescendantWidget |
|
![]() ![]() |
TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | |
![]() ![]() |
void | Applies all properties to the native widget if possible. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | AllowOverscroll | Direct access to AllowOverscroll is deprecated. Please use the getter or setter. |
![]() |
bool | AlwaysShowScrollbar | Direct access to AlwaysShowScrollbar is deprecated. Please use the getter or setter. |
![]() |
bool | AlwaysShowScrollbarTrack | Direct access to AlwaysShowScrollbarTrack is deprecated. Please use the getter or setter. |
![]() |
bool | BackPadScrolling | Direct access to BackPadScrolling is deprecated. Please use the getter. Note that BackPadScrolling is only set at construction and is not modifiable at runtime. |
![]() |
bool | bAllowRightClickDragScrolling | Direct access to bAllowRightClickDragScrolling is deprecated. Please use the getter or setter. |
![]() |
bool | bAnimateWheelScrolling | Direct access to bAnimateWheelScrolling is deprecated. Please use the getter or setter. |
![]() |
EConsumeMouseWheel | ConsumeMouseWheel | Direct access to ConsumeMouseWheel is deprecated. Please use the getter or setter. |
![]() |
bool | FrontPadScrolling | Direct access to FrontPadScrolling is deprecated. Please use the getter. Note that FrontPadScrolling is only set at construction and is not modifiable at runtime. |
![]() |
EDescendantScrollDestination | NavigationDestination | Direct access to NavigationDestination is deprecated. Please use the getter or setter. |
![]() |
float | NavigationScrollPadding | Direct access to NavigationScrollPadding is deprecated. Please use the getter. Note that NavigationScrollPadding is only set at construction and is not modifiable at runtime. |
![]() |
TEnumAsByte< EOrientation > | Orientation | Direct access to Orientation is deprecated. Please use the getter or setter. |
![]() |
FMargin | ScrollbarPadding | Direct access to ScrollbarPadding is deprecated. Please use the getter or setter. |
![]() |
FVector2D | ScrollbarThickness | Direct access to ScrollbarThickness is deprecated. Please use the getter or setter. |
![]() |
ESlateVisibility | ScrollBarVisibility | Direct access to ScrollBarVisibility is deprecated. Please use the getter or setter. |
![]() |
EScrollWhenFocusChanges | ScrollWhenFocusChanges | Direct access to ScrollWhenFocusChanges is deprecated. Please use the getter or setter. |
![]() |
float | WheelScrollMultiplier | Direct access to WheelScrollMultiplier is deprecated. Please use the getter or setter. |
![]() |
FScrollBarStyle | WidgetBarStyle | Direct access to WidgetBarStyle is deprecated. Please use the getter or setter. |
![]() |
FScrollBoxStyle | WidgetStyle | Direct access to WidgetStyle is deprecated. Please use the getter or setter. |