Struct

GdkColor

deprecated: 3.14 

Description [src]

struct GdkColor {
  guint32 pixel;
  guint16 red;
  guint16 green;
  guint16 blue;
}

A GdkColor is used to describe a color, similar to the XColor struct used in the X11 drawing API.

Structure members
pixel

For allocated colors, the pixel value used to draw this color on the screen. Not used anymore.

red

The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

green

The green component of the color.

blue

The blue component of the color.

Deprecated since: 3.14.

Use GdkRGBA.

Functions

gdk_color_parse

Parses a textual specification of a color and fill in the red, green, and blue fields of a GdkColor.

deprecated: 3.14 

Instance methods

gdk_color_copy

Makes a copy of a GdkColor.

deprecated: 3.14 

gdk_color_equal

Compares two colors.

deprecated: 3.14 

gdk_color_free

Frees a GdkColor created with gdk_color_copy().

deprecated: 3.14 

gdk_color_hash

A hash function suitable for using for a hash table that stores GdkColors.

deprecated: 3.14 

gdk_color_to_string

Returns a textual specification of color in the hexadecimal form “#rrrrggggbbbb” where “r”, “g” and “b” are hex digits representing the red, green and blue components respectively.

deprecated: 3.14 since: 2.12