pub enum ResizeParameter {
Auto,
Cells(u32),
Pixels(u32),
WindowPercent(u32),
}Expand description
Unit to specify a dimension to resize the graphic.
Variants§
Auto
Dimension is computed from the original graphic dimensions.
Cells(u32)
Size is specified in number of grid cells.
Pixels(u32)
Size is specified in number pixels.
WindowPercent(u32)
Size is specified in a percent of the window.
Trait Implementations§
Source§impl Clone for ResizeParameter
impl Clone for ResizeParameter
Source§fn clone(&self) -> ResizeParameter
fn clone(&self) -> ResizeParameter
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 moreimpl Copy for ResizeParameter
Source§impl Debug for ResizeParameter
impl Debug for ResizeParameter
impl Eq for ResizeParameter
Source§impl PartialEq for ResizeParameter
impl PartialEq for ResizeParameter
impl StructuralPartialEq for ResizeParameter
Auto Trait Implementations§
impl Freeze for ResizeParameter
impl RefUnwindSafe for ResizeParameter
impl Send for ResizeParameter
impl Sync for ResizeParameter
impl Unpin for ResizeParameter
impl UnsafeUnpin for ResizeParameter
impl UnwindSafe for ResizeParameter
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