UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
LinkableScrollBar.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#include "
CoreMinimal.h
"
6
#include "
Widgets/Layout/SScrollBar.h
"
7
8
class
SLinkableScrollBar
:
public
SScrollBar
9
{
10
public
:
11
12
SLATE_API
virtual
void
SetState
(
float
InOffsetFraction
,
float
InThumbSizeFraction
,
bool
bCallOnUserScrolled
=
false
)
override
;
13
14
static
SLATE_API
void
LinkScrollBars
(
TSharedRef<SLinkableScrollBar>
Left
,
TSharedRef<SLinkableScrollBar>
Right
,
TAttribute
<
TArray<FVector2f>
>
ScrollSyncRate
);
15
16
private
:
17
TWeakPtr<SLinkableScrollBar>
LinkedScrollBarRight;
18
TWeakPtr<SLinkableScrollBar>
LinkedScrollBarLeft;
19
20
// list of scroll distance pairs that determine variable scroll rate.
21
// scroll values of Left panel will match X components while the right panel will match Y components
22
TAttribute<TArray<FVector2f>
> ScrollSyncRateRight;
23
TAttribute<TArray<FVector2f>
> ScrollSyncRateLeft;
24
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EInputDeviceTriggerMask::Right
@ Right
EInputDeviceTriggerMask::Left
@ Left
SScrollBar.h
SLinkableScrollBar
Definition
LinkableScrollBar.h:9
SLinkableScrollBar::LinkScrollBars
static SLATE_API void LinkScrollBars(TSharedRef< SLinkableScrollBar > Left, TSharedRef< SLinkableScrollBar > Right, TAttribute< TArray< FVector2f > > ScrollSyncRate)
Definition
LinkableScrollBar.cpp:94
SLinkableScrollBar::SetState
virtual SLATE_API void SetState(float InOffsetFraction, float InThumbSizeFraction, bool bCallOnUserScrolled=false) override
Definition
LinkableScrollBar.cpp:17
SScrollBar
Definition
SScrollBar.h:29
TArray
Definition
Array.h:670
TAttribute
Definition
Attribute.h:17
TSharedRef
Definition
SharedPointer.h:153
TWeakPtr
Definition
SharedPointer.h:1295
Engine
Source
Runtime
Slate
Public
Widgets
Layout
LinkableScrollBar.h
Generated by
1.9.8