gdk.visual
Module for [Visual] class
Types 3
classVisual : gobject.object.ObjectWrap
A #GdkVisual contains information about a particular visual.
Methods
Visual self()Returns `this`, for use in `with` statements.VisualGidBuilder builder()Get builder for [gdk.visual.Visual] Returns: New builder objectgdk.visual.Visual getBest()Get the visual with the most available colors for the default GDK screen. The return value should not be freed. Returns: best visualint getBestDepth()Get 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 depthgdk.types.VisualType getBestType()Return the best available visual type for the default GDK screen. Returns: best visual typegdk.visual.Visual getBestWithBoth(int depth, gdk.types.VisualType visualType)Combines [gdk.visual.Visual.getBestWithDepth] and [gdk.visual.Visual.getBestWithType].gdk.visual.Visual getBestWithDepth(int depth)Get 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)Get the best visual of the given visualtype 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 visu...gdk.visual.Visual getSystem()Get 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 visualint getBitsPerRgb()Returns the number of significant bits per red, green and blue value.void getBluePixelDetails(out uint mask, out int shift, out int precision)Obtains 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()Returns the byte order of this visual.int getColormapSize()Returns the size of a colormap for this visual.int getDepth()Returns the bit depth of this visual. Returns: The bit depth of this visual.void getGreenPixelDetails(out uint mask, out int shift, out int precision)Obtains 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)Obtains 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()Gets the screen to which this visual belongs Returns: the screen to which this visual belongs.gdk.types.VisualType getVisualType()Returns the type of visual this is (PseudoColor, TrueColor, etc). Returns: A #GdkVisualType stating the type of visual.Fluent builder for [gdk.visual.Visual]
Methods
Visual build()