Color

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

More...

Members

Functions

copy
gdk.color.Color copy()

Makes a copy of a #GdkColor.

equal
bool equal(gdk.color.Color colorb)

Compares two colors.

hash
uint hash()

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

toString_
string 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.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
parse
bool parse(string spec, gdk.color.Color color)

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

Variables

blue
ushort blue;

The blue component of the color

green
ushort green;

The green component of the color

pixel
uint pixel;

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

red
ushort red;

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

Detailed Description

Deprecated: Use #GdkRGBA