ScrollX

ScrollBar
public sealed class ScrollX : ScrollBar
Horizontal implementation of ScrollBar.

Constructors

ScrollX

#
public ScrollX(Canvas canvas, INestedScroller target)
canvas (Canvas)
target (INestedScroller)

Fields

_atts

protected readonly IAttributes _atts
inherited fromScrollBar

Properties

ActiveRegion

public RectangleF ActiveRegion { get; }
Gets the active region for this scroller. If the mouse leaves the active region we assume the scrollbar ought to fade.
inherited fromScrollBar

Canvas

public Canvas Canvas { get; }
Gets the canvas this scroller is tied to.
inherited fromScrollBar

Dragging

public bool Dragging { get; }
Gets or sets whether this scrollbar is currently being dragged.
inherited fromScrollBar

Fading

public bool Fading { get; }
inherited fromScrollBar

Grip

#
public override RectangleF Grip { get; }
Gets the grip rectangle for this scrollbar.
ScrollBar.Grip

HasFaded

public bool HasFaded { get; }
Gets whether this scrollbar has completely faded out and can be culled. Note that ValueNow is only meaningful after the animation has been evaluated at least once, and Draw() skips evaluation entirely while the grip is empty. A freshly created fade-in bar therefore also reports a ValueNow of zero, so we additionally require the bar to actually be fading out before declaring it dead.
inherited fromScrollBar

ParallelScrollers

public IEnumerable<(Guid id, float initialOffset)> ParallelScrollers { get; }
Enumerate over all parallel scrolling objects.
inherited fromScrollBar

Rail

#
public override RectangleF Rail { get; }
Gets the rail rectangle for this scrollbar.
ScrollBar.Rail

Target

public INestedScroller Target { get; }
Gets target scroller object.
inherited fromScrollBar

Methods

AddParallelScroller

public void AddParallelScroller(Guid id, float initialOffset)
Add a parallel scrolling object.
inherited fromScrollBar
id (Guid)
initialOffset (float)

BeginDrag

public void BeginDrag(PointF mouse)
inherited fromScrollBar
mouse (PointF)

BeginDragInternal

#
public override void BeginDragInternal(PointF mouse)
mouse (PointF)

ContinueDrag

public bool ContinueDrag(PointF mouse, out float amount)
inherited fromScrollBar
mouse (PointF)
amount (out float)

ContinueDragInternal

#
public override bool ContinueDragInternal(PointF mouse, out float amount)
mouse (PointF)
amount (out float)

Draw

#
public override void Draw(Context context, Skin skin)
Draw this scroll bar.
context (Context)
skin (Skin)
ScrollBar.Draw

EndDrag

public void EndDrag()
inherited fromScrollBar

Fade

public void Fade()
inherited fromScrollBar