Enum gdk::VisualType [−][src]
#[non_exhaustive] pub enum VisualType { StaticGray, Grayscale, StaticColor, PseudoColor, TrueColor, DirectColor, // some variants omitted }
Expand description
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)
This enum is marked as non-exhaustive
Each pixel value indexes a grayscale value directly.
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.
Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.
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.
Each pixel value directly contains red, green,
and blue components. Use Visual::red_pixel_details()
, etc,
to obtain information about how the components are assembled into
a pixel value.
Each pixel value contains red, green, and blue
components as for TrueColor
, but the components are
mapped via a color table into the final output table instead of
being converted directly.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
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
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.