Struct qt_core::TransformationMode
source · pub struct TransformationMode(/* private fields */);
Expand description
This enum type defines whether image transformations (e.g., scaling) should be smooth or not.
C++ enum: Qt::TransformationMode
.
This enum type defines whether image transformations (e.g., scaling) should be smooth or not.
See also QImage::scaled().
Implementations§
source§impl TransformationMode
impl TransformationMode
sourcepub const FastTransformation: TransformationMode = _
pub const FastTransformation: TransformationMode = _
The transformation is performed quickly, with no smoothing. (C++ enum variant: FastTransformation = 0
)
sourcepub const SmoothTransformation: TransformationMode = _
pub const SmoothTransformation: TransformationMode = _
The resulting image is transformed using bilinear filtering. (C++ enum variant: SmoothTransformation = 1
)
Trait Implementations§
source§impl Clone for TransformationMode
impl Clone for TransformationMode
source§fn clone(&self) -> TransformationMode
fn clone(&self) -> TransformationMode
Returns a copy of the value. Read more
1.0.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 TransformationMode
impl Debug for TransformationMode
source§impl From<TransformationMode> for c_int
impl From<TransformationMode> for c_int
source§fn from(value: TransformationMode) -> Self
fn from(value: TransformationMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for TransformationMode
impl From<i32> for TransformationMode
source§impl PartialEq for TransformationMode
impl PartialEq for TransformationMode
source§fn eq(&self, other: &TransformationMode) -> bool
fn eq(&self, other: &TransformationMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TransformationMode
impl Eq for TransformationMode
impl StructuralEq for TransformationMode
impl StructuralPartialEq for TransformationMode
Auto Trait Implementations§
impl RefUnwindSafe for TransformationMode
impl Send for TransformationMode
impl Sync for TransformationMode
impl Unpin for TransformationMode
impl UnwindSafe for TransformationMode
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