]> Pileus Git - ~andy/gtk/blob - gtk/gtktextmarkprivate.h
System fnmatch wasn't going to be UTF-8 clean, neither was our version.
[~andy/gtk] / gtk / gtktextmarkprivate.h
1 #ifndef GTK_TEXT_MARK_PRIVATE_H
2 #define GTK_TEXT_MARK_PRIVATE_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7
8 #include <gtk/gtktexttypes.h>
9 #include <gtk/gtktextlayout.h>
10
11 #define GTK_IS_TEXT_MARK_SEGMENT(mark) (((GtkTextLineSegment*)mark)->type == &gtk_text_left_mark_type || \
12                                 ((GtkTextLineSegment*)mark)->type == &gtk_text_right_mark_type)
13
14 /*
15  * The data structure below defines line segments that represent
16  * marks.  There is one of these for each mark in the text.
17  */
18
19 struct _GtkTextMarkBody {
20   GtkTextMark *obj;
21   gchar *name;
22   GtkTextBTree *tree;
23   GtkTextLine *line;
24   guint visible : 1;
25   guint not_deleteable : 1;
26 };
27
28 GtkTextLineSegment *_gtk_mark_segment_new   (GtkTextBTree       *tree,
29                                              gboolean            left_gravity,
30                                              const gchar        *name);
31
32 #ifdef __cplusplus
33 }
34 #endif /* __cplusplus */
35
36 #endif
37
38
39