Color
Object Hierarchy:
Gdk.Color
Gdk.Color
Gdk.Color
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
Color s.
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: