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, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | #ifndef __GTK_CSS_PROVIDER_H__ |
19 | #define __GTK_CSS_PROVIDER_H__ |
20 | |
21 | #include <gio/gio.h> |
22 | #include <gtk/css/gtkcss.h> |
23 | |
24 | G_BEGIN_DECLS |
25 | |
26 | #define GTK_TYPE_CSS_PROVIDER (gtk_css_provider_get_type ()) |
27 | #define GTK_CSS_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_CSS_PROVIDER, GtkCssProvider)) |
28 | #define GTK_IS_CSS_PROVIDER(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_CSS_PROVIDER)) |
29 | |
30 | typedef struct _GtkCssProvider GtkCssProvider; |
31 | typedef struct _GtkCssProviderClass GtkCssProviderClass; |
32 | typedef struct _GtkCssProviderPrivate GtkCssProviderPrivate; |
33 | |
34 | struct _GtkCssProvider |
35 | { |
36 | GObject parent_instance; |
37 | }; |
38 | |
39 | |
40 | GDK_AVAILABLE_IN_ALL |
41 | GType gtk_css_provider_get_type (void) G_GNUC_CONST; |
42 | |
43 | GDK_AVAILABLE_IN_ALL |
44 | GtkCssProvider * gtk_css_provider_new (void); |
45 | |
46 | GDK_AVAILABLE_IN_ALL |
47 | char * gtk_css_provider_to_string (GtkCssProvider *provider); |
48 | |
49 | GDK_AVAILABLE_IN_ALL |
50 | void gtk_css_provider_load_from_data (GtkCssProvider *css_provider, |
51 | const char *data, |
52 | gssize length); |
53 | GDK_AVAILABLE_IN_ALL |
54 | void gtk_css_provider_load_from_file (GtkCssProvider *css_provider, |
55 | GFile *file); |
56 | GDK_AVAILABLE_IN_ALL |
57 | void gtk_css_provider_load_from_path (GtkCssProvider *css_provider, |
58 | const char *path); |
59 | |
60 | GDK_AVAILABLE_IN_ALL |
61 | void gtk_css_provider_load_from_resource (GtkCssProvider *css_provider, |
62 | const char *resource_path); |
63 | |
64 | GDK_AVAILABLE_IN_ALL |
65 | void gtk_css_provider_load_named (GtkCssProvider *provider, |
66 | const char *name, |
67 | const char *variant); |
68 | |
69 | G_END_DECLS |
70 | |
71 | #endif /* __GTK_CSS_PROVIDER_H__ */ |
72 | |