Rectangle

Constructor

Rectangle <id> (double x, double y, double width, double height, double rx, double ry)

Action

Draws a rectangle with rounded corners if rx and/or ry are not null.

Predefined children

  • DoubleProperty: x, y, width, height, rx, ry.

Example


use core
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 400, 400)
  Rectangle r (100, 100, 100, 100, 5, 5)
}

run root
run syshook