Compilation Units
Tagged Types
The Pango.Color.Pango_Color structure is used to represent a color in an uncalibrated RGB color-space.
function From_Object_Free
(B : not null access Pango_Color) return Pango_Color
Return the underlying object and free the pointer. This is meant to be used internally by GtkAda, and should not in general be called by user code.
function Get_Type return Glib.GType
type Pango_Color is record
Red : Guint16;
Green : Guint16;
Blue : Guint16;
end record;
The Pango.Color.Pango_Color structure is used to represent a color in an uncalibrated RGB color-space.
function Parse
(Self : access Pango_Color;
Spec : UTF8_String) return Boolean
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 CSS <ulink url="http://dev.w3.org/csswg/css-color/named-colors">specification</ulink>), or it can be a hexadecimal value in the 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')
a string specifying the new color
True if parsing of the specifier succeeded, otherwise false.
function Parse_With_Alpha
(Self : access Pango_Color;
Alpha : access Guint16 := null;
Spec : UTF8_String) return Boolean
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 CSS <ulink url="http://dev.w3.org/csswg/css-color/named-colors">specification</ulink>), or it can be a hexadecimal value in the 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') Additionally, parse strings of the form '#rgba', '#rrggbbaa', '#rrrrggggbbbbaaaa', if Alpha is not null, and set Alpha to the value specified by the hex digits for 'a'. If no alpha component is found in Spec, Alpha is set to 0xffff (for a solid color). Since: gtk+ 1.46
return location for alpha, or null
a string specifying the new color
True if parsing of the specifier succeeded, otherwise false.
function To_String (Self : Pango_Color) return UTF8_String
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. Since: gtk+ 1.16
a newly-allocated text string that must be freed with g_free.