Table of Contents

Class ScrollNode

Namespace
Fantas.UI
Assembly
Fantas.dll

Scrollable Node

public sealed class ScrollNode : SpriteNode
Inheritance
ScrollNode
Inherited Members
Extension Methods

Constructors

ScrollNode(Color, SizeF)

public ScrollNode(Color color, SizeF size)

Parameters

color Color
size SizeF

ScrollNode(SizeF)

Create a scrollable node with the given size

public ScrollNode(SizeF size)

Parameters

size SizeF

Properties

MaxXScrollPosition

Max horizontal scroll position

public float MaxXScrollPosition { get; }

Property Value

float

MaxYScrollPosition

Max horizontal scroll position

public float MaxYScrollPosition { get; }

Property Value

float

MinXScrollPosition

Min horizontal scroll position

public float MinXScrollPosition { get; }

Property Value

float

MinYScrollPosition

Min horizontal scroll position

public float MinYScrollPosition { get; }

Property Value

float

ScrollPosition

Scroll position offset

public PointF ScrollPosition { get; set; }

Property Value

PointF

Methods

AddChild(Node)

public void AddChild(Node node)

Parameters

node Node

OnMouseWheel(MouseEventArgs)

public override void OnMouseWheel(MouseEventArgs args)

Parameters

args MouseEventArgs

OnPan(PanEventArgs)

public override void OnPan(PanEventArgs args)

Parameters

args PanEventArgs

OnPanComplete(PanEventArgs)

public override void OnPanComplete(PanEventArgs args)

Parameters

args PanEventArgs

OnPanStart(PanEventArgs)

public override void OnPanStart(PanEventArgs args)

Parameters

args PanEventArgs

OnSizeChanged()

Called when size changes

protected override void OnSizeChanged()

OnTouchDownInside(TouchEventArgs)

public override void OnTouchDownInside(TouchEventArgs args)

Parameters

args TouchEventArgs

UpdateContentArea()

Update ContentArea with children size

public void UpdateContentArea()