gtktextmarkprivate.h 959 Bytes
Newer Older
1 2 3 4 5 6 7
#ifndef GTK_TEXT_MARK_PRIVATE_H
#define GTK_TEXT_MARK_PRIVATE_H

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

8 9 10
#include <gtk/gtktexttypes.h>
#include <gtk/gtktextlayout.h>

Havoc Pennington's avatar
Havoc Pennington committed
11
#define GTK_IS_TEXT_MARK_SEGMENT(mark) (((GtkTextLineSegment*)mark)->type == &gtk_text_left_mark_type || \
12 13
                                ((GtkTextLineSegment*)mark)->type == &gtk_text_right_mark_type)

14 15 16 17 18 19
/*
 * The data structure below defines line segments that represent
 * marks.  There is one of these for each mark in the text.
 */

struct _GtkTextMarkBody {
Havoc Pennington's avatar
Havoc Pennington committed
20
  GtkTextMark *obj;
21 22 23
  gchar *name;
  GtkTextBTree *tree;
  GtkTextLine *line;
24 25
  guint visible : 1;
  guint not_deleteable : 1;
26 27
};

Havoc Pennington's avatar
Havoc Pennington committed
28 29 30
GtkTextLineSegment *_gtk_mark_segment_new   (GtkTextBTree       *tree,
                                             gboolean            left_gravity,
                                             const gchar        *name);
31 32 33 34 35 36 37 38 39

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif