Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components
Inheritance Hierarchy
- UObject
- UVisual
- UWidget
- UPanelWidget
- UScrollBox
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/ScrollBox.h |
| Include | #include "Components/ScrollBox.h" |
Syntax
UCLASS (MinimalAPI)
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 | |
|---|---|---|---|
| bool | AllowOverscroll | Disable to stop scrollbars from activating inertial overscrolling | |
| bool | AlwaysShowScrollbar | ||
| bool | AlwaysShowScrollbarTrack | ||
| bool | BackPadScrolling | Whether to back pad this scroll box, allowing user to scroll backward until child contents are no longer visible | |
| bool | bAllowRightClickDragScrolling | Option to disable right-click-drag scrolling | |
| bool | bAnimateWheelScrolling | True to lerp smoothly when wheel scrolling along the scroll box | |
| EConsumeMouseWheel | ConsumeMouseWheel | When mouse wheel events should be consumed. | |
| float | DesiredScrollOffset | The desired scroll offset for the underlying scrollbox. | |
| bool | FrontPadScrolling | Whether to front pad this scroll box, allowing user to scroll forward until child contents are no longer visible | |
| TSharedPtr< class SScrollBox > | MyScrollBox | ||
| EDescendantScrollDestination | NavigationDestination | Sets where to scroll a widget to when using explicit navigation or if ScrollWhenFocusChanges is enabled | |
| float | NavigationScrollPadding | The amount of padding to ensure exists between the item being navigated to, at the edge of the scrollbox. | |
| FOnScrollBarVisibilityChangedEvent | OnScrollBarVisibilityChanged | Called when the scrollbar visibility has changed | |
| FOnUserScrolledEvent | OnUserScrolled | Called when the scroll has changed | |
| TEnumAsByte< EOrientation > | Orientation | The orientation of the scrolling and stacking in the box. | |
| FMargin | ScrollbarPadding | The margin around the scrollbar | |
| FVector2D | ScrollbarThickness | The thickness of the scrollbar thumb | |
| ESlateVisibility | ScrollBarVisibility | Visibility | |
| EScrollWhenFocusChanges | ScrollWhenFocusChanges | Scroll behavior when user focus is given to a child widget | |
| FTSTicker::FDelegateHandle | TickHandle | ||
| float | WheelScrollMultiplier | The multiplier to apply when wheel scrolling | |
| FScrollBarStyle | WidgetBarStyle | The bar style | |
| FScrollBoxStyle | WidgetStyle | The style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UScrollBox
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Instantly stops any inertial scrolling that is currently in progress | ||
| EConsumeMouseWheel | |||
| bool | |||
| EDescendantScrollDestination | |||
| float | |||
| EOrientation | |||
| float | |||
| 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 | Serialize
(
FArchive& Ar |
||
| 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 | SetIsTouchScrollingEnabled
(
bool bInEnableTouchScrolling |
||
| void | SetNavigationDestination
(
const EDescendantScrollDestination NewNavigationDestination |
||
| void | SetOrientation
(
EOrientation NewOrientation |
||
| void | SetScrollAnimationInterpolationSpeed
(
float NewScrollAnimationInterpolationSpeed |
||
| 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 | SlateHandleScrollBarVisibilityChanged
(
EVisibility NewVisibility |
||
| 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 |