]> Pileus Git - ~andy/gtk/blob - gtk/deprecated/gtkgradient.h
filechooserbutton: When the combo box changes, set the *file*, not the current folder
[~andy/gtk] / gtk / deprecated / gtkgradient.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, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef __GTK_GRADIENT_H__
19 #define __GTK_GRADIENT_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/gtkstylecontext.h>
27 #include <gtk/gtkstyleproperties.h>
28 #include <gtk/deprecated/gtksymboliccolor.h>
29
30 G_BEGIN_DECLS
31
32 #define GTK_TYPE_GRADIENT (gtk_gradient_get_type ())
33
34 GType         gtk_gradient_get_type       (void) G_GNUC_CONST;
35
36 GDK_DEPRECATED_IN_3_8
37 GtkGradient * gtk_gradient_new_linear     (gdouble              x0,
38                                            gdouble              y0,
39                                            gdouble              x1,
40                                            gdouble              y1);
41 GDK_DEPRECATED_IN_3_8
42 GtkGradient * gtk_gradient_new_radial     (gdouble              x0,
43                                            gdouble              y0,
44                                            gdouble              radius0,
45                                            gdouble              x1,
46                                            gdouble              y1,
47                                            gdouble              radius1);
48
49 GDK_DEPRECATED_IN_3_8
50 void          gtk_gradient_add_color_stop (GtkGradient         *gradient,
51                                            gdouble              offset,
52                                            GtkSymbolicColor    *color);
53
54 GDK_DEPRECATED_IN_3_8
55 GtkGradient * gtk_gradient_ref            (GtkGradient         *gradient);
56 GDK_DEPRECATED_IN_3_8
57 void          gtk_gradient_unref          (GtkGradient         *gradient);
58
59 GDK_DEPRECATED_IN_3_8
60 gboolean      gtk_gradient_resolve        (GtkGradient         *gradient,
61                                            GtkStyleProperties  *props,
62                                            cairo_pattern_t    **resolved_gradient);
63 GDK_DEPRECATED_IN_3_8
64 cairo_pattern_t *
65               gtk_gradient_resolve_for_context
66                                           (GtkGradient         *gradient,
67                                            GtkStyleContext     *context);
68
69 GDK_DEPRECATED_IN_3_8
70 char *        gtk_gradient_to_string      (GtkGradient         *gradient);
71
72 G_END_DECLS
73
74 #endif /* __GTK_GRADIENT_H__ */