void onClick( Control* control, int mbm ) { ImageControl* imageControl = dynamic_cast<ImageControl*>(control); imageControl->setRotation( imageControl->getRotation() + 10.0f ); }