Visual
Object Hierarchy:
Description:
A Visual contains information about a particular visual.
Namespace: Gdk
Package: gdk-3.0
Content:
Static methods:
- public static unowned Visual get_best ()
Get the visual with the most available colors for the default GDK screen.
- public static int get_best_depth ()
Get the best available depth for the default GDK screen.
- public static VisualType get_best_type ()
Return the best available visual type for the default GDK screen.
- public static unowned Visual? get_best_with_both (int depth, VisualType visual_type)
Combines get_best_with_depth and get_best_with_type.
- public static unowned Visual get_best_with_depth (int depth)
Get the best visual with depth
depth
for the default GDK screen. - public static unowned Visual get_best_with_type (VisualType visual_type)
Get the best visual of the given
visual_type
for the default GDK screen. - public static unowned Visual get_system ()
Get the system’s default visual for the default GDK screen.
Creation methods:
- protected Visual ()
Methods:
- public int get_bits_per_rgb ()
Returns the number of significant bits per red, green and blue value.
- public void get_blue_pixel_details (out uint32 mask, out int shift, out int precision)
Obtains values that are needed to calculate blue pixel values in TrueColor and DirectColor.
- public ByteOrder get_byte_order ()
Returns the byte order of this visual.
- public int get_colormap_size ()
Returns the size of a colormap for this visual.
- public int get_depth ()
Returns the bit depth of this visual.
- public void get_green_pixel_details (out uint32 mask, out int shift, out int precision)
Obtains values that are needed to calculate green pixel values in TrueColor and DirectColor.
- public void get_red_pixel_details (out uint32 mask, out int shift, out int precision)
Obtains values that are needed to calculate red pixel values in TrueColor and DirectColor.
- public unowned Screen get_screen ()
Gets the screen to which this visual belongs
- public VisualType get_visual_type ()
Returns the type of visual this is (PseudoColor, TrueColor, etc).
Inherited Members:
All known members inherited from class GLib.Object