#[non_exhaustive]pub struct ChartImage {
pub size: [u32; 2],
pub primitives: Vec<ClippedPrimitive>,
pub textures_delta: TexturesDelta,
}Expand description
A complete offscreen frame for an egui renderer, at one pixel per point.
Upload textures_delta.set, draw primitives over transparent black at size, then
release the textures. The host owns GPU readback, PNG encoding and file/clipboard delivery.
This uses its own texture namespace; render with a dedicated egui renderer. Hosts must also
bind any user textures referenced by their image sources whose pixels were not supplied in
ImageExportOptions::textures before drawing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: [u32; 2]Exact output dimensions in pixels.
primitives: Vec<ClippedPrimitive>Tessellated chart, header, study panes and requested layout widgets.
textures_delta: TexturesDeltaTextures referenced by the primitives.
Auto Trait Implementations§
impl !RefUnwindSafe for ChartImage
impl !UnwindSafe for ChartImage
impl Freeze for ChartImage
impl Send for ChartImage
impl Sync for ChartImage
impl Unpin for ChartImage
impl UnsafeUnpin for ChartImage
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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