Method

GdkColorto_string

Declaration [src]

gchar*
gdk_color_to_string (
  const GdkColor* color
)

Description [src]

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.

The returned string can be parsed by gdk_color_parse().

Available since:2.12
Deprecated since:3.14

Use GdkRGBA.

Return value

Returns: utf8
 

A newly-allocated text string.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The string is a NUL terminated UTF-8 string.