marks API



Hi,

Marks are pretty trivial, and the main manipulation of them is via 
the GtkTextBuffer methods. However they do have some methods. 
Basically a mark can be visible (the cursor for example) or not. They
can be named or anonymous, like tags. They are reference counted,
but have a "deleted" state similar to the destroyed state of objects
(deleted just means it's removed from the buffer).

Havoc

#ifndef GTK_TEXT_MARK_H
#define GTK_TEXT_MARK_H

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

/* The GtkTextMark data type */

typedef struct _GtkTextMark GtkTextMark;

void gtk_text_mark_set_visible (GtkTextMark *mark,
                                gboolean setting);

gboolean gtk_text_mark_is_visible (GtkTextMark *mark);
char *   gtk_text_mark_get_name   (GtkTextMark *mark);

GtkTextMark *gtk_text_mark_ref (GtkTextMark *mark);
void         gtk_text_mark_unref (GtkTextMark *mark);

gboolean   gtk_text_mark_deleted (GtkTextMark *mark);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]