logo
pub struct MaterialApplicationHost<T> {
    pub painter: Rc<Painter>,
    /* private fields */
}

Fields

painter: Rc<Painter>

Trait Implementations

Initialization error that might occur.

Resize the application when the framebuffer gets resized. Read more

Render the application at a given time. Read more

Notify the application has been suspended.

Notify the application has been resumed.

The position of the window has changed. Contains the window’s new position.

The window has been requested to close. Read more

The window has been destroyed.

A file has been dropped into the window. Read more

A file is being hovered over the window. Read more

A file was hovered, but has exited the window. Read more

The window received a unicode character.

The window gained or lost focus. Read more

An event from the keyboard has been received. Read more

The keyboard modifiers have changed. Read more

The cursor has moved on the window. Read more

The cursor has entered the window.

The cursor has left the window.

A mouse wheel movement or touchpad scroll occurred.

An mouse button press has been received.

Touchpad pressure event. Read more

Motion on some analog axis. May report data redundant to other, more specific events.

Touch event has been received

The window’s scale factor has changed. Read more

The system window theme has changed. Read more

Analogue of winit::MainEventsCleared

Used to route winit :: WindowEvent to external handlers (third party UI handlers, etc.). Called before internal matching Read more

Used to route winit :: WindowEvent to external handlers (third party UI handlers, etc.). Called after internal matching Read more

Initialize the application with a given store. Read more

Context carried around with the application.

Set param

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.

Typed getter

Inspect the context.

Inspect the context.

Inspect the context.

Calls U::from(self).

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

Convert into color

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

Sets value as a parameter of self.

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.