class

Egui::ScrollArea

Inherits Reference < Object

Constants

BAR_W = 8.0

Overlay bar thickness (px), pinned over the content's edge.

CLASSIC_W = 16.0

Classic bar: width of the reserved strip and of each square arrow button (px).

LINE = 20.0

Classic arrows: one line per click, and a hold repeats at LINE_RATE lines per second.

LINE_RATE = 10.0
PAGE = 0.8

Classic track click: the page is a fraction of the viewport (Win95 pages a little less than a full page so context stays visible at the jump).

Constructors

new(max_height : Float64 | Nil = nil, scrollbar : Symbol = :overlay, vbar : Symbol = :right, hbar : Symbol | Nil = nil, id : Id | Nil = nil)

id: pins the offset/content cells to a STABLE Id instead of the hosting Ui's child counter — for hosts that need to reach the scroll state directly (SelectBox's follow-the-active-row).

Source

Instance methods

classic?
Source
show(ui : Ui, &block : Ui -> ) : Rect
Source