1/* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
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/*
19 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
20 * file for a list of people on the GTK+ Team. See the ChangeLog
21 * files for a list of changes. These files are distributed with
22 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 */
24
25#ifndef __GTK_CSS_ENUMS_H__
26#define __GTK_CSS_ENUMS_H__
27
28#if !defined (__GTK_CSS_H_INSIDE__) && !defined (GTK_COMPILATION)
29#error "Only <gtk/css/gtkcss.h> can be included directly."
30#endif
31
32#include <glib.h>
33#include <gdk/gdkversionmacros.h>
34
35/**
36 * GtkCssParserError:
37 * @GTK_CSS_PARSER_ERROR_FAILED: Unknown failure.
38 * @GTK_CSS_PARSER_ERROR_SYNTAX: The given text does not form valid syntax
39 * @GTK_CSS_PARSER_ERROR_IMPORT: Failed to import a resource
40 * @GTK_CSS_PARSER_ERROR_NAME: The given name has not been defined
41 * @GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE: The given value is not correct
42 *
43 * Errors that can occur while parsing CSS.
44 *
45 * These errors are unexpected and will cause parts of the given CSS
46 * to be ignored.
47 */
48typedef enum
49{
50 GTK_CSS_PARSER_ERROR_FAILED,
51 GTK_CSS_PARSER_ERROR_SYNTAX,
52 GTK_CSS_PARSER_ERROR_IMPORT,
53 GTK_CSS_PARSER_ERROR_NAME,
54 GTK_CSS_PARSER_ERROR_UNKNOWN_VALUE
55} GtkCssParserError;
56
57/**
58 * GtkCssParserWarning:
59 * @GTK_CSS_PARSER_WARNING_DEPRECATED: The given construct is
60 * deprecated and will be removed in a future version
61 * @GTK_CSS_PARSER_WARNING_SYNTAX: A syntax construct was used
62 * that should be avoided
63 * @GTK_CSS_PARSER_WARNING_UNIMPLEMENTED: A feature is not implemented
64 *
65 * Warnings that can occur while parsing CSS.
66 *
67 * Unlike `GtkCssParserError`s, warnings do not cause the parser to
68 * skip any input, but they indicate issues that should be fixed.
69 */
70typedef enum
71{
72 GTK_CSS_PARSER_WARNING_DEPRECATED,
73 GTK_CSS_PARSER_WARNING_SYNTAX,
74 GTK_CSS_PARSER_WARNING_UNIMPLEMENTED
75} GtkCssParserWarning;
76
77#endif /* __GTK_CSS_ENUMS_H__ */
78

source code of gtk/gtk/css/gtkcssenums.h