pub struct Ui<C: 'static + Component> { /* fields omitted */ }
Expand description
Wrapper for Ui that adds wgpu rendering.
Requires the “wgpu” feature.
Constructs a new Ui. Returns an error if the style fails to load.
Draw the ui to a RenderPass.
The device must be the same as the one passed to new().
The render_pass render target must be compatible with the texture_format passed to new.
Updates the root component with a message.
If the ui has any pending futures internally, they are polled using the waker.
Returns output messages from the root component if the update or the poll yielded any.
It’s up to the user to make sure that the waker will schedule a call to poll() on this Ui.
Handles a ui Event.
If the ui has any pending futures internally, they are polled using the waker.
Returns output messages from the root component if the event or the poll yielded any.
It’s up to the user to make sure that the waker will schedule a call to poll() on this Ui.
If the ui has any pending futures internally, this method will poll them using the waker.
Returns output messages from the root component if the poll yielded any.
It’s up to the user to make sure that the waker will schedule another call to poll().
Resizes the viewport.
This forces the view to be rerendered.
Returns true if the ui needs to be redrawn. If the ui doesn’t need to be redrawn the
Commands from the last draw may be used again.
The resulting type after dereferencing.
Mutably dereferences the value.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T> Downcast<T> for T
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. 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.
The type returned in the event of a conversion error.