ScrollX

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

Constructors

ScrollX

#
public ScrollX(
canvas,
target
)

Fields

_atts

protected readonly IAttributes _atts
inherited fromScrollBar

Properties

ActiveRegion

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

Canvas

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

Dragging

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

Fading

public bool Fading { get; }
inherited fromScrollBar

Grip

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

HasFaded

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.
public bool HasFaded { get; }
inherited fromScrollBar

ParallelScrollers

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

Rail

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

Target

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

Methods

AddParallelScroller

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

BeginDrag

public void BeginDrag(
PointF
mouse
)
inherited fromScrollBar

BeginDragInternal

#
public override void BeginDragInternal(
PointF
mouse
)

ContinueDrag

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

ContinueDragInternal

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

Draw

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

EndDrag

public void EndDrag()
inherited fromScrollBar

Fade

public void Fade()
inherited fromScrollBar