Enum cogl::SubpixelOrder[][src]

#[non_exhaustive]
pub enum SubpixelOrder {
    Unknown,
    None,
    HorizontalRgb,
    HorizontalBgr,
    VerticalRgb,
    VerticalBgr,
    // some variants omitted
}

Some output devices (such as LCD panels) display colors by making each pixel consist of smaller “subpixels” that each have a particular color. By using knowledge of the layout of this subpixel components, it is possible to create image content with higher resolution than the pixel grid.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown

the layout of subpixel components for the device is unknown.

None

the device displays colors without geometrically-separated subpixel components, or the positioning or colors of the components do not match any of the values in the enumeration.

HorizontalRgb

the device has horizontally arranged components in the order red-green-blue from left to right.

HorizontalBgr

the device has horizontally arranged components in the order blue-green-red from left to right.

VerticalRgb

the device has vertically arranged components in the order red-green-blue from top to bottom.

VerticalBgr

the device has vertically arranged components in the order blue-green-red from top to bottom.

Trait Implementations

impl Clone for SubpixelOrder[src]

impl Copy for SubpixelOrder[src]

impl Debug for SubpixelOrder[src]

impl Display for SubpixelOrder[src]

impl Eq for SubpixelOrder[src]

impl Hash for SubpixelOrder[src]

impl Ord for SubpixelOrder[src]

impl PartialEq<SubpixelOrder> for SubpixelOrder[src]

impl PartialOrd<SubpixelOrder> for SubpixelOrder[src]

impl StructuralEq for SubpixelOrder[src]

impl StructuralPartialEq for SubpixelOrder[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> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.