|  |  |  | GData Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <gdata/gdata-types.h>
                    GDataColor;
gboolean            gdata_color_from_hexadecimal        (const gchar *hexadecimal,
                                                         GDataColor *color);
gchar *             gdata_color_to_hexadecimal          (GDataColor *color);
The structures here are used haphazardly across the library, describing various small data types.
typedef struct {
	guint16 red;
	guint16 green;
	guint16 blue;
} GDataColor;
Describes a color, such as used in the Google Calendar interface to differentiate calendars.
gboolean gdata_color_from_hexadecimal (const gchar *hexadecimal,GDataColor *color);
Parses hexadecimal and returns a GDataColor describing it in color.
hexadecimal should be in the form #,
where rrggbbrr is a two-digit hexadecimal red intensity value, gg is green
and bb is blue. The hash is optional.
| 
 | a hexadecimal color string | 
| 
 | a GDataColor | 
| Returns : | TRUEon success,FALSEotherwise | 
gchar *             gdata_color_to_hexadecimal          (GDataColor *color);
Returns a string describing color in hexadecimal form; in the form #, where rrgg
bbrr is a two-digit hexadecimal red intensity value,
gg is green and bb is blue. The hash is always present.
| 
 | a GDataColor | 
| Returns : | the color string; free with g_free() | 
Since 0.3.0