Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout > API/Runtime/Slate/Widgets/Layout/SScrollBar
- SScrollBar::SetState()
- SLinkableScrollBar::SetState()
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScrollBar.h |
| Include | #include "Widgets/Layout/SScrollBar.h" |
| Source | /Engine/Source/Runtime/Slate/Private/Widgets/Layout/SScrollBar.cpp |
virtual void SetState
&40;
float InOffsetFraction,
float InThumbSizeFraction,
bool bCallOnUserScrolled
&41;
Remarks
Set the offset and size of the track's thumb. Note that the maximum offset is 1.0-ThumbSizeFraction. If the user can view 1/3 of the items in a single page, the maximum offset will be ~0.667f
Parameters
| Name | Description |
|---|---|
| InOffsetFraction | Offset of the thumbnail from the top as a fraction of the total available scroll space. |
| InThumbSizeFraction | Size of thumbnail as a fraction of the total available scroll space. |
| bCallOnUserScrolled | If true, OnUserScrolled will be called with InOffsetFraction |