Struct egui::FullOutput
source · [−]pub struct FullOutput {
pub platform_output: PlatformOutput,
pub repaint_after: Duration,
pub textures_delta: TexturesDelta,
pub shapes: Vec<ClippedShape>,
}
Expand description
What egui emits each frame from crate::Context::run
.
The backend should use this.
Fields
platform_output: PlatformOutput
Non-rendering related output.
repaint_after: Duration
If Duration::is_zero()
, egui is requesting immediate repaint (i.e. on the next frame).
This happens for instance when there is an animation, or if a user has called Context::request_repaint()
.
If Duration
is greater than zero, egui wants to be repainted at or before the specified
duration elapses. when in reactive mode, egui spends forever waiting for input and only then,
will it repaint itself. this can be used to make sure that backend will only wait for a
specified amount of time, and repaint egui without any new input.
textures_delta: TexturesDelta
Texture changes since last frame (including the font texture).
The backend needs to apply crate::TexturesDelta::set
before painting,
and free any texture in crate::TexturesDelta::free
after painting.
shapes: Vec<ClippedShape>
What to paint.
You can use crate::Context::tessellate
to turn this into triangles.
Implementations
sourceimpl FullOutput
impl FullOutput
Trait Implementations
sourceimpl Clone for FullOutput
impl Clone for FullOutput
sourcefn clone(&self) -> FullOutput
fn clone(&self) -> FullOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for FullOutput
impl Default for FullOutput
sourcefn default() -> FullOutput
fn default() -> FullOutput
Returns the “default value” for a type. Read more
sourceimpl PartialEq<FullOutput> for FullOutput
impl PartialEq<FullOutput> for FullOutput
sourcefn eq(&self, other: &FullOutput) -> bool
fn eq(&self, other: &FullOutput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for FullOutput
Auto Trait Implementations
impl !RefUnwindSafe for FullOutput
impl Send for FullOutput
impl Sync for FullOutput
impl Unpin for FullOutput
impl !UnwindSafe for FullOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more