summaryrefslogtreecommitdiff
path: root/gtk/gtktextiterprivate.h
blob: 0d9104d3e16d445fdb0dfc1830df6e98ac189eb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef GTK_TEXT_ITER_PRIVATE_H
#define GTK_TEXT_ITER_PRIVATE_H

#include <gtk/gtktextiter.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include <gtk/gtktextiter.h>
#include <gtk/gtktextbtree.h>

GtkTextLineSegment *gtk_text_iter_get_indexable_segment(const GtkTextIter *iter);
GtkTextLineSegment *gtk_text_iter_get_any_segment(const GtkTextIter *iter);

GtkTextLine *gtk_text_iter_get_text_line(const GtkTextIter *iter);

GtkTextBTree *gtk_text_iter_get_btree(const GtkTextIter *iter);

gboolean gtk_text_iter_forward_indexable_segment(GtkTextIter *iter);
gboolean gtk_text_iter_backward_indexable_segment(GtkTextIter *iter);

gint gtk_text_iter_get_segment_byte(const GtkTextIter *iter);
gint gtk_text_iter_get_segment_char(const GtkTextIter *iter);

/* debug */
void gtk_text_iter_check(const GtkTextIter *iter);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif