]> Pileus Git - ~andy/gtk/blob - gtk/gtktextmarkprivate.h
578e68036b64e6808d3546f0d6a6713617279dac
[~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
10
11 #define GTK_IS_TEXT_MARK(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   guint refcount;
21   gchar *name;
22   GtkTextBTree *tree;
23   GtkTextLine *line;
24   guint visible : 1;
25   guint not_deleteable : 1;
26 };
27
28 GtkTextLineSegment *mark_segment_new   (GtkTextBTree   *tree,
29                                         gboolean         left_gravity,
30                                         const gchar     *name);
31 void             mark_segment_ref   (GtkTextLineSegment *mark);
32 void             mark_segment_unref (GtkTextLineSegment *mark);
33
34
35 #ifdef __cplusplus
36 }
37 #endif /* __cplusplus */
38
39 #endif
40
41
42