Struct rui::Context

source · []
pub struct Context {
    pub key_mods: KeyboardModifiers,
    pub window_title: String,
    pub fullscreen: bool,
    /* private fields */
}
Expand description

The Context stores all UI state. A user of the library shouldn’t have to interact with it directly.

Fields

key_mods: KeyboardModifiers

Keyboard modifiers state.

window_title: String

The current title of the window

fullscreen: bool

Are we fullscreen?

Implementations

Call this after the event queue is cleared.

Redraw the UI using wgpu.

Process a UI event.

Get menu commands.

Trait Implementations

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.