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_COLOR_VALUE_PRIVATE_H__ |
19 | #define __GTK_CSS_COLOR_VALUE_PRIVATE_H__ |
20 | |
21 | #include <gtk/css/gtkcss.h> |
22 | #include "gtk/css/gtkcsstokenizerprivate.h" |
23 | #include "gtk/css/gtkcssparserprivate.h" |
24 | #include "gtkcssvalueprivate.h" |
25 | |
26 | G_BEGIN_DECLS |
27 | |
28 | |
29 | GtkCssValue * gtk_css_color_value_new_transparent (void) G_GNUC_PURE; |
30 | GtkCssValue * gtk_css_color_value_new_white (void) G_GNUC_PURE; |
31 | GtkCssValue * _gtk_css_color_value_new_literal (const GdkRGBA *color) G_GNUC_PURE; |
32 | GtkCssValue * _gtk_css_color_value_new_name (const char *name) G_GNUC_PURE; |
33 | GtkCssValue * _gtk_css_color_value_new_shade (GtkCssValue *color, |
34 | double factor) G_GNUC_PURE; |
35 | GtkCssValue * _gtk_css_color_value_new_alpha (GtkCssValue *color, |
36 | double factor) G_GNUC_PURE; |
37 | GtkCssValue * _gtk_css_color_value_new_mix (GtkCssValue *color1, |
38 | GtkCssValue *color2, |
39 | double factor) G_GNUC_PURE; |
40 | GtkCssValue * _gtk_css_color_value_new_current_color (void) G_GNUC_PURE; |
41 | |
42 | gboolean gtk_css_color_value_can_parse (GtkCssParser *parser); |
43 | GtkCssValue * _gtk_css_color_value_parse (GtkCssParser *parser); |
44 | |
45 | GtkCssValue * _gtk_css_color_value_resolve (GtkCssValue *color, |
46 | GtkStyleProvider *provider, |
47 | GtkCssValue *current, |
48 | GSList *cycle_list); |
49 | const GdkRGBA * gtk_css_color_value_get_rgba (const GtkCssValue *color) G_GNUC_CONST; |
50 | |
51 | |
52 | G_END_DECLS |
53 | |
54 | #endif /* __GTK_CSS_COLOR_VALUE_PRIVATE_H__ */ |
55 | |