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
lengthint
Returns
Draw(Buffer, Rect)
Draw the scrollbar.
public void Draw(Buffer buf, Rect area)
Parameters
Horizontal()
Draw along the bottom edge.
public ScrollbarBuilder Horizontal()
Returns
Position(int)
The first visible row (or column).
public ScrollbarBuilder Position(int offset)
Parameters
offsetint
Returns
Vertical()
Draw along the right edge. This is the default.
public ScrollbarBuilder Vertical()
Returns
ViewportLength(int)
How many rows (or columns) are visible.
public ScrollbarBuilder ViewportLength(int length)
Parameters
lengthint