Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.Color |
Struct : | Color |
Properties | Defined By | |
---|---|---|
blue : guint16
|
Pango.Color | |
green : guint16
|
Pango.Color | |
red : guint16
|
Pango.Color |
Method / Constructor | Defined By | |
---|---|---|
new Pango.Color
()
Create a new Pango.Color
Create a new Pango.Color
|
||
copy
()
:
Pango.Color
Creates a copy of src, which should be freed with
pango_color_free().
Creates a copy of src, which should be freed with
pango_color_free(). Primarily used by language bindings, not that useful otherwise (since colors can just be copied by assignment in C). be freed with pango_color_free(), or NULL if src was NULL.
|
Pango.Color | |
free
()
:
none
Frees a color allocated by pango_color_copy().
Frees a color allocated by pango_color_copy().
|
Pango.Color | |
Fill in the fields of a color from a string specification.
Fill in the fields of a color from a string specification. The
string can either one of a large set of standard names. (Taken from the X11 form '#rgb' '#rrggbb' '#rrrgggbbb' or '#rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the red, green, and blue components of the color, respectively. (White in the four forms is '#fff' '#ffffff' '#fffffffff' and '#ffffffffffff') otherwise false.
|
Pango.Color | |
to_string
()
:
String
Returns a textual specification of color in the hexadecimal form
the red, green, and blue components respectively.
Returns a textual specification of color in the hexadecimal form
the red, green, and blue components respectively.
|
Pango.Color |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango.Renderer
Method |
get_color
(RenderPart part)
:
Pango.Color
Gets the current rendering color for the specified part.
|
Pango.Renderer
Method |
set_color
(RenderPart part, Color color)
:
none
Sets the color for part of the rendering.
|
PangoXft.Renderer
Method |
set_default_color
(Color default_color)
:
none
Sets the default foreground color for a XftRenderer.
|