pub struct ExportOptions {
pub width: f32,
pub height: f32,
pub scale: f32,
pub transparent: bool,
}Expand description
Export settings.
Fields§
§width: f32Width in points (SVG user units).
height: f32Height in points.
scale: f32PNG pixels per point (2 = retina-sharp).
transparent: boolLeave the area around the data frame transparent instead of the theme’s background.
Implementations§
Source§impl ExportOptions
impl ExportOptions
Sourcepub fn for_preset(preset: ExportPreset) -> Self
pub fn for_preset(preset: ExportPreset) -> Self
The screen size, 2× scale, opaque background.
Trait Implementations§
Source§impl Clone for ExportOptions
impl Clone for ExportOptions
impl Copy for ExportOptions
Source§impl Debug for ExportOptions
impl Debug for ExportOptions
Source§impl Default for ExportOptions
impl Default for ExportOptions
Source§impl PartialEq for ExportOptions
impl PartialEq for ExportOptions
impl StructuralPartialEq for ExportOptions
Auto Trait Implementations§
impl Forget for ExportOptions
impl Freeze for ExportOptions
impl Move for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnsafeUnpin for ExportOptions
impl UnwindSafe for ExportOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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