Class ScrollMetricsUtils
Namespace: Unity.UIWidgets.widgets
Syntax
public static class ScrollMetricsUtils
Methods
atEdge(ScrollMetrics)
Declaration
public static bool atEdge(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Boolean |
axis(ScrollMetrics)
Declaration
public static Axis axis(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Axis |
copyWith(ScrollMetrics, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<Single>, Nullable<AxisDirection>, Nullable<Single>)
Declaration
public static ScrollMetrics copyWith(ScrollMetrics it, float? minScrollExtent = default(float? ), float? maxScrollExtent = default(float? ), float? pixels = default(float? ), float? viewportDimension = default(float? ), AxisDirection? axisDirection = default(AxisDirection? ), float? viewportFraction = default(float? ))
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it | |
Nullable<Single> | minScrollExtent | |
Nullable<Single> | maxScrollExtent | |
Nullable<Single> | pixels | |
Nullable<Single> | viewportDimension | |
Nullable<AxisDirection> | axisDirection | |
Nullable<Single> | viewportFraction |
Returns
Type | Description |
---|---|
ScrollMetrics |
extentAfter(ScrollMetrics)
Declaration
public static float extentAfter(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Single |
extentBefore(ScrollMetrics)
Declaration
public static float extentBefore(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Single |
extentInside(ScrollMetrics)
Declaration
public static float extentInside(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Single |
outOfRange(ScrollMetrics)
Declaration
public static bool outOfRange(this ScrollMetrics it)
Parameters
Type | Name | Description |
---|---|---|
ScrollMetrics | it |
Returns
Type | Description |
---|---|
Boolean |