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<AspectRatioMode> for AspectRatioMode
impl PartialEq<AspectRatioMode> 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 ==
.