Enum i_slint_core::items::ImageRendering
source · #[repr(C)]
pub enum ImageRendering {
Smooth,
Pixelated,
}Expand description
This enum specifies how the source image will be scaled.
Variants§
Smooth
The image is scaled with a linear interpolation algorithm.
Pixelated
The image is scaled with the nearest neighbor algorithm.
Trait Implementations§
source§impl Clone for ImageRendering
impl Clone for ImageRendering
source§fn clone(&self) -> ImageRendering
fn clone(&self) -> ImageRendering
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 ImageRendering
impl Debug for ImageRendering
source§impl Default for ImageRendering
impl Default for ImageRendering
source§impl Display for ImageRendering
impl Display for ImageRendering
source§impl FromStr for ImageRendering
impl FromStr for ImageRendering
source§impl Hash for ImageRendering
impl Hash for ImageRendering
source§impl PartialEq<ImageRendering> for ImageRendering
impl PartialEq<ImageRendering> for ImageRendering
source§fn eq(&self, other: &ImageRendering) -> bool
fn eq(&self, other: &ImageRendering) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&str> for ImageRendering
impl TryFrom<&str> for ImageRendering
impl Copy for ImageRendering
impl Eq for ImageRendering
impl StructuralEq for ImageRendering
impl StructuralPartialEq for ImageRendering
Auto Trait Implementations§
impl RefUnwindSafe for ImageRendering
impl Send for ImageRendering
impl Sync for ImageRendering
impl Unpin for ImageRendering
impl UnwindSafe for ImageRendering
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