pub enum Dimension {
Emu(u32),
Inches(f64),
Cm(f64),
Pt(f64),
Ratio(f64),
}Expand description
A flexible dimension that can be expressed in multiple units.
All variants resolve to EMU (English Metric Units) at render time.
Ratio is relative to a reference dimension (slide width for x/width, slide height for y/height).
Variants§
Emu(u32)
Absolute value in EMU (English Metric Units)
Inches(f64)
Value in inches (1 inch = 914400 EMU)
Cm(f64)
Value in centimeters (1 cm = 360000 EMU)
Pt(f64)
Value in points (1 pt = 12700 EMU)
Ratio(f64)
Ratio of reference dimension (0.0–1.0). For x/width, reference is slide width; for y/height, slide height.
Implementations§
Source§impl Dimension
impl Dimension
Trait Implementations§
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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