Enum i_slint_core::graphics::PixelFormat
source · [−]#[repr(u8)]
pub enum PixelFormat {
Rgb,
Rgba,
RgbaPremultiplied,
AlphaMap,
}Expand description
The pixel format of a StaticTexture
Variants
Rgb
red, green, blue. 24bits.
Rgba
Red, green, blue, alpha. 32bits.
RgbaPremultiplied
Red, green, blue, alpha. 32bits. The color are premultiplied by alpha
AlphaMap
Alpha map. 8bits. Each pixel is an alpha value. The color is specified separately.
Implementations
sourceimpl PixelFormat
impl PixelFormat
Trait Implementations
sourceimpl Clone for PixelFormat
impl Clone for PixelFormat
sourcefn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PixelFormat
impl Debug for PixelFormat
sourceimpl PartialEq<PixelFormat> for PixelFormat
impl PartialEq<PixelFormat> for PixelFormat
sourcefn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
impl Copy for PixelFormat
impl StructuralPartialEq for PixelFormat
Auto Trait Implementations
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more