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_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
28G_BEGIN_DECLS
29
30#define GTK_TYPE_SYMBOLIC_COLOR (gtk_symbolic_color_get_type ())
31
32GDK_DEPRECATED_IN_3_8
33GType gtk_symbolic_color_get_type (void) G_GNUC_CONST;
34
35GDK_DEPRECATED_IN_3_8
36GtkSymbolicColor * gtk_symbolic_color_new_literal (const GdkRGBA *color);
37GDK_DEPRECATED_IN_3_8
38GtkSymbolicColor * gtk_symbolic_color_new_name (const gchar *name);
39GDK_DEPRECATED_IN_3_8
40GtkSymbolicColor * gtk_symbolic_color_new_shade (GtkSymbolicColor *color,
41 gdouble factor);
42GDK_DEPRECATED_IN_3_8
43GtkSymbolicColor * gtk_symbolic_color_new_alpha (GtkSymbolicColor *color,
44 gdouble factor);
45GDK_DEPRECATED_IN_3_8
46GtkSymbolicColor * gtk_symbolic_color_new_mix (GtkSymbolicColor *color1,
47 GtkSymbolicColor *color2,
48 gdouble factor);
49GDK_DEPRECATED_IN_3_8
50GtkSymbolicColor * gtk_symbolic_color_new_win32 (const gchar *theme_class,
51 gint id);
52
53GDK_DEPRECATED_IN_3_8
54GtkSymbolicColor * gtk_symbolic_color_ref (GtkSymbolicColor *color);
55GDK_DEPRECATED_IN_3_8
56void gtk_symbolic_color_unref (GtkSymbolicColor *color);
57
58GDK_DEPRECATED_IN_3_8
59char * gtk_symbolic_color_to_string (GtkSymbolicColor *color);
60
61GDK_DEPRECATED_IN_3_8
62gboolean gtk_symbolic_color_resolve (GtkSymbolicColor *color,
63 GtkStyleProperties *props,
64 GdkRGBA *resolved_color);
65
66G_END_DECLS
67
68#endif /* __GTK_SYMBOLIC_COLOR_H__ */
69