![]() |
|
Navigation |
Synopsis Define interactive behaviour when the mouse pointer enters the figure.
Function
FProperty onMouseEnter(void () cb)
Examples
c = false; b = box(fillColor(Color () { return c ? color("red") : color("green"); }), onMouseEnter(void () { c = true; }), onMouseExit(void () { c = false ; }) ,shrink(0.5)); render(b); ![]()
Pitfalls Unfortunately we cannot show an interactive version here, try it out in Rascal yourself.
![]() |