Struct storm::Context [−][src]
pub struct Context { /* fields omitted */ }
Expand description
The main entry point into the engine context. All interactions with the context are managed by the API on this type.
Implementations
pub fn start<T: 'static + FnMut(Event, &mut Context)>(
desc: WindowSettings,
event_handler_creator: fn(_: &mut Context) -> T
) -> !
Sets the title of the window.
Gets the logical size of the window.
Gets the physical size of the window.
Sets the display mode of the window.
Prevents the update event from being sent for at least the duration. If a periodic wait is active, this wait will temporarily override only if it causes the next update event to happen later than the periodic wait would have.
Prevents the update event from being sent until at least the given instant. If a periodic wait is active, this wait will temporarily override only if it causes the next update event to happen later than the periodic wait would have.
Prevents the update event from being sent more frequently than the given duration. Set this to None to disable the periodic wait.