Navigation
Synopsis Define interactive behaviour when the mouse pointer enters the figure.
Function FProperty onMouseEnter(void () cb)
Description Execute callback cb when the mouse pointer enters the figure. See also onMouseExit.
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);
mouseenter
Pitfalls Unfortunately we cannot show an interactive version here, try it out in Rascal yourself.
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.