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
sizeSizeF
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
nodeNode
OnMouseWheel(MouseEventArgs)
public override void OnMouseWheel(MouseEventArgs args)
Parameters
argsMouseEventArgs
OnPan(PanEventArgs)
public override void OnPan(PanEventArgs args)
Parameters
argsPanEventArgs
OnPanComplete(PanEventArgs)
public override void OnPanComplete(PanEventArgs args)
Parameters
argsPanEventArgs
OnPanStart(PanEventArgs)
public override void OnPanStart(PanEventArgs args)
Parameters
argsPanEventArgs
OnSizeChanged()
Called when size changes
protected override void OnSizeChanged()
OnTouchDownInside(TouchEventArgs)
public override void OnTouchDownInside(TouchEventArgs args)
Parameters
argsTouchEventArgs
UpdateContentArea()
Update ContentArea with children size
public void UpdateContentArea()