Enum piet::ScaleMode [−][src]
pub enum ScaleMode {
Fit,
Fill,
}
Expand description
Mappings from the unit square into a non-square rectangle.
Variants
The unit 1.0 is mapped to the smaller of width & height, but the mapped item may not cover the entire rectangle.
The unit 1.0 is mapped to the larger of width & height; some values on the other axis may extend outside the target rectangle.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ScaleMode
impl UnwindSafe for ScaleMode
Blanket Implementations
Mutably borrows from an owned value. Read more