Class

GdkVisual

Description [src]

final class Gdk.Visual : GObject.Object {
  /* No available fields */
}

A GdkVisual contains information about a particular visual.

Hierarchy

hierarchy this GdkVisual ancestor_0 GObject ancestor_0--this

Ancestors

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 since: 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 since: 3.22

gdk_visual_get_best_type

Return the best available visual type for the default GDK screen.

Deprecated since: 3.22

gdk_visual_get_best_with_both

Combines gdk_visual_get_best_with_depth() and gdk_visual_get_best_with_type().

Deprecated since: 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 since: 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 since: 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 since: 3.22

Instance methods

gdk_visual_get_bits_per_rgb

Returns the number of significant bits per red, green and blue value.

Available since: 2.22

Deprecated since: 3.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.

Available since: 2.22

gdk_visual_get_byte_order

Returns the byte order of this visual.

Available since: 2.22

Deprecated since: 3.22

gdk_visual_get_colormap_size

Returns the size of a colormap for this visual.

Available since: 2.22

Deprecated since: 3.22

gdk_visual_get_depth

Returns the bit depth of this visual.

Available 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.

Available 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.

Available since: 2.22

gdk_visual_get_screen

Gets the screen to which this visual belongs.

Available since: 2.2

gdk_visual_get_visual_type

Returns the type of visual this is (PseudoColor, TrueColor, etc).

Available since: 2.22

Methods inherited from GObject (42)

Signals

Signals inherited from GObject (1)