Enum cacao::image::ResizeBehavior
source · [−]pub enum ResizeBehavior {
AspectFit,
AspectFill,
Stretch,
Center,
}
Expand description
Specifies resizing behavior for image drawing.
Variants
AspectFit
Fit to the aspect ratio.
AspectFill
Fill the aspect ratio.
Stretch
Stretch as necessary.
Center
Center and then let whatever else flow around it.
Implementations
sourceimpl ResizeBehavior
impl ResizeBehavior
Trait Implementations
sourceimpl Clone for ResizeBehavior
impl Clone for ResizeBehavior
sourcefn clone(&self) -> ResizeBehavior
fn clone(&self) -> ResizeBehavior
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResizeBehavior
impl Debug for ResizeBehavior
impl Copy for ResizeBehavior
Auto Trait Implementations
impl RefUnwindSafe for ResizeBehavior
impl Send for ResizeBehavior
impl Sync for ResizeBehavior
impl Unpin for ResizeBehavior
impl UnwindSafe for ResizeBehavior
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more