1/* Pango
2 *
3 * Copyright (C) 1999 Red Hat Software
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
19 */
20
21#ifndef __VALIDATE_LOG_ATTRS_H__
22#define __VALIDATE_LOG_ATTRS_H__
23
24#include <glib.h>
25
26G_BEGIN_DECLS
27
28#include <pango/pango-item.h>
29
30#define PANGO_VALIDATE_ERROR (pango_validate_error_quark ())
31
32typedef enum
33{
34 PANGO_VALIDATE_ERROR_FAILED,
35 PANGO_VALIDATE_ERROR_BREAK,
36 PANGO_VALIDATE_ERROR_GRAPHEME,
37 PANGO_VALIDATE_ERROR_WORD,
38 PANGO_VALIDATE_ERROR_SENTENCE,
39 PANGO_VALIDATE_ERROR_SPACE
40} PangoValidateError;
41
42GQuark pango_validate_error_quark (void);
43
44gboolean pango_validate_log_attrs (const char *text,
45 int length,
46 const PangoLogAttr *log_attrs,
47 int attrs_len,
48 GError **error);
49
50G_END_DECLS
51
52#endif /* __VALIDATE_LOG_ATTRS_H__ */
53

source code of gtk/subprojects/pango/tests/validate-log-attrs.h