Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
- FSlateControlledConstruction
- TSharedFromThis
- SWidget
- SCompoundWidget
- SBorder
- SScrollBar
- SLinkableScrollBar
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScrollBar.h |
| Include | #include "Widgets/Layout/SScrollBar.h" |
Syntax
class SScrollBar : public SBorder
Variables
| Type | Name | Description | |
|---|---|---|---|
| const FSlateBrush * | BackgroundBrush | Background brush | |
| bool | bAlwaysShowScrollbar | ||
| bool | bAlwaysShowScrollbarTrack | ||
| bool | bDraggingThumb | ||
| bool | bHideWhenNotInUse | ||
| bool | bIsScrolling | ||
| const FSlateBrush * | BottomBrush | Bottom brush | |
| TSharedPtr< SImage > | BottomImage | ||
| bool | bPreventThrottling | Holds whether or not to prevent throttling during mouse capture When true, the viewport will be updated with every single change to the value during dragging | |
| EFocusCause | DragFocusCause | ||
| const FSlateBrush * | DraggedThumbImage | Image to use when the scrollbar thumb is in its dragged state | |
| float | DragGrabOffset | ||
| TSharedPtr< SBorder > | DragThumb | ||
| const FSlateBrush * | HoveredThumbImage | Image to use when the scrollbar thumb is in its hovered state | |
| double | LastInteractionTime | ||
| const FSlateBrush * | NormalThumbImage | Image to use when the scrollbar thumb is in its normal state | |
| FOnUserScrolled | OnUserScrolled | ||
| EOrientation | Orientation | ||
| TSharedPtr< SSpacer > | ThicknessSpacer | ||
| const FSlateBrush * | TopBrush | Top brush | |
| TSharedPtr< SImage > | TopImage | ||
| TSharedPtr< SScrollBarTrack > | Track | ||
| TAttribute< EVisibility > | UserVisibility | The scrollbar's visibility as specified by the user. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
SScrollBar () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns True when the scrollbar should always be shown, else False | ||
| void | Allows external scrolling panels to notify the scrollbar when scrolling begins. | ||
| void | Construct
(
const FArguments& InArgs |
Construct this widget | |
| float | |||
| float | |||
| void | EndScrolling () |
Allows external scrolling panels to notify the scrollbar when scrolling ends. | |
| void | ExecuteOnUserScrolled
(
const FGeometry& MyGeometry, |
Execute the on user scrolled delegate | |
| const FSlateBrush * | |||
| EOrientation | |||
| FLinearColor | We always show a subtle scroll thumb, but highlight it extra when dragging | ||
| FSlateColor | We fade the scroll track unless it is being hovered | ||
| void | Invalidate the style | ||
| bool | IsNeeded () |
||
| bool | IsScrolling () |
||
| void | SetDragFocusCause
(
EFocusCause InDragFocusCause |
Set DragFocusCause attribute | |
| void | SetOnUserScrolled
(
const FOnUserScrolled& InHandler |
Set the handler to be invoked when the user scrolls. | |
| void | SetScrollBarAlwaysVisible
(
bool InAlwaysVisible |
Set ScrollBarAlwaysVisible attribute | |
| void | SetScrollBarTrackAlwaysVisible
(
bool InAlwaysVisible |
Set ScrollBarTrackAlwaysVisible attribute | |
| void | SetState
(
float InOffsetFraction, |
Set the offset and size of the track's thumb. | |
| void | SetStyle
(
const FScrollBarStyle* InStyle |
Set argument Style | |
| void | SetThickness
(
TAttribute< FVector2D > InThickness |
Set Thickness attribute | |
| void | SetUserVisibility
(
TAttribute< EVisibility > InUserVisibility |
Set UserVisibility attribute | |
| EVisibility | |||
| float |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FReply | OnMouseButtonDown
(
const FGeometry& MyGeometry, |
MOUSE INPUT The system calls this method to notify the widget that a mouse button was pressed within it. | |
| FReply | OnMouseButtonUp
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse button was release within it. | |
| void | OnMouseEnter
(
const FGeometry& MyGeometry, |
The system will use this event to notify a widget that the cursor has entered it. | |
| void | OnMouseLeave
(
const FPointerEvent& MouseEvent |
The system will use this event to notify a widget that the cursor has left it. | |
| FReply | OnMouseMove
(
const FGeometry& MyGeometry, |
The system calls this method to notify the widget that a mouse moved within it. | |
| void | SWidget. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |