Connector

Constructor

<process_id|expression> => dst

expression can be any logical or arithmetical expression. dst must be a property or a list of properties separated by comma.

Action

Copies the result of the left side to the destination property each time the left side is set.

The notation =:> is also a Connector. The difference is that there is a first copy on tree traversal.

Predefined children

None

Example


use core
use base
use display
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Rectangle r1 (0, 0, 100, 70, 0, 0)
  f.width => r1.width
  f.height / 2 => r1.height
}