Visual
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_visual_get_type ()" ) ]
public class Visual : Object
A Visual contains information about a particular visual.
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)
- 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:
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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref