gtksymboliccolor.h 2.74 KB
Newer Older
Carlos Garnacho's avatar
Carlos Garnacho committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* GTK - The GIMP Toolkit
 * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Carlos Garnacho's avatar
Carlos Garnacho committed
16 17
 */

18 19 20
#ifndef __GTK_SYMBOLIC_COLOR_H__
#define __GTK_SYMBOLIC_COLOR_H__

21 22 23 24
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
#error "Only <gtk/gtk.h> can be included directly."
#endif

Carlos Garnacho's avatar
Carlos Garnacho committed
25
#include <gdk/gdk.h>
Matthias Clasen's avatar
Matthias Clasen committed
26
#include <gtk/gtkstyleproperties.h>
Carlos Garnacho's avatar
Carlos Garnacho committed
27 28 29 30 31

G_BEGIN_DECLS

#define GTK_TYPE_SYMBOLIC_COLOR (gtk_symbolic_color_get_type ())

32
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
33
GType              gtk_symbolic_color_get_type    (void) G_GNUC_CONST;
Carlos Garnacho's avatar
Carlos Garnacho committed
34

Benjamin Otte's avatar
Benjamin Otte committed
35
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
36
GtkSymbolicColor * gtk_symbolic_color_new_literal (const GdkRGBA      *color);
Benjamin Otte's avatar
Benjamin Otte committed
37
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
38
GtkSymbolicColor * gtk_symbolic_color_new_name    (const gchar        *name);
Benjamin Otte's avatar
Benjamin Otte committed
39
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
40 41
GtkSymbolicColor * gtk_symbolic_color_new_shade   (GtkSymbolicColor   *color,
                                                   gdouble             factor);
Benjamin Otte's avatar
Benjamin Otte committed
42
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
43 44
GtkSymbolicColor * gtk_symbolic_color_new_alpha   (GtkSymbolicColor   *color,
                                                   gdouble             factor);
Benjamin Otte's avatar
Benjamin Otte committed
45
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
46 47 48
GtkSymbolicColor * gtk_symbolic_color_new_mix     (GtkSymbolicColor   *color1,
                                                   GtkSymbolicColor   *color2,
                                                   gdouble             factor);
Benjamin Otte's avatar
Benjamin Otte committed
49
GDK_DEPRECATED_IN_3_8
50
GtkSymbolicColor * gtk_symbolic_color_new_win32   (const gchar        *theme_class,
Matthias Clasen's avatar
Matthias Clasen committed
51
                                                   gint                id);
Carlos Garnacho's avatar
Carlos Garnacho committed
52

Benjamin Otte's avatar
Benjamin Otte committed
53
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
54
GtkSymbolicColor * gtk_symbolic_color_ref         (GtkSymbolicColor   *color);
Benjamin Otte's avatar
Benjamin Otte committed
55
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
56
void               gtk_symbolic_color_unref       (GtkSymbolicColor   *color);
Carlos Garnacho's avatar
Carlos Garnacho committed
57

Benjamin Otte's avatar
Benjamin Otte committed
58
GDK_DEPRECATED_IN_3_8
59 60
char *             gtk_symbolic_color_to_string   (GtkSymbolicColor   *color);

Benjamin Otte's avatar
Benjamin Otte committed
61
GDK_DEPRECATED_IN_3_8
Matthias Clasen's avatar
Matthias Clasen committed
62 63 64
gboolean           gtk_symbolic_color_resolve     (GtkSymbolicColor   *color,
                                                   GtkStyleProperties *props,
                                                   GdkRGBA            *resolved_color);
Carlos Garnacho's avatar
Carlos Garnacho committed
65

Carlos Garnacho's avatar
Carlos Garnacho committed
66 67 68
G_END_DECLS

#endif /* __GTK_SYMBOLIC_COLOR_H__ */