RGBA
Object Hierarchy:
Gdk.RGBA
Gdk.RGBA
Gdk.RGBA
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gdk_rgba_get_type ()" ) ]public struct RGBA
A RGBA is used to represent a (possibly translucent) color, in a way that is compatible with cairo’s notion of
color.
Content:
Methods:
public RGBA ? copy ()
Makes a copy of a RGBA .
public bool equal (RGBA p2)
Compares two RGBA colors.
public void free ()
Frees a RGBA created with
copy
public uint hash ()
A hash function suitable for using for a hash table that stores
RGBA s.
public bool parse (string spec)
Parses a textual representation of a color, filling in the red
,
green
, blue
and alpha
fields of the this RGBA
.
public string to_string ()
Returns a textual specification of this in
the form `rgb(r,g,b)` or `rgba(r g,b,a)`, where “r”, “g”, “b” and “a” represent the red, green, blue and alpha values
respectively.
Fields: