Table of Contents

Class ScrollbarBuilder

Namespace
MiniTui
Assembly
MiniTui.dll

A scrollbar, drawn along the right edge (vertical) or bottom edge (horizontal) of its area. Hidden when the content fits in the viewport.

public sealed class ScrollbarBuilder
Inheritance
ScrollbarBuilder
Inherited Members

Methods

ContentLength(int)

The total number of rows (or columns) of content.

public ScrollbarBuilder ContentLength(int length)

Parameters

length int

Returns

ScrollbarBuilder

Draw(Buffer, Rect)

Draw the scrollbar.

public void Draw(Buffer buf, Rect area)

Parameters

buf Buffer
area Rect

Horizontal()

Draw along the bottom edge.

public ScrollbarBuilder Horizontal()

Returns

ScrollbarBuilder

Position(int)

The first visible row (or column).

public ScrollbarBuilder Position(int offset)

Parameters

offset int

Returns

ScrollbarBuilder

Vertical()

Draw along the right edge. This is the default.

public ScrollbarBuilder Vertical()

Returns

ScrollbarBuilder

ViewportLength(int)

How many rows (or columns) are visible.

public ScrollbarBuilder ViewportLength(int length)

Parameters

length int

Returns

ScrollbarBuilder