Scoop API

scoop:scoop.ui:0.1.0

src/text/editor/scroll_semantics.scoop

Selected production source · src/text/editor/scroll_semantics.scoop

1package scoop.ui.text
3import scoop.ui.*
4import scoop.window.accessibility.*
6/** Borrows the existing editor viewport; editing and scrolling keep separate actions. */
7public fun SemanticsHandle.updateScrollBar(
8 host: TextEditHost,
9 orientation: SemanticOrientation,
10 lineStep: Double = 40.0,
11 properties: SemanticProperties = SemanticProperties(),
12 relations: SemanticRelations = SemanticRelations()
13) {
14 host.checkOpen()
15 updateScrollBar(host.viewport, orientation, lineStep, properties, relations)