ScrollingFrame

References
public class ScrollingFrame
Utility class for solving scroll bar dimensions.

Constructors

ScrollingFrame

#
public ScrollingFrame(float container, float content, float minimum, float scroll)
container (float)
content (float)
minimum (float)
scroll (float)

Properties

Container

#
public float Container { get; }

Content

#
public float Content { get; }

LeftOver

#
public float LeftOver { get; }
The container height minus the Minimum scroll bar size.

Minimum

#
public float Minimum { get; }

Scroll

#
public float Scroll { get; }

Size

#
public float Size { get; }
The size of the scroll bar in container units.

Visible

#
public float Visible { get; }
The factor of content visible in the container.

Methods

ComputeBarLimits

#
public void ComputeBarLimits(out float a, out float b)
Resolve the lower and upper limits of the scroll bar in container units.
a (out float)
b (out float)

PerformBarDrag

#
public ScrollingFrame PerformBarDrag(float dx)
Perform a drag operation on this scrolling frame.
dx (float)Motion distance.