pub enum IconScaleType {
Anamorphic,
Proportional,
}
Expand description
How the icon in a push button field should be scaled.
Variants§
Anamorphic
Scale the icon to fill the annotation rectangle exactly, without regard to its original aspect ratio (ratio of width to height).
Proportional
Scale the icon to fit the width or height of the annotation rectangle while maintaining the icon’s original aspect ratio. If the required horizontal and vertical scaling factors are different, use the smaller of the two, centering the icon within the annotation rectangle in the other dimension.
Trait Implementations§
source§impl Clone for IconScaleType
impl Clone for IconScaleType
source§fn clone(&self) -> IconScaleType
fn clone(&self) -> IconScaleType
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IconScaleType
impl Debug for IconScaleType
source§impl Hash for IconScaleType
impl Hash for IconScaleType
source§impl PartialEq for IconScaleType
impl PartialEq for IconScaleType
impl Copy for IconScaleType
impl Eq for IconScaleType
impl StructuralPartialEq for IconScaleType
Auto Trait Implementations§
impl Freeze for IconScaleType
impl RefUnwindSafe for IconScaleType
impl Send for IconScaleType
impl Sync for IconScaleType
impl Unpin for IconScaleType
impl UnwindSafe for IconScaleType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)