Color

The pango.color.Color structure is used to represent a color in an uncalibrated RGB color-space.

Constructors

this
this(ushort red, ushort green, ushort blue)

Create a color.Color boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
copy
pango.color.Color copy()

Creates a copy of src.

parse
bool parse(string spec)

Fill in the fields of a color from a string specification.

parseWithAlpha
bool parseWithAlpha(ushort alpha, string spec)

Fill in the fields of a color from a string specification.

self
Color self()

Returns this, for use in with statements.

toString_
string toString_()

Returns a textual specification of color.

Properties

blue
ushort blue [@property getter]

Get field blue.

blue
ushort blue [@property setter]

Set field blue.

gType
GType gType [@property getter]
green
ushort green [@property getter]

Get field green.

green
ushort green [@property setter]

Set field green.

red
ushort red [@property getter]

Get field red.

red
ushort red [@property setter]

Set field red.

Static functions

getGType
GType getGType()

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.