Min
Constructor
Min <id> (double left, double right)
Action
On each change of value, compares left and right and puts the lower value in result.Predefined children
- DoubleProperty:
left
,right
,result
.
Example
use core
use base
use display
use gui
_main_
Component root {
Frame f ("myFrame", 0, 0, 500, 500)
FillColor _ (0, 0, 0)
Text t (50, 50, "myText")
Min min_x (100, 100)
f.move.x => min_x.left
min_x.result => t.x
}