]> Pileus Git - ~andy/gtk/blob - gtk/gtkcssprovider.h
Added GtkCssProvider.
[~andy/gtk] / gtk / gtkcssprovider.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_CSS_PROVIDER_H__
21 #define __GTK_CSS_PROVIDER_H__
22
23 #include <glib-object.h>
24
25 G_BEGIN_DECLS
26
27 #define GTK_TYPE_CSS_PROVIDER         (gtk_css_provider_get_type ())
28 #define GTK_CSS_PROVIDER(o)           (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_CSS_PROVIDER, GtkCssProvider))
29 #define GTK_CSS_PROVIDER_CLASS(c)     (G_TYPE_CHECK_CLASS_CAST    ((c), GTK_TYPE_CSS_PROVIDER, GtkCssProviderClass))
30 #define GTK_IS_CSS_PROVIDER(o)        (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_CSS_PROVIDER))
31 #define GTK_IS_CSS_PROVIDER_CLASS(c)  (G_TYPE_CHECK_CLASS_TYPE    ((c), GTK_TYPE_CSS_PROVIDER))
32 #define GTK_CSS_PROVIDER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS  ((o), GTK_TYPE_CSS_PROVIDER, GtkCssProviderClass))
33
34 typedef struct GtkCssProvider GtkCssProvider;
35 typedef struct GtkCssProviderClass GtkCssProviderClass;
36
37 struct GtkCssProvider
38 {
39   GObject parent_instance;
40 };
41
42 struct GtkCssProviderClass
43 {
44   GObjectClass parent_class;
45 };
46
47 GType gtk_css_provider_get_type (void) G_GNUC_CONST;
48
49 GtkCssProvider * gtk_css_provider_new (void);
50
51 gboolean         gtk_css_provider_load_from_data (GtkCssProvider *css_provider,
52                                                   const gchar    *data,
53                                                   gssize          length,
54                                                   GError         *error);
55 gboolean         gtk_css_provider_load_from_file (GtkCssProvider  *css_provider,
56                                                   GFile           *file,
57                                                   GError         **error);
58
59 G_END_DECLS
60
61 #endif /* __GTK_CSS_PROVIDER_H__ */