Polyline

Constructor

Polyline <id>

Action

Creates a new Polyline. It is a container to which must be appended a list of points.

Predefined children

points, that is the list of its points, bounding_box/x, bounding_box/y, bounding_box/width, bounding_box/height

Point

Constructor

Point <id> (double x, double y)

Action

Predefined children

x and y

Example


use core
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 400, 400)
  NoFill _
  Polyline _ {
    Point _(100, 90)
    Point _(50, 190)
    Point _(150, 190)
  }
}

run root
run syshook