struct
TUI::ScrollControl
- TUI::ScrollControl
- Struct
- Value
- Object
Overview
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.
Defined in:
tui/widget/scroll_control.crConstructors
Instance Method Summary
- #down(by : Int32 = 1, total : Int32 = Int32::MAX) : Nil
- #offset : Int32
- #reset : Nil
- #reveal(index : Int32) : Nil
- #up(by : Int32 = 1) : Nil
-
#visible : Int32
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).
- #wheel_down(by : Int32 = Scroller::WHEEL_STEP, total : Int32 = Int32::MAX) : Nil
- #wheel_up(by : Int32 = Scroller::WHEEL_STEP) : Nil
Constructor Detail
Instance Method Detail
def visible : Int32
#
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).