-
Cast constructor, converting any binary integer to a
VisualType
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
Each pixel value indexes a grayscale value directly.
Declaration
Swift
static let staticGray: GdkVisualType
-
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.
Declaration
Swift
static let grayscale: GdkVisualType
-
Each pixel value is an index into a predefined, unmodifiable color map that maps pixel values into RGB values.
Declaration
Swift
static let staticColor: GdkVisualType
-
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.
Declaration
Swift
static let pseudoColor: GdkVisualType
-
Each pixel value directly contains red, green, and blue components. Use
gdk_visual_get_red_pixel_details()
, etc, to obtain information about how the components are assembled into a pixel value.Declaration
Swift
static let trueColor: GdkVisualType
-
Each pixel value contains red, green, and blue components as for
GDK_VISUAL_TRUE_COLOR
, but the components are mapped via a color table into the final output table instead of being converted directly.Declaration
Swift
static let directColor: GdkVisualType