Table of Contents

Class ScrollView

Namespace
Lime
Assembly
Lime.dll
public class ScrollView
Inheritance
ScrollView
Derived
Inherited Members

Constructors

ScrollView(Frame, ScrollDirection, bool, ScrollViewContentWidget)

public ScrollView(Frame frame, ScrollDirection scrollDirection = ScrollDirection.Vertical, bool processChildrenFirst = false, ScrollView.ScrollViewContentWidget overriddenContent = null)

Parameters

frame Frame
scrollDirection ScrollDirection
processChildrenFirst bool
overriddenContent ScrollView.ScrollViewContentWidget

Fields

BounceZoneThickness

public float BounceZoneThickness

Field Value

float

Content

public readonly ScrollView.ScrollViewContentWidget Content

Field Value

ScrollView.ScrollViewContentWidget

Frame

public readonly Frame Frame

Field Value

Frame

InertialScrollingDamping

public float InertialScrollingDamping

Field Value

float

InertialScrollingStopVelocity

public float InertialScrollingStopVelocity

Field Value

float

MaxScrollToItemTime

public float MaxScrollToItemTime

Field Value

float

ScrollToItemVelocity

public float ScrollToItemVelocity

Field Value

float

ScrollWhenContentFits

public bool ScrollWhenContentFits

Field Value

bool

Properties

CanScroll

public bool CanScroll { get; set; }

Property Value

bool

CenterWhenContentFits

public bool CenterWhenContentFits { get; set; }

Property Value

bool

ContentLength

public float ContentLength { get; set; }

Property Value

float

ExclusiveDrag

public bool ExclusiveDrag { get; set; }

Property Value

bool

IsBeingRefreshed

protected bool IsBeingRefreshed { get; set; }

Property Value

bool

IsDragging

public virtual bool IsDragging { get; protected set; }

Property Value

bool

MaxScrollPosition

public float MaxScrollPosition { get; }

Property Value

float

MinScrollPosition

public float MinScrollPosition { get; }

Property Value

float

RejectOrtogonalSwipes

public bool RejectOrtogonalSwipes { get; set; }

Property Value

bool

ScrollBySlider

public bool ScrollBySlider { get; set; }

Property Value

bool

ScrollDirection

public virtual ScrollDirection ScrollDirection { get; set; }

Property Value

ScrollDirection

ScrollPosition

public float ScrollPosition { get; set; }

Property Value

float

Methods

AssimilateChildren()

public void AssimilateChildren()

CreateContentWidget()

protected virtual ScrollView.ScrollViewContentWidget CreateContentWidget()

Returns

ScrollView.ScrollViewContentWidget

IsItemFullyOnscreen(Widget)

public bool IsItemFullyOnscreen(Widget item)

Parameters

item Widget

Returns

bool

IsItemOnscreen(Widget)

public bool IsItemOnscreen(Widget item)

Parameters

item Widget

Returns

bool

IsScrolling()

public bool IsScrolling()

Returns

bool

PositionToView(float, float, float)

public float PositionToView(float pos, float paddingBefore = 0, float paddingAfter = 0)

Parameters

pos float
paddingBefore float
paddingAfter float

Returns

float

PositionToViewFully(Widget)

Include whole widget into frame. If the widget is too large, display top part.

public float PositionToViewFully(Widget w)

Parameters

w Widget

Returns

float

ProjectToScrollAxis(Vector2)

public float ProjectToScrollAxis(Vector2 vector)

Parameters

vector Vector2

Returns

float

ScrollTo(float, bool)

public void ScrollTo(float position, bool instantly = false)

Parameters

position float
instantly bool

SetProjectedPosition(Widget, float)

public void SetProjectedPosition(Widget w, float position)

Parameters

w Widget
position float

SetProjectedSize(Widget, float)

public void SetProjectedSize(Widget w, float position)

Parameters

w Widget
position float

SetScrollPosition(float)

protected virtual void SetScrollPosition(float value)

Parameters

value float

StopScrolling()

public void StopScrolling()