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
FramescrollDirection
ScrollDirectionprocessChildrenFirst
booloverriddenContent
ScrollView.ScrollViewContentWidget
Fields
BounceZoneThickness
public float BounceZoneThickness
Field Value
Content
public readonly ScrollView.ScrollViewContentWidget Content
Field Value
Frame
public readonly Frame Frame
Field Value
InertialScrollingDamping
public float InertialScrollingDamping
Field Value
InertialScrollingStopVelocity
public float InertialScrollingStopVelocity
Field Value
MaxScrollToItemTime
public float MaxScrollToItemTime
Field Value
ScrollToItemVelocity
public float ScrollToItemVelocity
Field Value
ScrollWhenContentFits
public bool ScrollWhenContentFits
Field Value
Properties
CanScroll
public bool CanScroll { get; set; }
Property Value
CenterWhenContentFits
public bool CenterWhenContentFits { get; set; }
Property Value
ContentLength
public float ContentLength { get; set; }
Property Value
ExclusiveDrag
public bool ExclusiveDrag { get; set; }
Property Value
IsBeingRefreshed
protected bool IsBeingRefreshed { get; set; }
Property Value
IsDragging
public virtual bool IsDragging { get; protected set; }
Property Value
MaxScrollPosition
public float MaxScrollPosition { get; }
Property Value
MinScrollPosition
public float MinScrollPosition { get; }
Property Value
RejectOrtogonalSwipes
public bool RejectOrtogonalSwipes { get; set; }
Property Value
ScrollBySlider
public bool ScrollBySlider { get; set; }
Property Value
ScrollDirection
public virtual ScrollDirection ScrollDirection { get; set; }
Property Value
ScrollPosition
public float ScrollPosition { get; set; }
Property Value
Methods
AssimilateChildren()
public void AssimilateChildren()
CreateContentWidget()
protected virtual ScrollView.ScrollViewContentWidget CreateContentWidget()
Returns
IsItemFullyOnscreen(Widget)
public bool IsItemFullyOnscreen(Widget item)
Parameters
item
Widget
Returns
IsItemOnscreen(Widget)
public bool IsItemOnscreen(Widget item)
Parameters
item
Widget
Returns
IsScrolling()
public bool IsScrolling()
Returns
PositionToView(float, float, float)
public float PositionToView(float pos, float paddingBefore = 0, float paddingAfter = 0)
Parameters
Returns
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
ProjectToScrollAxis(Vector2)
public float ProjectToScrollAxis(Vector2 vector)
Parameters
vector
Vector2
Returns
ScrollTo(float, bool)
public void ScrollTo(float position, bool instantly = false)
Parameters
SetProjectedPosition(Widget, float)
public void SetProjectedPosition(Widget w, float position)
Parameters
SetProjectedSize(Widget, float)
public void SetProjectedSize(Widget w, float position)
Parameters
SetScrollPosition(float)
protected virtual void SetScrollPosition(float value)
Parameters
value
float
StopScrolling()
public void StopScrolling()