Navigation
API > API/Runtime > API/Runtime/UMG
| Name | UScrollBar |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/ScrollBar.h |
| Include Path | #include "Components/ScrollBar.h" |
Syntax
UCLASS (Experimental, MinimalAPI)
class UScrollBar : public UWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UScrollBar
Implements Interfaces
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UScrollBar
(
const FObjectInitializer& ObjectInitializer |
Components/ScrollBar.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAlwaysShowScrollbar | bool | Components/ScrollBar.h |
|
|
| bAlwaysShowScrollbarTrack | bool | Components/ScrollBar.h |
|
|
| Orientation | TEnumAsByte< EOrientation > | Components/ScrollBar.h |
|
|
| Padding | FMargin | The margin around the scrollbar | Components/ScrollBar.h |
|
| Thickness | FVector2D | The thickness of the scrollbar thumb | Components/ScrollBar.h |
|
| WidgetStyle | FScrollBarStyle | Style of the scrollbar | Components/ScrollBar.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EOrientation GetOrientation() |
Components/ScrollBar.h | ||
FMargin GetPadding() |
Sets the padding of the scrollbar. | Components/ScrollBar.h | |
FVector2D GetThickness() |
Components/ScrollBar.h | ||
const FScrollBarStyle & GetWidgetStyle() |
Components/ScrollBar.h | ||
bool IsAlwaysShowScrollbar() |
Components/ScrollBar.h | ||
bool IsAlwaysShowScrollbarTrack() |
Components/ScrollBar.h | ||
void SetAlwaysShowScrollbar
(
bool bNewValue |
Sets whether the scrollbar should always show. | Components/ScrollBar.h | |
void SetAlwaysShowScrollbarTrack
(
bool bNewValue |
Sets whether the scrollbar track should always show | Components/ScrollBar.h | |
void SetPadding
(
const FMargin& InPadding |
Components/ScrollBar.h | ||
void SetState
(
float InOffsetFraction, |
Set the offset and size of the track's thumb. | Components/ScrollBar.h |
|
void SetThickness
(
const FVector2D& InThickness |
Sets the thickness of the scrollbar. | Components/ScrollBar.h | |
void SetWidgetStyle
(
const FScrollBarStyle& InWidgetStyle |
Sets the style of scrollbar. | Components/ScrollBar.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/ScrollBar.h | |
virtual void SynchronizeProperties () |
Applies all properties to the native widget if possible. | Components/ScrollBar.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/ScrollBar.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Serialize
(
FArchive& Ar |
Components/ScrollBar.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitOrientation
(
EOrientation InOrientation |
Initialize the orientation of the scrollbar in the constructor before the SWidget is constructed. | Components/ScrollBar.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/ScrollBar.h |