~ubuntu-branches/ubuntu/lucid/libgdata/lucid-proposed

« back to all changes in this revision

Viewing changes to gdata/gdata-types.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2009-07-21 07:49:53 UTC
  • Revision ID: james.westby@ubuntu.com-20090721074953-5xapawumhib89i1t
Tags: upstream-0.4.0
Import upstream version 0.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 
2
/*
 
3
 * GData Client
 
4
 * Copyright (C) Philip Withnall 2008-2009 <philip@tecnocode.co.uk>
 
5
 *
 
6
 * GData Client is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * GData Client is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with GData Client.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
 
 
20
#include <glib.h>
 
21
 
 
22
#ifndef GDATA_TYPES_H
 
23
#define GDATA_TYPES_H
 
24
 
 
25
G_BEGIN_DECLS
 
26
 
 
27
#define GDATA_TYPE_G_TIME_VAL (gdata_g_time_val_get_type ())
 
28
GType gdata_g_time_val_get_type (void) G_GNUC_CONST;
 
29
 
 
30
/**
 
31
 * GDataColor:
 
32
 * @red: red color intensity, from 0–255
 
33
 * @green: green color intensity, from 0–255
 
34
 * @blue: blue color intensity, from 0–255
 
35
 *
 
36
 * Describes a color, such as used in the Google Calendar interface to
 
37
 * differentiate calendars.
 
38
 **/
 
39
typedef struct {
 
40
        guint16 red;
 
41
        guint16 green;
 
42
        guint16 blue;
 
43
} GDataColor;
 
44
 
 
45
#define GDATA_TYPE_COLOR (gdata_color_get_type ())
 
46
GType gdata_color_get_type (void) G_GNUC_CONST;
 
47
gboolean gdata_color_from_hexadecimal (const gchar *hexadecimal, GDataColor *color);
 
48
gchar *gdata_color_to_hexadecimal (GDataColor *color) G_GNUC_WARN_UNUSED_RESULT;
 
49
 
 
50
G_END_DECLS
 
51
 
 
52
#endif /* !GDATA_TYPES_H */