ScrollbarGeometry

Class

Pure scrollbar math shared by every widget that draws a vertical scrollbar.

Namespace: RazorConsole.Core.Layout
Assembly: RazorConsole.Core

Definition

public static class ScrollbarGeometry

Methods

2
NameTypeDescription
CalculateThumb(int, int, int, int, int)()ValueTuple<Int32, Int32>Computes the thumb rectangle inside a vertical track.
OffsetForThumbTop(int, int, int, int, int)()Int32Maps a row inside the track back to the content offset it represents (used for track clicks and thumb drags).