[][src]Struct qt_gui::q_pixel_format::ByteOrder

#[repr(transparent)]
pub struct ByteOrder(_);

This enum describes the ByteOrder of the pixel format. This enum is mostly ignored but have some use cases for YUV formats. BGR formats have their own color model, and should not be described by using the opposite endianness on an RGB format.

C++ enum: QPixelFormat::ByteOrder.

C++ documentation:

This enum describes the ByteOrder of the pixel format. This enum is mostly ignored but have some use cases for YUV formats. BGR formats have their own color model, and should not be described by using the opposite endianness on an RGB format.

Methods

impl ByteOrder[src]

pub fn to_int(&self) -> c_int[src]

impl ByteOrder[src]

pub const LittleEndian: ByteOrder[src]

The byte order is little endian. (C++ enum variant: LittleEndian = 0)

pub const BigEndian: ByteOrder[src]

The byte order is big endian. (C++ enum variant: BigEndian = 1)

pub const CurrentSystemEndian: ByteOrder[src]

This enum will not be stored, but is converted in the constructor to the endian enum that matches the enum of the current system. (C++ enum variant: CurrentSystemEndian = 2)

Trait Implementations

impl Clone for ByteOrder[src]

impl Copy for ByteOrder[src]

impl Debug for ByteOrder[src]

impl Eq for ByteOrder[src]

impl From<ByteOrder> for c_int[src]

impl From<i32> for ByteOrder[src]

impl PartialEq<ByteOrder> for ByteOrder[src]

impl StructuralEq for ByteOrder[src]

impl StructuralPartialEq for ByteOrder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.