issue #2087: Adding Event::setUserData and Event::getUserData, making some methods inline.