gdk.visual
Module for [Visual] class
Types 3
classVisual : gobject.object.ObjectWrap
A #GdkVisual contains information about a particular visual.
Methods
VisualGidBuilder builder() static nothrowGet builder for [gdk.visual.Visual] Returns: New builder objectgdk.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 visualint 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 depthgdk.types.VisualType getBestType() static nothrowReturn the best available visual type for the default GDK screen. Returns: best visual typegdk.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 visualvoid 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...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.Fluent builder implementation template for gdk.visual.Visual
Fluent builder for gdk.visual.Visual
Methods