gdk.color
Module for [Color] struct
struct Color
Types 1
structColor
A #GdkColor is used to describe a color, similar to the XColor struct used in the X11 drawing API.
Deprecated
Use #GdkRGBA
Fields
uint pixelFor allocated colors, the pixel value used to draw this color on the screen. Not used anymore.ushort redThe red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensityushort greenThe green component of the colorushort blueThe blue component of the colorMethods
void * boxCopy()gdk.color.Color copy()Makes a copy of a #GdkColor.bool equal(gdk.color.Color colorb)Compares two colors.uint hash()A hash function suitable for using for a hash table that stores #GdkColors. Returns: The hash function applied to colorstring toString_()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.bool parse(string spec, out gdk.color.Color color)Parses a textual specification of a color and fill in the red, green, and blue fields of a #GdkColor.