Debian Codegraph @

libcolord-gtk/cd-sample-window.h

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2010-2012 Richard Hughes <[email protected]>
4 *
5 * Licensed under the GNU Lesser General Public License Version 2.1
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #if !defined (__COLORD_GTK_H_INSIDE__) && !defined (CD_COMPILATION)
23 #error "Only <colord-gtk.h> can be included directly."
24 #endif
25
26 #ifndef __CD_SAMPLE_WINDOW_H
27 #define __CD_SAMPLE_WINDOW_H
28
29 #include <glib-object.h>
30 #include <gtk/gtk.h>
31 #include <colord.h>
32
33 G_BEGIN_DECLS
34
35 #define CD_TYPE_SAMPLE_WINDOW (cd_sample_window_get_type ())
36 #define CD_SAMPLE_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CD_TYPE_SAMPLE_WINDOW, CdSampleWindow))
37 #define CD_IS_SAMPLE_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CD_TYPE_SAMPLE_WINDOW))
38
39 typedef struct _CdSampleWindowPrivate CdSampleWindowPrivate;
40 typedef struct _CdSampleWindow CdSampleWindow;
41 typedef struct _CdSampleWindowClass CdSampleWindowClass;
42
43 struct _CdSampleWindow
44 {
45 GtkWindow parent;
46 CdSampleWindowPrivate *priv;
47 };
48
49 struct _CdSampleWindowClass
50 {
51 GtkWindowClass parent_class;
52 };
53
54 GType cd_sample_window_get_type (void);
55 GtkWindow *cd_sample_window_new (void);
56 void cd_sample_window_set_color (CdSampleWindow *sample_window,
57 const CdColorRGB *color);
58 void cd_sample_window_set_fraction (CdSampleWindow *sample_window,
59 gdouble fraction);
60
61 G_END_DECLS
62
63 #endif /* __CD_SAMPLE_WINDOW_H */
64