pub struct FullOutput {
pub platform_output: PlatformOutput,
pub textures_delta: TexturesDelta,
pub shapes: Vec<ClippedShape>,
pub pixels_per_point: f32,
pub viewport_output: BTreeMap<ViewportId, ViewportOutput>,
}egui only.Expand description
What egui emits each frame from crate::Context::run_ui.
The backend should use this.
Fields§
§platform_output: PlatformOutputNon-rendering related output.
textures_delta: TexturesDeltaTexture changes since last frame (including the font texture).
The backend needs to apply crate::TexturesDelta::push before painting,
and free any texture in crate::TexturesDelta::free after painting.
It is assumed that all egui viewports share the same painter and texture namespace.
shapes: Vec<ClippedShape>What to paint.
You can use crate::Context::tessellate to turn this into triangles.
pixels_per_point: f32The number of physical pixels per logical ui point, for the viewport that was updated.
You can pass this to crate::Context::tessellate together with Self::shapes.
viewport_output: BTreeMap<ViewportId, ViewportOutput>All the active viewports, including the root.
It is up to the integration to spawn a native window for each viewport, and to close any window that no longer has a viewport in this map.
Implementations§
Source§impl FullOutput
impl FullOutput
Sourcepub fn append(&mut self, newer: FullOutput)
pub fn append(&mut self, newer: FullOutput)
Add on new output.
Sourcepub fn drop_without_applying_deltas(self)
pub fn drop_without_applying_deltas(self)
epaint::textures::TexturesDelta will panic when dropped with still unapplied deltas,
this is a helper to clear the deltas.
Trait Implementations§
Source§impl Clone for FullOutput
impl Clone for FullOutput
Source§fn clone(&self) -> FullOutput
fn clone(&self) -> FullOutput
1.0.0 (const: unstable) · 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
Auto Trait Implementations§
impl !RefUnwindSafe for FullOutput
impl !UnwindSafe for FullOutput
impl Forget for FullOutput
impl Freeze for FullOutputwhere
*const u8 is !null: Freeze,
PhantomData<OutputCommand>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
PhantomData<OutputEvent>: Freeze,
PhantomData<(NodeId, Node)>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<RepaintCause>: Freeze,
PhantomData<(TextureId, SmallVec<[ImageDelta; 1]>)>: Freeze,
PhantomData<(TextureId, ())>: Freeze,
PhantomData<ClippedShape>: Freeze,
*const LeafNode<ViewportId, ViewportOutput> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ViewportId, ViewportOutput)>>: Freeze,
impl Move for FullOutput
impl Send for FullOutputwhere
RawVecInner: Send,
Arc<[u8]>: Send,
BoxRaw<Affine>: Send,
BoxRaw<TextSelection>: Send,
&'static str: Send,
String: Send,
RawTable<(TextureId, SmallVec<[ImageDelta; 1]>)>: Send,
RawTable<(TextureId, ())>: Send,
Arc<dyn Fn(Rect, Pos2) -> Color32 + Sync + Send>: Send,
Arc<Brush>: Send,
Arc<Galley>: Send,
Arc<Mesh>: Send,
Arc<dyn Any + Sync + Send>: Send,
NodeRef<Owned, ViewportId, ViewportOutput, LeafOrInternal>: Send,
BoxRaw<(ViewportId, ViewportOutput)>: Send,
impl Sync for FullOutputwhere
RawVecInner: Sync,
Arc<[u8]>: Sync,
BoxRaw<Affine>: Sync,
BoxRaw<TextSelection>: Sync,
String: Sync,
RawTable<(TextureId, SmallVec<[ImageDelta; 1]>)>: Sync,
RawTable<(TextureId, ())>: Sync,
Arc<dyn Fn(Rect, Pos2) -> Color32 + Sync + Send>: Sync,
Arc<Brush>: Sync,
Arc<Galley>: Sync,
Arc<Mesh>: Sync,
Arc<dyn Any + Sync + Send>: Sync,
NodeRef<Owned, ViewportId, ViewportOutput, LeafOrInternal>: Sync,
BoxRaw<(ViewportId, ViewportOutput)>: Sync,
impl Unpin for FullOutputwhere
*const u8 is !null: Unpin,
Arc<[u8]>: Unpin,
Box<Affine>: Unpin,
Box<TextSelection>: Unpin,
&'static str: Unpin,
String: Unpin,
Arc<ColorImage>: Unpin,
*const ImageDelta is !null: Unpin,
ImageDelta: Unpin,
Arc<dyn Fn(Rect, Pos2) -> Color32 + Sync + Send>: Unpin,
Arc<Brush>: Unpin,
Arc<Galley>: Unpin,
Arc<Mesh>: Unpin,
Arc<dyn Any + Sync + Send>: Unpin,
*const LeafNode<ViewportId, ViewportOutput> is !null: Unpin,
Box<(ViewportId, ViewportOutput)>: Unpin,
impl UnsafeUnpin for FullOutputwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<OutputCommand>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
PhantomData<OutputEvent>: UnsafeUnpin,
PhantomData<(NodeId, Node)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<RepaintCause>: UnsafeUnpin,
PhantomData<(TextureId, SmallVec<[ImageDelta; 1]>)>: UnsafeUnpin,
PhantomData<(TextureId, ())>: UnsafeUnpin,
PhantomData<ClippedShape>: UnsafeUnpin,
*const LeafNode<ViewportId, ViewportOutput> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ViewportId, ViewportOutput)>>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more