1/* gtkatspipangoprivate.h: Utilities for pango and AT-SPI
2 * Copyright 2020 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 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#pragma once
19
20#include <pango/pangocairo.h>
21#include "gtkatspiprivate.h"
22
23G_BEGIN_DECLS
24
25const char *pango_wrap_mode_to_string (PangoWrapMode mode);
26const char *pango_underline_to_string (PangoUnderline underline);
27const char *pango_stretch_to_string (PangoStretch stretch);
28const char *pango_style_to_string (PangoStyle style);
29const char *pango_variant_to_string (PangoVariant variant);
30
31void gtk_pango_get_font_attributes (PangoFontDescription *font,
32 GVariantBuilder *builder);
33void gtk_pango_get_default_attributes (PangoLayout *layout,
34 GVariantBuilder *builder);
35void gtk_pango_get_run_attributes (PangoLayout *layout,
36 GVariantBuilder *builder,
37 int offset,
38 int *start_offset,
39 int *end_offset);
40
41char *gtk_pango_get_text_before (PangoLayout *layout,
42 int offset,
43 AtspiTextBoundaryType boundary_type,
44 int *start_offset,
45 int *end_offset);
46char *gtk_pango_get_text_at (PangoLayout *layout,
47 int offset,
48 AtspiTextBoundaryType boundary_type,
49 int *start_offset,
50 int *end_offset);
51char *gtk_pango_get_text_after (PangoLayout *layout,
52 int offset,
53 AtspiTextBoundaryType boundary_type,
54 int *start_offset,
55 int *end_offset);
56char *gtk_pango_get_string_at (PangoLayout *layout,
57 int offset,
58 AtspiTextGranularity granularity,
59 int *start_offset,
60 int *end_offset);
61
62G_END_DECLS
63

source code of gtk/gtk/a11y/gtkatspipangoprivate.h