1 | /* gtkatspitextbufferprivate.h: Utilities for GtkTextBuffer and AT-SPI |
2 | * |
3 | * Copyright 2020 Red Hat, Inc |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser 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 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public |
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | #pragma once |
20 | |
21 | #include "gtkatspiprivate.h" |
22 | #include "gtktextview.h" |
23 | |
24 | G_BEGIN_DECLS |
25 | |
26 | void gtk_text_view_add_default_attributes (GtkTextView *view, |
27 | GVariantBuilder *builder); |
28 | void gtk_text_buffer_get_run_attributes (GtkTextBuffer *buffer, |
29 | GVariantBuilder *builder, |
30 | int offset, |
31 | int *start_offset, |
32 | int *end_offset); |
33 | |
34 | char *gtk_text_view_get_text_before (GtkTextView *view, |
35 | int offset, |
36 | AtspiTextBoundaryType boundary_type, |
37 | int *start_offset, |
38 | int *end_offset); |
39 | char *gtk_text_view_get_text_at (GtkTextView *view, |
40 | int offset, |
41 | AtspiTextBoundaryType boundary_type, |
42 | int *start_offset, |
43 | int *end_offset); |
44 | char *gtk_text_view_get_text_after (GtkTextView *view, |
45 | int offset, |
46 | AtspiTextBoundaryType boundary_type, |
47 | int *start_offset, |
48 | int *end_offset); |
49 | char *gtk_text_view_get_string_at (GtkTextView *view, |
50 | int offset, |
51 | AtspiTextGranularity granularity, |
52 | int *start_offset, |
53 | int *end_offset); |
54 | |
55 | G_END_DECLS |
56 | |