Class ScrollNode
Scrollable Node
public sealed class ScrollNode : SpriteNode
- Inheritance
-
ScrollNode
- Inherited Members
- Extension Methods
Constructors
ScrollNode(Color, SizeF)
public ScrollNode(Color color, SizeF size)
Parameters
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
MaxYScrollPosition
Max horizontal scroll position
public float MaxYScrollPosition { get; }
Property Value
MinXScrollPosition
Min horizontal scroll position
public float MinXScrollPosition { get; }
Property Value
MinYScrollPosition
Min horizontal scroll position
public float MinYScrollPosition { get; }
Property Value
ScrollPosition
Scroll position offset
public PointF ScrollPosition { get; set; }
Property Value
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()