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 <gtk/css/gtkcss.h>
25#include "gtk/css/gtkcsstokenizerprivate.h"
26#include "gtk/css/gtkcssparserprivate.h"
27#include "gtkcsstypesprivate.h"
28#include "gtkcssvalueprivate.h"
29
30G_BEGIN_DECLS
31
32GtkCssValue * _gtk_css_blend_mode_value_new (GskBlendMode blend_mode);
33GtkCssValue * _gtk_css_blend_mode_value_try_parse (GtkCssParser *parser);
34GskBlendMode _gtk_css_blend_mode_value_get (const GtkCssValue *value);
35
36GtkCssValue * _gtk_css_border_style_value_new (GtkBorderStyle border_style);
37GtkCssValue * _gtk_css_border_style_value_try_parse (GtkCssParser *parser);
38GtkBorderStyle _gtk_css_border_style_value_get (const GtkCssValue *value);
39
40GtkCssValue * _gtk_css_font_size_value_new (GtkCssFontSize size);
41GtkCssValue * _gtk_css_font_size_value_try_parse (GtkCssParser *parser);
42GtkCssFontSize _gtk_css_font_size_value_get (const GtkCssValue *value);
43double gtk_css_font_size_get_default_px (GtkStyleProvider *provider,
44 GtkCssStyle *style);
45
46GtkCssValue * _gtk_css_font_style_value_new (PangoStyle style);
47GtkCssValue * _gtk_css_font_style_value_try_parse (GtkCssParser *parser);
48PangoStyle _gtk_css_font_style_value_get (const GtkCssValue *value);
49
50GtkCssValue * gtk_css_font_weight_value_try_parse (GtkCssParser *parser);
51PangoWeight gtk_css_font_weight_value_get (const GtkCssValue *value);
52
53GtkCssValue * _gtk_css_font_stretch_value_new (PangoStretch stretch);
54GtkCssValue * _gtk_css_font_stretch_value_try_parse (GtkCssParser *parser);
55PangoStretch _gtk_css_font_stretch_value_get (const GtkCssValue *value);
56
57GtkCssValue * _gtk_css_text_decoration_line_value_new (GtkTextDecorationLine line);
58GtkTextDecorationLine _gtk_css_text_decoration_line_try_parse_one (GtkCssParser *parser,
59 GtkTextDecorationLine base);
60GtkTextDecorationLine _gtk_css_text_decoration_line_value_get (const GtkCssValue *value);
61
62GtkCssValue * _gtk_css_text_decoration_style_value_new (GtkTextDecorationStyle style);
63GtkCssValue * _gtk_css_text_decoration_style_value_try_parse (GtkCssParser *parser);
64GtkTextDecorationStyle _gtk_css_text_decoration_style_value_get (const GtkCssValue *value);
65
66GtkCssValue * _gtk_css_area_value_new (GtkCssArea area);
67GtkCssValue * _gtk_css_area_value_try_parse (GtkCssParser *parser);
68GtkCssArea _gtk_css_area_value_get (const GtkCssValue *value);
69
70GtkCssValue * _gtk_css_direction_value_new (GtkCssDirection direction);
71GtkCssValue * _gtk_css_direction_value_try_parse (GtkCssParser *parser);
72GtkCssDirection _gtk_css_direction_value_get (const GtkCssValue *value);
73
74GtkCssValue * _gtk_css_play_state_value_new (GtkCssPlayState play_state);
75GtkCssValue * _gtk_css_play_state_value_try_parse (GtkCssParser *parser);
76GtkCssPlayState _gtk_css_play_state_value_get (const GtkCssValue *value);
77
78GtkCssValue * _gtk_css_fill_mode_value_new (GtkCssFillMode fill_mode);
79GtkCssValue * _gtk_css_fill_mode_value_try_parse (GtkCssParser *parser);
80GtkCssFillMode _gtk_css_fill_mode_value_get (const GtkCssValue *value);
81
82GtkCssValue * _gtk_css_icon_style_value_new (GtkCssIconStyle icon_style);
83GtkCssValue * _gtk_css_icon_style_value_try_parse (GtkCssParser *parser);
84GtkCssIconStyle _gtk_css_icon_style_value_get (const GtkCssValue *value);
85
86GtkCssValue * _gtk_css_font_kerning_value_new (GtkCssFontKerning kerning);
87GtkCssValue * _gtk_css_font_kerning_value_try_parse (GtkCssParser *parser);
88GtkCssFontKerning _gtk_css_font_kerning_value_get (const GtkCssValue *value);
89
90GtkCssValue * _gtk_css_font_variant_position_value_new (GtkCssFontVariantPosition position);
91GtkCssValue * _gtk_css_font_variant_position_value_try_parse (GtkCssParser *parser);
92GtkCssFontVariantPosition _gtk_css_font_variant_position_value_get (const GtkCssValue *value);
93
94GtkCssValue * _gtk_css_font_variant_caps_value_new (GtkCssFontVariantCaps caps);
95GtkCssValue * _gtk_css_font_variant_caps_value_try_parse (GtkCssParser *parser);
96GtkCssFontVariantCaps _gtk_css_font_variant_caps_value_get (const GtkCssValue *value);
97
98GtkCssValue * _gtk_css_font_variant_alternate_value_new (GtkCssFontVariantAlternate alternates);
99GtkCssValue * _gtk_css_font_variant_alternate_value_try_parse (GtkCssParser *parser);
100GtkCssFontVariantAlternate _gtk_css_font_variant_alternate_value_get (const GtkCssValue *value);
101
102GtkCssValue * _gtk_css_font_variant_ligature_value_new (GtkCssFontVariantLigature ligatures);
103GtkCssFontVariantLigature _gtk_css_font_variant_ligature_try_parse_one (GtkCssParser *parser,
104 GtkCssFontVariantLigature base);
105GtkCssFontVariantLigature _gtk_css_font_variant_ligature_value_get (const GtkCssValue *value);
106
107GtkCssValue * _gtk_css_font_variant_numeric_value_new (GtkCssFontVariantNumeric numeric);
108GtkCssFontVariantNumeric _gtk_css_font_variant_numeric_try_parse_one (GtkCssParser *parser,
109 GtkCssFontVariantNumeric base);
110GtkCssFontVariantNumeric _gtk_css_font_variant_numeric_value_get (const GtkCssValue *value);
111
112
113GtkCssValue * _gtk_css_font_variant_east_asian_value_new (GtkCssFontVariantEastAsian east_asian);
114GtkCssFontVariantEastAsian _gtk_css_font_variant_east_asian_try_parse_one (GtkCssParser *parser,
115 GtkCssFontVariantEastAsian base);
116GtkCssFontVariantEastAsian _gtk_css_font_variant_east_asian_value_get (const GtkCssValue *value);
117
118GtkCssValue * _gtk_css_text_transform_value_new (GtkTextTransform transform);
119GtkCssValue * _gtk_css_text_transform_value_try_parse (GtkCssParser *parser);
120GtkTextTransform _gtk_css_text_transform_value_get (const GtkCssValue *value);
121G_END_DECLS
122
123#endif /* __GTK_CSS_ENUM_VALUE_PRIVATE_H__ */
124

source code of gtk/gtk/gtkcssenumvalueprivate.h