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"
7
9{
10public:
11
12 SLATE_API virtual void SetState(float InOffsetFraction, float InThumbSizeFraction, bool bCallOnUserScrolled = false) override;
13
15
16private:
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};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition LinkableScrollBar.h:9
static SLATE_API void LinkScrollBars(TSharedRef< SLinkableScrollBar > Left, TSharedRef< SLinkableScrollBar > Right, TAttribute< TArray< FVector2f > > ScrollSyncRate)
Definition LinkableScrollBar.cpp:94
virtual SLATE_API void SetState(float InOffsetFraction, float InThumbSizeFraction, bool bCallOnUserScrolled=false) override
Definition LinkableScrollBar.cpp:17
Definition SScrollBar.h:29
Definition Array.h:670
Definition Attribute.h:17
Definition SharedPointer.h:153
Definition SharedPointer.h:1295