1 /*
2  * Copyright © 2012 Red Hat Inc.
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.1 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  * Authors: Alexander Larsson <alexl@gnome.org>
18  */
19 
20 #ifndef __GTK_CSS_ENUM_VALUE_PRIVATE_H__
21 #define __GTK_CSS_ENUM_VALUE_PRIVATE_H__
22 
23 #include "gtkenums.h"
24 #include "gtkcssparserprivate.h"
25 #include "gtkcsstypesprivate.h"
26 #include "gtkcssvalueprivate.h"
27 
28 G_BEGIN_DECLS
29 
30 GtkCssValue *   _gtk_css_blend_mode_value_new         (GtkCssBlendMode    blend_mode);
31 GtkCssValue *   _gtk_css_blend_mode_value_try_parse   (GtkCssParser      *parser);
32 GtkCssBlendMode _gtk_css_blend_mode_value_get         (const GtkCssValue *value);
33 
34 GtkCssValue *   _gtk_css_border_style_value_new       (GtkBorderStyle     border_style);
35 GtkCssValue *   _gtk_css_border_style_value_try_parse (GtkCssParser      *parser);
36 GtkBorderStyle  _gtk_css_border_style_value_get       (const GtkCssValue *value);
37 
38 GtkCssValue *   _gtk_css_font_size_value_new          (GtkCssFontSize     size);
39 GtkCssValue *   _gtk_css_font_size_value_try_parse    (GtkCssParser      *parser);
40 GtkCssFontSize  _gtk_css_font_size_value_get          (const GtkCssValue *value);
41 double          gtk_css_font_size_get_default_px      (GtkStyleProviderPrivate *provider,
42                                                        GtkCssStyle             *style);
43 
44 GtkCssValue *   _gtk_css_font_style_value_new         (PangoStyle         style);
45 GtkCssValue *   _gtk_css_font_style_value_try_parse   (GtkCssParser      *parser);
46 PangoStyle      _gtk_css_font_style_value_get         (const GtkCssValue *value);
47 
48 GtkCssValue *   _gtk_css_font_variant_value_new       (PangoVariant       variant);
49 GtkCssValue *   _gtk_css_font_variant_value_try_parse (GtkCssParser      *parser);
50 PangoVariant    _gtk_css_font_variant_value_get       (const GtkCssValue *value);
51 
52 GtkCssValue *   _gtk_css_font_weight_value_new        (PangoWeight        weight);
53 GtkCssValue *   _gtk_css_font_weight_value_try_parse  (GtkCssParser      *parser);
54 PangoWeight     _gtk_css_font_weight_value_get        (const GtkCssValue *value);
55 
56 GtkCssValue *   _gtk_css_font_stretch_value_new       (PangoStretch       stretch);
57 GtkCssValue *   _gtk_css_font_stretch_value_try_parse (GtkCssParser      *parser);
58 PangoStretch    _gtk_css_font_stretch_value_get       (const GtkCssValue *value);
59 
60 GtkCssValue *         _gtk_css_text_decoration_line_value_new       (GtkTextDecorationLine  line);
61 GtkCssValue *         _gtk_css_text_decoration_line_value_try_parse (GtkCssParser          *parser);
62 GtkTextDecorationLine _gtk_css_text_decoration_line_value_get       (const GtkCssValue     *value);
63 
64 GtkCssValue *          _gtk_css_text_decoration_style_value_new       (GtkTextDecorationStyle  style);
65 GtkCssValue *          _gtk_css_text_decoration_style_value_try_parse (GtkCssParser           *parser);
66 GtkTextDecorationStyle _gtk_css_text_decoration_style_value_get       (const GtkCssValue      *value);
67 
68 GtkCssValue *   _gtk_css_area_value_new               (GtkCssArea         area);
69 GtkCssValue *   _gtk_css_area_value_try_parse         (GtkCssParser      *parser);
70 GtkCssArea      _gtk_css_area_value_get               (const GtkCssValue *value);
71 
72 GtkCssValue *   _gtk_css_direction_value_new          (GtkCssDirection    direction);
73 GtkCssValue *   _gtk_css_direction_value_try_parse    (GtkCssParser      *parser);
74 GtkCssDirection _gtk_css_direction_value_get          (const GtkCssValue *value);
75 
76 GtkCssValue *   _gtk_css_play_state_value_new         (GtkCssPlayState    play_state);
77 GtkCssValue *   _gtk_css_play_state_value_try_parse   (GtkCssParser      *parser);
78 GtkCssPlayState _gtk_css_play_state_value_get         (const GtkCssValue *value);
79 
80 GtkCssValue *   _gtk_css_fill_mode_value_new          (GtkCssFillMode     fill_mode);
81 GtkCssValue *   _gtk_css_fill_mode_value_try_parse    (GtkCssParser      *parser);
82 GtkCssFillMode  _gtk_css_fill_mode_value_get          (const GtkCssValue *value);
83 
84 GtkCssValue *   _gtk_css_icon_effect_value_new        (GtkCssIconEffect   image_effect);
85 GtkCssValue *   _gtk_css_icon_effect_value_try_parse  (GtkCssParser      *parser);
86 GtkCssIconEffect _gtk_css_icon_effect_value_get       (const GtkCssValue *value);
87 void            gtk_css_icon_effect_apply             (GtkCssIconEffect   icon_effect,
88                                                        cairo_surface_t   *surface);
89 
90 GtkCssValue *   _gtk_css_icon_style_value_new         (GtkCssIconStyle    icon_style);
91 GtkCssValue *   _gtk_css_icon_style_value_try_parse   (GtkCssParser      *parser);
92 GtkCssIconStyle _gtk_css_icon_style_value_get         (const GtkCssValue *value);
93 
94 G_END_DECLS
95 
96 #endif /* __GTK_CSS_ENUM_VALUE_PRIVATE_H__ */
97