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

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.

Stops the context after the next update.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.