Struct nannou_egui::Egui [−][src]
pub struct Egui { /* fields omitted */ }
Expand description
All egui
-related state for a single window.
Includes the context, a renderer, and an input tracker.
For multi-window user interfaces, you will need to create an instance of this type per-window.
Implementations
Construct the Egui
from its parts.
The given device
must be the same used to create the queue to which the Egui’s render
commands will be submitted.
The target_format
, target_msaa_samples
, window_scale_factor
and window_size_pixels
must match the window to which the UI will be drawn.
The context
should have the desired initial styling and fonts already set.
Construct a Egui
associated with the given window.
Handles a raw window event, tracking all input and events relevant to the UI as necessary.
Set the elapsed time since the Egui
app started running.
Begin describing a UI frame.
Draws the contents of the inner context
to the given frame.
pub fn with_epi_frame<F>(&mut self, proxy: Proxy, f: F) where
F: FnOnce(&CtxRef, &mut Frame<'_>),
pub fn with_epi_frame<F>(&mut self, proxy: Proxy, f: F) where
F: FnOnce(&CtxRef, &mut Frame<'_>),
Provide access to an epi::Frame
within the given function.
This method is primarily used for apps based on the epi
interface.
Auto Trait Implementations
impl !RefUnwindSafe for Egui
impl !UnwindSafe for Egui
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more