gdk.visual

Module for [Visual] class

Types 3

A #GdkVisual contains information about a particular visual.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Visual self() nothrowReturns `this`, for use in `with` statements.
VisualGidBuilder builder() static nothrowGet builder for [gdk.visual.Visual] Returns: New builder object
gdk.visual.Visual getBest() static nothrowGet the visual with the most available colors for the default GDK screen. The return value should not be freed. Returns: best visual
int getBestDepth() static nothrowGet the best available depth for the default GDK screen. “Best” means “largest,” i.e. 32 preferred over 24 preferred over 8 bits per pixel. Returns: best available depth
gdk.types.VisualType getBestType() static nothrowReturn the best available visual type for the default GDK screen. Returns: best visual type
gdk.visual.Visual getBestWithBoth(int depth, gdk.types.VisualType visualType) static nothrowCombines [gdk.visual.Visual.getBestWithDepth] and [gdk.visual.Visual.getBestWithType].
gdk.visual.Visual getBestWithDepth(int depth) static nothrowGet the best visual with depth depth for the default GDK screen. Color visuals and visuals with mutable colormaps are preferred over grayscale or fixed-colormap visuals. The return value should not...
gdk.visual.Visual getBestWithType(gdk.types.VisualType visualType) static nothrowGet the best visual of the given visual_type for the default GDK screen. Visuals with higher color depths are considered better. The return value should not be freed. null may be returned if no vis...
gdk.visual.Visual getSystem() static nothrowGet the system’s default visual for the default GDK screen. This is the visual for the root window of the display. The return value should not be freed. Returns: system visual
int getBitsPerRgb() nothrowReturns the number of significant bits per red, green and blue value.
void getBluePixelDetails(out uint mask, out int shift, out int precision) nothrowObtains values that are needed to calculate blue pixel values in TrueColor and DirectColor. The “mask” is the significant bits within the pixel. The “shift” is the number of bits left we mu...
gdk.types.ByteOrder getByteOrder() nothrowReturns the byte order of this visual.
int getColormapSize() nothrowReturns the size of a colormap for this visual.
int getDepth() nothrowReturns the bit depth of this visual. Returns: The bit depth of this visual.
void getGreenPixelDetails(out uint mask, out int shift, out int precision) nothrowObtains values that are needed to calculate green pixel values in TrueColor and DirectColor. The “mask” is the significant bits within the pixel. The “shift” is the number of bits left we m...
void getRedPixelDetails(out uint mask, out int shift, out int precision) nothrowObtains values that are needed to calculate red pixel values in TrueColor and DirectColor. The “mask” is the significant bits within the pixel. The “shift” is the number of bits left we mus...
gdk.screen.Screen getScreen() nothrowGets the screen to which this visual belongs Returns: the screen to which this visual belongs.
gdk.types.VisualType getVisualType() nothrowReturns the type of visual this is (PseudoColor, TrueColor, etc). Returns: A #GdkVisualType stating the type of visual.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gdk.visual.Visual

Fluent builder for gdk.visual.Visual

Methods
Visual build() nothrowCreate object from builder. Returns: New object