Struct cxx_qt_lib::AspectRatioMode
source · #[repr(transparent)]pub struct AspectRatioMode {
pub repr: i32,
}
Expand description
This enum type defines what happens to the aspect ratio when scaling an rectangle.
Fields§
§repr: i32
Implementations§
source§impl AspectRatioMode
impl AspectRatioMode
sourcepub const IgnoreAspectRatio: Self = _
pub const IgnoreAspectRatio: Self = _
The size is scaled freely. The aspect ratio is not preserved.
sourcepub const KeepAspectRatio: Self = _
pub const KeepAspectRatio: Self = _
The size is scaled to a rectangle as large as possible inside a given rectangle, preserving the aspect ratio.
sourcepub const KeepAspectRatioByExpanding: Self = _
pub const KeepAspectRatioByExpanding: Self = _
The size is scaled to a rectangle as small as possible outside a given rectangle, preserving the aspect ratio.
Trait Implementations§
source§impl Clone for AspectRatioMode
impl Clone for AspectRatioMode
source§impl ExternType for AspectRatioMode
impl ExternType for AspectRatioMode
source§impl PartialEq for AspectRatioMode
impl PartialEq for AspectRatioMode
source§fn eq(&self, other: &AspectRatioMode) -> bool
fn eq(&self, other: &AspectRatioMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AspectRatioMode
impl Eq for AspectRatioMode
impl StructuralPartialEq for AspectRatioMode
Auto Trait Implementations§
impl Freeze for AspectRatioMode
impl RefUnwindSafe for AspectRatioMode
impl Send for AspectRatioMode
impl Sync for AspectRatioMode
impl Unpin for AspectRatioMode
impl UnwindSafe for AspectRatioMode
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