Struct egui::data::output::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§
source§impl FullOutput
impl FullOutput
Trait Implementations§
source§impl Clone for FullOutput
impl Clone for FullOutput
source§fn clone(&self) -> FullOutput
fn clone(&self) -> FullOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for FullOutput
impl Default for FullOutput
source§fn default() -> FullOutput
fn default() -> FullOutput
source§impl PartialEq<FullOutput> for FullOutput
impl PartialEq<FullOutput> for FullOutput
source§fn eq(&self, other: &FullOutput) -> bool
fn eq(&self, other: &FullOutput) -> bool
self
and other
values to be equal, and is used
by ==
.