doc: update copyright line for 2021
[adg.git] / src / adg / adg-text-internal.h
blob21ba3d85a7f68e5cc9edceb33f25fb6f2d76ac52
1 /* ADG - Automatic Drawing Generation
2 * Copyright (C) 2007-2021 Nicola Fontana <ntd at entidi.it>
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.
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.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
20 /**
21 * SECTION:adg-text-internal
22 * @Section_Id:adg-text-internal
23 * @title: AdgBestText and AdgBestFontStyle
24 * @short_description: Fake types for text renderdering
26 * The `adg-text-internal.h` helper header provides:
28 * - an internal proxy type (`AdgBestFontStyle`) that resolves to
29 * #AdgFontStyle or #AdgPangoStyle, depending on wheter or not
30 * the pango support has been compiled;
31 * - an internal proxy type (`AdgBestText`) that resolves to
32 * #AdgToyText or #AdgText, depending on wheter or not the pango
33 * support has been compiled;
35 * Since: 1.0
36 **/
38 /**
39 * ADG_TYPE_BEST_TEXT:
41 * A GType identifier that resolves to the best available text entity,
42 * i.e. ADG_TYPE_TEXT (if the Pango support has been enabled) or
43 * or ADG_TYPE_TOY_TEXT.
45 * Since: 1.0
46 **/
48 /**
49 * ADG_TYPE_BEST_FONT_STYLE:
51 * A GType identifier that resolves to the best available font style,
52 * i.e. ADG_TYPE_PANGO_STYLE (if the Pango support has been enabled)
53 * or ADG_TYPE_FONT_STYLE.
55 * Since: 1.0
56 **/
58 #ifndef __ADG_TEXT_INTERNAL_H__
59 #define __ADG_TEXT_INTERNAL_H__
62 #include "adg-textual.h"
63 #include "adg-entity.h"
64 #include "adg-toy-text.h"
65 #include "adg-style.h"
66 #include "adg-font-style.h"
69 #ifdef PANGO_ENABLED
71 #include <pango/pango.h>
72 #include "adg-text.h"
73 #include "adg-pango-style.h"
75 #define ADG_TYPE_BEST_TEXT ADG_TYPE_TEXT
76 #define ADG_TYPE_BEST_FONT_STYLE ADG_TYPE_PANGO_STYLE
78 #else /* ! PANGO_ENABLED */
80 #define ADG_TYPE_BEST_TEXT ADG_TYPE_TOY_TEXT
81 #define ADG_TYPE_BEST_FONT_STYLE ADG_TYPE_FONT_STYLE
83 #endif /* PANGO_ENABLED */
86 #endif /* __ADG_TEXT_INTERNAL_H__ */