[][src]Enum gdk::VisualType

#[non_exhaustive]pub enum VisualType {
    StaticGray,
    Grayscale,
    StaticColor,
    PseudoColor,
    TrueColor,
    DirectColor,
    // some variants omitted
}

A set of values that describe the manner in which the pixel values for a visual are converted into RGB values for display.

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.
StaticGray

Each pixel value indexes a grayscale value directly.

Grayscale

Each pixel is an index into a color map that maps pixel values into grayscale values. The color map can be changed by an application.

StaticColor

Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.

PseudoColor

Each pixel is an index into a color map that maps pixel values into rgb values. The color map can be changed by an application.

TrueColor

Each pixel value directly contains red, green, and blue components. Use Visual::get_red_pixel_details, etc, to obtain information about how the components are assembled into a pixel value.

DirectColor

Each pixel value contains red, green, and blue components as for VisualType::TrueColor, but the components are mapped via a color table into the final output table instead of being converted directly.

Trait Implementations

impl Clone for VisualType[src]

impl Copy for VisualType[src]

impl Debug for VisualType[src]

impl Display for VisualType[src]

impl Eq for VisualType[src]

impl<'a> FromValue<'a> for VisualType[src]

impl<'a> FromValueOptional<'a> for VisualType[src]

impl Hash for VisualType[src]

impl Ord for VisualType[src]

impl PartialEq<VisualType> for VisualType[src]

impl PartialOrd<VisualType> for VisualType[src]

impl SetValue for VisualType[src]

impl StaticType for VisualType[src]

impl StructuralEq for VisualType[src]

impl StructuralPartialEq for VisualType[src]

Auto Trait Implementations

impl RefUnwindSafe for VisualType

impl Send for VisualType

impl Sync for VisualType

impl Unpin for VisualType

impl UnwindSafe for VisualType

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> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

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

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.