Navigation
API > API/Runtime > API/Runtime/UMG
An arbitrary scrollable collection of widgets. Great for presenting 10-100 widgets in a list. Doesn't support virtualization.
| Name | UScrollBox |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/ScrollBox.h |
| Include Path | #include "Components/ScrollBox.h" |
Syntax
UCLASS (MinimalAPI)
class UScrollBox : public UPanelWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UPanelWidget → UScrollBox
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UScrollBox
(
const FObjectInitializer& ObjectInitializer |
Components/ScrollBox.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowOverscroll | bool | Disable to stop scrollbars from activating inertial overscrolling | Components/ScrollBox.h |
|
| AlwaysShowScrollbar | bool | Components/ScrollBox.h |
|
|
| AlwaysShowScrollbarTrack | bool | Components/ScrollBox.h |
|
|
| BackPadScrolling | bool | Whether to back pad this scroll box, allowing user to scroll backward until child contents are no longer visible | Components/ScrollBox.h |
|
| bAllowRightClickDragScrolling | bool | Option to disable right-click-drag scrolling | Components/ScrollBox.h |
|
| bAnimateWheelScrolling | bool | True to lerp smoothly when wheel scrolling along the scroll box | Components/ScrollBox.h |
|
| ConsumeMouseWheel | EConsumeMouseWheel | When mouse wheel events should be consumed. | Components/ScrollBox.h |
|
| FrontPadScrolling | bool | Whether to front pad this scroll box, allowing user to scroll forward until child contents are no longer visible | Components/ScrollBox.h |
|
| NavigationDestination | EDescendantScrollDestination | Sets where to scroll a widget to when using explicit navigation or if ScrollWhenFocusChanges is enabled | Components/ScrollBox.h |
|
| NavigationScrollPadding | float | The amount of padding to ensure exists between the item being navigated to, at the edge of the scrollbox. | Components/ScrollBox.h |
|
| OnFocusLost | FOnScrollBoxFocusLostEvent | Called when the scroll has changed | Components/ScrollBox.h |
|
| OnFocusReceived | FOnScrollBoxFocusReceivedEvent | Called when the scroll has changed | Components/ScrollBox.h |
|
| OnScrollBarVisibilityChanged | FOnScrollBarVisibilityChangedEvent | Called when the scrollbar visibility has changed | Components/ScrollBox.h |
|
| OnUserScrolled | FOnUserScrolledEvent | Called when the scroll has changed | Components/ScrollBox.h |
|
| Orientation | TEnumAsByte< EOrientation > | The orientation of the scrolling and stacking in the box. | Components/ScrollBox.h |
|
| ScrollbarPadding | FMargin | The margin around the scrollbar | Components/ScrollBox.h |
|
| ScrollbarThickness | FVector2D | The thickness of the scrollbar thumb | Components/ScrollBox.h |
|
| ScrollBarVisibility | ESlateVisibility | Visibility | Components/ScrollBox.h |
|
| ScrollWhenFocusChanges | EScrollWhenFocusChanges | Scroll behavior when user focus is given to a child widget | Components/ScrollBox.h |
|
| WheelScrollMultiplier | float | The multiplier to apply when wheel scrolling | Components/ScrollBox.h |
|
| WidgetBarStyle | FScrollBarStyle | The bar style | Components/ScrollBox.h |
|
| WidgetStyle | FScrollBoxStyle | The style | Components/ScrollBox.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AnalogMouseWheelKey | FKey | The virtual mouse wheel key for gamepad input | Components/ScrollBox.h |
|
| bConsumePointerInput | bool | Option to pass touch input events to widgets behind the ScrollBox. | Components/ScrollBox.h |
|
| bEnableTouchScrolling | bool | True to allow scrolling using touch input. | Components/ScrollBox.h |
|
| bIsFocusable | bool | If true, scrollbox can receive focus. | Components/ScrollBox.h |
|
| ScrollAnimationInterpolationSpeed | float | Components/ScrollBox.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EndInertialScrolling() |
Instantly stops any inertial scrolling that is currently in progress | Components/ScrollBox.h |
|
FKey GetAnalogMouseWheelKey() |
Components/ScrollBox.h |
|
|
EConsumeMouseWheel GetConsumeMouseWheel() |
Components/ScrollBox.h | ||
bool GetConsumePointerInput() |
Components/ScrollBox.h |
|
|
bool GetIsFocusable() |
Components/ScrollBox.h |
|
|
bool GetIsScrolling() |
Returns true when the widget is currently inertial scrolling | Components/ScrollBox.h |
|
bool GetIsTouchScrollingEnabled() |
Components/ScrollBox.h | ||
EDescendantScrollDestination GetNavigationDestination() |
Components/ScrollBox.h | ||
float GetNavigationScrollPadding() |
Components/ScrollBox.h | ||
EOrientation GetOrientation() |
Components/ScrollBox.h | ||
float GetOverscrollOffset() |
Gets the overscroll offset of the scrollbox in Slate Units. | Components/ScrollBox.h |
|
float GetOverscrollPercentage() |
Gets the overscroll offset of the scrollbox in percentage from its view size. | Components/ScrollBox.h |
|
float GetScrollAnimationInterpolationSpeed() |
Components/ScrollBox.h | ||
FMargin GetScrollbarPadding() |
Components/ScrollBox.h | ||
FVector2D GetScrollbarThickness() |
Components/ScrollBox.h | ||
ESlateVisibility GetScrollBarVisibility() |
Components/ScrollBox.h | ||
float GetScrollOffset() |
Gets the scroll offset of the scrollbox in Slate Units. | Components/ScrollBox.h |
|
float GetScrollOffsetOfEnd() |
Gets the scroll offset of the bottom of the ScrollBox in Slate Units. | Components/ScrollBox.h |
|
EScrollWhenFocusChanges GetScrollWhenFocusChanges() |
Components/ScrollBox.h | ||
float GetViewFraction() |
Gets the fraction currently visible in the scrollbox | Components/ScrollBox.h |
|
float GetViewOffsetFraction() |
Components/ScrollBox.h |
|
|
float GetWheelScrollMultiplier() |
Components/ScrollBox.h | ||
const FScrollBarStyle & GetWidgetBarStyle() |
Components/ScrollBox.h | ||
const FScrollBoxStyle & GetWidgetStyle() |
Components/ScrollBox.h | ||
bool IsAllowOverscroll() |
Components/ScrollBox.h | ||
bool IsAllowRightClickDragScrolling() |
Components/ScrollBox.h | ||
bool IsAlwaysShowScrollbar() |
Components/ScrollBox.h | ||
bool IsAlwaysShowScrollbarTrack() |
Components/ScrollBox.h | ||
bool IsAnimateWheelScrolling() |
Components/ScrollBox.h | ||
bool IsBackPadScrolling() |
Components/ScrollBox.h | ||
bool IsFrontPadScrolling() |
Components/ScrollBox.h | ||
void ScrollToEnd() |
Scrolls the ScrollBox to the bottom instantly during the next layout pass. | Components/ScrollBox.h |
|
void ScrollToStart() |
Scrolls the ScrollBox to the top instantly | Components/ScrollBox.h |
|
void ScrollWidgetIntoView
(
UWidget* WidgetToFind, |
Scrolls the ScrollBox to the widget during the next layout pass. | Components/ScrollBox.h |
|
void SetAllowOverscroll
(
bool NewAllowOverscroll |
Components/ScrollBox.h |
|
|
void SetAllowRightClickDragScrolling
(
bool bShouldAllowRightClickDragScrolling |
Components/ScrollBox.h | ||
void SetAlwaysShowScrollbar
(
bool NewAlwaysShowScrollbar |
Components/ScrollBox.h |
|
|
void SetAlwaysShowScrollbarTrack
(
bool NewAlwaysShowScrollbarTrack |
Components/ScrollBox.h | ||
void SetAnalogMouseWheelKey
(
FKey InMouseWheelKey |
Components/ScrollBox.h |
|
|
void SetAnimateWheelScrolling
(
bool bShouldAnimateWheelScrolling |
Components/ScrollBox.h |
|
|
void SetConsumeMouseWheel
(
EConsumeMouseWheel NewConsumeMouseWheel |
Components/ScrollBox.h |
|
|
void SetConsumePointerInput
(
bool bInConsumePointerInput |
Components/ScrollBox.h |
|
|
void SetIsFocusable
(
bool bInIsFocusable |
Components/ScrollBox.h |
|
|
void SetIsTouchScrollingEnabled
(
bool bInEnableTouchScrolling |
Components/ScrollBox.h |
|
|
void SetNavigationDestination
(
const EDescendantScrollDestination NewNavigationDestination |
Components/ScrollBox.h |
|
|
void SetOrientation
(
EOrientation NewOrientation |
Components/ScrollBox.h |
|
|
void SetScrollAnimationInterpolationSpeed
(
float NewScrollAnimationInterpolationSpeed |
Components/ScrollBox.h |
|
|
void SetScrollbarPadding
(
const FMargin& NewScrollbarPadding |
Components/ScrollBox.h |
|
|
void SetScrollbarThickness
(
const FVector2D& NewScrollbarThickness |
Components/ScrollBox.h |
|
|
void SetScrollBarVisibility
(
ESlateVisibility NewScrollBarVisibility |
Components/ScrollBox.h |
|
|
void SetScrollOffset
(
float NewScrollOffset |
Updates the scroll offset of the scrollbox. | Components/ScrollBox.h |
|
void SetScrollWhenFocusChanges
(
EScrollWhenFocusChanges NewScrollWhenFocusChanges |
Components/ScrollBox.h |
|
|
void SetWheelScrollMultiplier
(
float NewWheelScrollMultiplier |
Components/ScrollBox.h |
|
|
void SetWidgetBarStyle
(
const FScrollBarStyle& NewWidgetBarStyle |
Components/ScrollBox.h | ||
void SetWidgetStyle
(
const FScrollBoxStyle& NewWidgetStyle |
Components/ScrollBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/ScrollBox.h | |
virtual void OnDescendantDeselectedByDesigner
(
UWidget* DescendantWidget |
Components/ScrollBox.h | ||
virtual void OnDescendantSelectedByDesigner
(
UWidget* DescendantWidget |
Components/ScrollBox.h | ||
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/ScrollBox.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/ScrollBox.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
Components/ScrollBox.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitBackPadScrolling
(
bool InBackPadScrolling |
Initialize IsFocusable in the constructor before the SWidget is constructed. | Components/ScrollBox.h | |
void InitFrontPadScrolling
(
bool InFrontPadScrolling |
Initialize IsFocusable in the constructor before the SWidget is constructed. | Components/ScrollBox.h | |
void InitNavigationScrollPadding
(
float InNavigationScrollPadding |
Initialize IsFocusable in the constructor before the SWidget is constructed. | Components/ScrollBox.h | |
void SlateHandleFocusLost() |
Components/ScrollBox.h | ||
void SlateHandleFocusReceived() |
Components/ScrollBox.h | ||
void SlateHandleScrollBarVisibilityChanged
(
EVisibility NewVisibility |
Components/ScrollBox.h | ||
void SlateHandleUserScrolled
(
float CurrentOffset |
Components/ScrollBox.h |
Overridden from UPanelWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UClass * GetSlotClass() |
UPanelWidget. | Components/ScrollBox.h | |
virtual void OnSlotAdded
(
UPanelSlot* Slot |
Components/ScrollBox.h | ||
virtual void OnSlotRemoved
(
UPanelSlot* Slot |
Components/ScrollBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/ScrollBox.h |