pub struct IconFit {
pub scale_type: IconScaleType,
pub scale_when: IconScaleWhen,
pub align_x: f64,
pub align_y: f64,
pub fit_bounds: bool,
}Expand description
Icon fit parameters
Fields§
§scale_type: IconScaleTypeScale type
scale_when: IconScaleWhenScale when type
align_x: f64Horizontal alignment (0.0 = left, 1.0 = right)
align_y: f64Vertical alignment (0.0 = bottom, 1.0 = top)
fit_bounds: boolFit to bounds ignoring aspect ratio
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IconFit
impl RefUnwindSafe for IconFit
impl Send for IconFit
impl Sync for IconFit
impl Unpin for IconFit
impl UnsafeUnpin for IconFit
impl UnwindSafe for IconFit
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