Class
GdkVisual
Description [src]
final class Gdk.Visual : GObject.Object
{
/* No available fields */
}
A GdkVisual
contains information about
a particular visual.
Functions
gdk_visual_get_best
Get the visual with the most available colors for the default GDK screen. The return value should not be freed.
deprecated: 3.22
gdk_visual_get_best_depth
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.
deprecated: 3.22
gdk_visual_get_best_type
Return the best available visual type for the default GDK screen.
deprecated: 3.22
gdk_visual_get_best_with_both
Combines gdk_visual_get_best_with_depth()
and gdk_visual_get_best_with_type().
deprecated: 3.22
gdk_visual_get_best_with_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 be freed. NULL
may be returned if no visual supports depth
.
deprecated: 3.22
gdk_visual_get_best_with_type
Get 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 visual has type
visual_type
.
deprecated: 3.22
gdk_visual_get_system
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.
deprecated: 3.22
Instance methods
gdk_visual_get_bits_per_rgb
Returns the number of significant bits per red, green and blue value.
deprecated: 3.22. since: 2.22
gdk_visual_get_blue_pixel_details
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 must shift a primary for it to be in position (according to the “mask”). Finally, “precision” refers to how much precision the pixel value contains for a particular primary.
since: 2.22
gdk_visual_get_colormap_size
Returns the size of a colormap for this visual.
deprecated: 3.22 since: 2.22
gdk_visual_get_green_pixel_details
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 must shift a primary for it to be in position (according to the “mask”). Finally, “precision” refers to how much precision the pixel value contains for a particular primary.
since: 2.22
gdk_visual_get_red_pixel_details
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 must shift a primary for it to be in position (according to the “mask”). Finally, “precision” refers to how much precision the pixel value contains for a particular primary.
since: 2.22
gdk_visual_get_visual_type
Returns the type of visual this is (PseudoColor, TrueColor, etc).
since: 2.22
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.