gleamtea/viewport
A bubble: a scrollable viewport over a block of text.
Types
Values
pub fn scroll_percent(viewport: Viewport) -> Float
How far through the content we are scrolled, as 0.0–1.0.
pub fn set_content(
content: String,
viewport: Viewport,
) -> Viewport
Replace the content (split into lines on \n).
pub fn update(
msg: msg,
viewport: Viewport,
) -> #(Viewport, gleamtea.Cmd(msg))
Scroll in response to a key.