Method

GdkVisualget_green_pixel_details

since: 2.22

Declaration [src]

void
gdk_visual_get_green_pixel_details (
  GdkVisual* visual,
  guint32* mask,
  gint* shift,
  gint* precision
)

Description [src]

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

Parameters

mask

Type: guint32*

A pointer to a #guint32 to be filled in, or NULL.

The argument will be set by the function.
The argument can be NULL.
shift

Type: gint*

A pointer to a #gint to be filled in, or NULL.

The argument will be set by the function.
The argument can be NULL.
precision

Type: gint*

A pointer to a #gint to be filled in, or NULL.

The argument will be set by the function.
The argument can be NULL.