pub struct CairoFsmStyle {
pub size: Coord2,
pub min_break: EnumMap<Axis2, isize>,
pub font: FontDescription,
pub fg: Color,
pub use_system_colors: bool,
pub object_spacing: isize,
pub font_resolution: f64,
}Fields§
§size: Coord2Page size.
min_break: EnumMap<Axis2, isize>Minimum cell size to allow breaking.
font: FontDescriptionThe basic font.
fg: ColorForeground color.
use_system_colors: boolUse system colors?
object_spacing: isizeVertical space between different output items.
font_resolution: f64Resolution, in units per inch, used for measuring font “points”:
-
72.0 if 1 pt is one device unit, e.g. for rendering to a surface created by cairo::PsSurface::new with its default transformation matrix of 72 units/inch.
-
96.0 is traditional for a screen-based surface.
Trait Implementations§
Source§impl Clone for CairoFsmStyle
impl Clone for CairoFsmStyle
Source§fn clone(&self) -> CairoFsmStyle
fn clone(&self) -> CairoFsmStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CairoFsmStyle
impl RefUnwindSafe for CairoFsmStyle
impl Send for CairoFsmStyle
impl Sync for CairoFsmStyle
impl Unpin for CairoFsmStyle
impl UnsafeUnpin for CairoFsmStyle
impl UnwindSafe for CairoFsmStyle
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
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