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:guint32For allocated colors, the pixel value used to draw this color on the screen. Not used anymore.
red:guint16The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
green:guint16The green component of the color.
blue:guint16The 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_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