Method

GdkColorto_string

deprecated: 3.14 since: 2.12

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

Type: gchar*

A newly-allocated text string.

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