engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 属性 | 所有成员列表
FOverscroll结构体 参考

Handles overscroll management. 更多...

#include <Overscroll.h>

Public 成员函数

float GetOverscroll (const FGeometry &AllottedGeometry) const
 How far the user scrolled above/below the beginning/end of the list.
 
void ResetOverscroll ()
 Resets the overscroll amout.
 
float ScrollBy (const FGeometry &AllottedGeometry, float LocalDeltaScroll)
 
bool ShouldApplyOverscroll (const bool bIsAtStartOfList, const bool bIsAtEndOfList, const float ScrollDelta) const
 Should ScrollDelta be applied to overscroll or to regular item scrolling. 更多...
 
void UpdateOverscroll (float InDeltaTime)
 Ticks the overscroll manager so it can animate.
 

静态 Public 属性

static float Looseness
 The amount to scale the logarithm by to make it more loose
 
static float OvershootBounceRate
 The bounce back rate when the overscroll stops.
 
static float OvershootLooseMax
 The "max" used to perform the interpolation snap back, and make it faster the further away it is.
 

详细描述

Handles overscroll management.

成员函数说明

◆ ScrollBy()

float FOverscroll::ScrollBy ( const FGeometry &  AllottedGeometry,
float  LocalDeltaScroll 
)
返回
The Amount actually scrolled

◆ ShouldApplyOverscroll()

bool FOverscroll::ShouldApplyOverscroll ( const bool  bIsAtStartOfList,
const bool  bIsAtEndOfList,
const float  ScrollDelta 
) const

Should ScrollDelta be applied to overscroll or to regular item scrolling.

参数
bIsAtStartOfListAre we at the very beginning of the list (i.e. showing the first item at the top of the view)?
bIsAtEndOfListAre we showing the last item on the screen completely?
ScrollDeltaHow much the user is trying to scroll in Slate Units.
返回
true if the user's scrolling should be applied toward overscroll.

该结构体的文档由以下文件生成: