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 intensity
ushort greenThe green component of the color
ushort blueThe blue component of the color
Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
void * boxCopy() nothrow
gdk.color.Color copy() nothrowMakes a copy of a #GdkColor.
bool equal(gdk.color.Color colorb) nothrowCompares two colors.
uint hash() nothrowA hash function suitable for using for a hash table that stores #GdkColors. Returns: The hash function applied to color
string toString_() nothrowReturns 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) static nothrowParses a textual specification of a color and fill in the red, green, and blue fields of a #GdkColor.