PgColor

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

Constructors

this
this(PangoColor* pangoColor, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

copy
PgColor copy()

Creates a copy of @src.

free
void free()

Frees a color allocated by pango_color_copy().

getPgColorStruct
PangoColor* getPgColorStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

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.

toString
string toString()

Returns a textual specification of @color.

Properties

blue
ushort blue [@property getter]
ushort blue [@property setter]

value of blue component

green
ushort green [@property getter]
ushort green [@property setter]

value of green component

red
ushort red [@property getter]
ushort red [@property setter]

value of red component

Static functions

getType
GType getType()

Variables

ownedRef
bool ownedRef;
Undocumented in source.
pangoColor
PangoColor* pangoColor;

the main Gtk struct

Meta