Function SDLWindow.postEvent

post event to handle in UI thread (this method can be used from background thread)

override void postEvent(
  CustomEvent event
);