1 | /* GTK - The GIMP Toolkit |
2 | * Copyright (C) 2010 Carlos Garnacho <[email protected]> |
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_SYMBOLIC_COLOR_H__ |
19 | #define __GTK_SYMBOLIC_COLOR_H__ |
20 | |
21 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
22 | #error "Only <gtk/gtk.h> can be included directly." |
23 | #endif |
24 | |
25 | #include <gdk/gdk.h> |
26 | #include <gtk/deprecated/gtkstyleproperties.h> |
27 | |
28 | G_BEGIN_DECLS |
29 | |
30 | #define GTK_TYPE_SYMBOLIC_COLOR (gtk_symbolic_color_get_type ()) |
31 | |
32 | GDK_DEPRECATED_IN_3_8 |
33 | GType gtk_symbolic_color_get_type (void) G_GNUC_CONST; |
34 | |
35 | GDK_DEPRECATED_IN_3_8 |
36 | GtkSymbolicColor * gtk_symbolic_color_new_literal (const GdkRGBA *color); |
37 | GDK_DEPRECATED_IN_3_8 |
38 | GtkSymbolicColor * gtk_symbolic_color_new_name (const gchar *name); |
39 | GDK_DEPRECATED_IN_3_8 |
40 | GtkSymbolicColor * gtk_symbolic_color_new_shade (GtkSymbolicColor *color, |
41 | gdouble factor); |
42 | GDK_DEPRECATED_IN_3_8 |
43 | GtkSymbolicColor * gtk_symbolic_color_new_alpha (GtkSymbolicColor *color, |
44 | gdouble factor); |
45 | GDK_DEPRECATED_IN_3_8 |
46 | GtkSymbolicColor * gtk_symbolic_color_new_mix (GtkSymbolicColor *color1, |
47 | GtkSymbolicColor *color2, |
48 | gdouble factor); |
49 | GDK_DEPRECATED_IN_3_8 |
50 | GtkSymbolicColor * gtk_symbolic_color_new_win32 (const gchar *theme_class, |
51 | gint id); |
52 | |
53 | GDK_DEPRECATED_IN_3_8 |
54 | GtkSymbolicColor * gtk_symbolic_color_ref (GtkSymbolicColor *color); |
55 | GDK_DEPRECATED_IN_3_8 |
56 | void gtk_symbolic_color_unref (GtkSymbolicColor *color); |
57 | |
58 | GDK_DEPRECATED_IN_3_8 |
59 | char * gtk_symbolic_color_to_string (GtkSymbolicColor *color); |
60 | |
61 | GDK_DEPRECATED_IN_3_8 |
62 | gboolean gtk_symbolic_color_resolve (GtkSymbolicColor *color, |
63 | GtkStyleProperties *props, |
64 | GdkRGBA *resolved_color); |
65 | |
66 | G_END_DECLS |
67 | |
68 | #endif /* __GTK_SYMBOLIC_COLOR_H__ */ |
69 | |