Skip to contents

Scroll panel control, returns scroll offset and view rectangle.

Usage

gui_scroll_panel(bounds, text, content, scroll, view)

Arguments

bounds

A rectangle.

text

A string.

content

A rectangle (content area).

scroll

A numeric vector of length 2 (current scroll offset).

view

A rectangle (current view area).

Value

A list with result (integer), scroll (numeric vector of length 2), and view (rectangle).

Examples

if (FALSE) {
gui_scroll_panel(
  rectangle(10, 10, 200, 200), "Panel",
  rectangle(0, 0, 400, 400), c(0, 0),
  rectangle(0, 0, 200, 200)
)
}