UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Overscroll.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 "
HAL/Platform.h
"
7
#include "
Layout/Geometry.h
"
8
9
struct
FGeometry
;
10
11
enum class
EAllowOverscroll
:
uint8
12
{
13
Yes
,
14
No
15
};
16
20
struct
FOverscroll
21
{
22
public
:
23
25
static
SLATE_API
float
Looseness
;
27
static
SLATE_API
float
OvershootLooseMax
;
29
static
SLATE_API
float
OvershootBounceRate
;
30
31
SLATE_API
FOverscroll
();
32
34
SLATE_API
float
ScrollBy
(
const
FGeometry
& AllottedGeometry,
float
LocalDeltaScroll
);
35
37
SLATE_API
float
GetOverscroll
(
const
FGeometry
& AllottedGeometry)
const
;
38
40
SLATE_API
void
UpdateOverscroll
(
float
InDeltaTime
);
41
51
SLATE_API
bool
ShouldApplyOverscroll
(
const
bool
bIsAtStartOfList
,
const
bool
bIsAtEndOfList
,
const
float
ScrollDelta
)
const
;
52
54
SLATE_API
void
ResetOverscroll
();
55
private
:
57
float
OverscrollAmount;
58
};
CoreMinimal.h
Platform.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EAllowOverscroll
EAllowOverscroll
Definition
Overscroll.h:12
EAllowOverscroll::Yes
@ Yes
EAllowOverscroll::No
@ No
Geometry.h
uint8
uint8_t uint8
Definition
binka_ue_file_header.h:8
FGeometry
Definition
Geometry.h:40
FOverscroll
Definition
Overscroll.h:21
FOverscroll::ScrollBy
SLATE_API float ScrollBy(const FGeometry &AllottedGeometry, float LocalDeltaScroll)
Definition
Overscroll.cpp:14
FOverscroll::OvershootLooseMax
static SLATE_API float OvershootLooseMax
Definition
Overscroll.h:27
FOverscroll::UpdateOverscroll
SLATE_API void UpdateOverscroll(float InDeltaTime)
Definition
Overscroll.cpp:46
FOverscroll::FOverscroll
SLATE_API FOverscroll()
Definition
Overscroll.cpp:9
FOverscroll::GetOverscroll
SLATE_API float GetOverscroll(const FGeometry &AllottedGeometry) const
Definition
Overscroll.cpp:31
FOverscroll::ShouldApplyOverscroll
SLATE_API bool ShouldApplyOverscroll(const bool bIsAtStartOfList, const bool bIsAtEndOfList, const float ScrollDelta) const
Definition
Overscroll.cpp:61
FOverscroll::ResetOverscroll
SLATE_API void ResetOverscroll()
Definition
Overscroll.cpp:72
FOverscroll::OvershootBounceRate
static SLATE_API float OvershootBounceRate
Definition
Overscroll.h:29
FOverscroll::Looseness
static SLATE_API float Looseness
Definition
Overscroll.h:25
Engine
Source
Runtime
Slate
Public
Framework
Layout
Overscroll.h
Generated by
1.9.8