gtktextmarkprivate.h 1022 Bytes
Newer Older
1 2 3
#ifndef GTK_TEXT_MARK_PRIVATE_H
#define GTK_TEXT_MARK_PRIVATE_H

4 5
#include <gtk/gtktexttypes.h>

6 7 8 9
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

10 11 12
#define GTK_IS_TEXT_MARK(mark) (((GtkTextLineSegment*)mark)->type == &gtk_text_left_mark_type || \
                                ((GtkTextLineSegment*)mark)->type == &gtk_text_right_mark_type)

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

struct _GtkTextMarkBody {
  guint refcount;
  gchar *name;
  GtkTextBTree *tree;
  GtkTextLine *line;
23 24
  guint visible : 1;
  guint not_deleteable : 1;
25 26 27
};

GtkTextLineSegment *mark_segment_new   (GtkTextBTree   *tree,
28 29
                                        gboolean         left_gravity,
                                        const gchar     *name);
30 31 32 33 34 35 36 37 38 39 40 41
void             mark_segment_ref   (GtkTextLineSegment *mark);
void             mark_segment_unref (GtkTextLineSegment *mark);


#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif