Color
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gdk_color_get_type ()" ) ]
[ Version ( deprecated = true , deprecated_since = "3.14" ) ]
public struct Color
Warning: Color is deprecated since 3.14.
A Color is used to describe a color, similar to the XColor struct used in the X11 drawing API.
Content:
Static methods:
Methods:
- public Color? copy ()
Makes a copy of a Color.
- public bool equal (Color colorb)
Compares two colors.
- public void free ()
Frees a Color created with
copy.
- public uint hash ()
A hash function suitable for using for a hash table that stores
Colors.
- public string to_string ()
Returns a textual specification of this
in the hexadecimal form “#rrrrggggbbbb” where “r”, “g” and “b” are hex digits representing the red, green and
blue components respectively.
Fields: