Navigation
Synopsis Define interactive mouse over behaviour.
Function FProperty mouseOver(Figure fig)
Description Show figure fig when the mouse hovers over the current figure.
Examples
public Figure stairs(int nr){
	props = (nr == 0) ? [] : [mouseOver(stairs(nr-1))];
	return box(props + 
        [ ( nr %2 == 0 )? left() : right(),
          resizable(false),size(100),fillColor("green"),valign(0.25) ]);
}
render(box(stairs(10),grow(1.2),bottom(),center()));
onkeydown
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.