FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PixelFormat

    struct · ferroui-base · v0.5.0

    struct PixelFormat
    

    The format of the pixels of a bitmap or framebuffer.

    View source

    Members

    RGB565

    const RGB565: PixelFormat
    

    Source

    RGBA8888

    const RGBA8888: PixelFormat
    

    Source

    RGB32

    const RGB32: PixelFormat
    

    Source

    BGRA8888

    const BGRA8888: PixelFormat
    

    Source

    bits_per_pixel

    fn bits_per_pixel(self: &Self) -> u32
    

    The number of bits one pixel occupies.

    Source

    has_alpha

    fn has_alpha(self: &Self) -> bool
    

    Whether the format carries an alpha channel.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Display

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.