struct

TUI::ScrollControl

Inherits Struct < Value < Object

A narrow handle onto a Window's Scroller, handed to Scrollable content so it can drive scrolling (reveal-on-select, page up/down, wheel ticks) without owning the Scroller itself or knowing its own viewport size beyond what's captured here at construction time.

Constructors

new(scroller : Scroller, visible : Int32)
Source

Instance methods

down(by : Int32 = 1, total : Int32 = Int32::MAX) : Nil
Source
offset
Source
reset
Source
reveal(index : Int32) : Nil
Source
up(by : Int32 = 1) : Nil
Source
visible

The viewport size this control was constructed with — content uses this as the page-size for PageUp/PageDown (matching what Window itself measured as the visible content area for this frame).

Source
wheel_down(by : Int32 = Scroller::WHEEL_STEP, total : Int32 = Int32::MAX) : Nil
Source
wheel_up(by : Int32 = Scroller::WHEEL_STEP) : Nil
Source