27 #ifndef __GTK_TEXT_BUFFER_H__
28 #define __GTK_TEXT_BUFFER_H__
30 #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
31 #error "Only <gtk/gtk.h> can be included directly."
65 #define GTK_TYPE_TEXT_BUFFER (gtk_text_buffer_get_type ())
66 #define GTK_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBuffer))
67 #define GTK_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass))
68 #define GTK_IS_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TEXT_BUFFER))
69 #define GTK_IS_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TEXT_BUFFER))
70 #define GTK_TEXT_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass))
81 GSList *
GSEAL (clipboard_contents_buffers);
82 GSList *
GSEAL (selection_clipboards);
86 guint
GSEAL (user_action_count);
89 guint
GSEAL (modified) : 1;
91 guint
GSEAL (has_selection) : 1;
187 gboolean default_editable);
191 gboolean default_editable);
201 gboolean default_editable);
208 ...) G_GNUC_NULL_TERMINATED;
214 const gchar *first_tag_name,
215 ...) G_GNUC_NULL_TERMINATED;
224 gboolean default_editable);
227 gboolean interactive,
228 gboolean default_editable);
234 gboolean include_hidden_chars);
239 gboolean include_hidden_chars);
260 const gchar *mark_name,
262 gboolean left_gravity);
315 const gchar *tag_name,
316 const gchar *first_property_name,
373 gboolean default_editable);
379 gboolean default_editable);
385 gboolean interactive,
386 gboolean default_editable);
GtkImageIconNameData name
GtkImagePixbufData pixbuf
typedefG_BEGIN_DECLS struct _GtkTargetList GtkTargetList
const PangoLogAttr * _gtk_text_buffer_get_line_log_attrs(GtkTextBuffer *buffer, const GtkTextIter *anywhere_in_line, gint *char_len)
gboolean gtk_text_buffer_delete_selection(GtkTextBuffer *buffer, gboolean interactive, gboolean default_editable)
void gtk_text_buffer_select_range(GtkTextBuffer *buffer, const GtkTextIter *ins, const GtkTextIter *bound)
void gtk_text_buffer_insert(GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *text, gint len)
void gtk_text_buffer_add_selection_clipboard(GtkTextBuffer *buffer, GtkClipboard *clipboard)
gint gtk_text_buffer_get_line_count(GtkTextBuffer *buffer)
gboolean gtk_text_buffer_insert_interactive(GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *text, gint len, gboolean default_editable)
void gtk_text_buffer_insert_with_tags(GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *text, gint len, GtkTextTag *first_tag,...) G_GNUC_NULL_TERMINATED
void gtk_text_buffer_get_end_iter(GtkTextBuffer *buffer, GtkTextIter *iter)
gboolean gtk_text_buffer_insert_interactive_at_cursor(GtkTextBuffer *buffer, const gchar *text, gint len, gboolean default_editable)
void gtk_text_buffer_place_cursor(GtkTextBuffer *buffer, const GtkTextIter *where)
GtkTextMark * gtk_text_buffer_get_selection_bound(GtkTextBuffer *buffer)
void gtk_text_buffer_get_iter_at_mark(GtkTextBuffer *buffer, GtkTextIter *iter, GtkTextMark *mark)
void gtk_text_buffer_remove_tag(GtkTextBuffer *buffer, GtkTextTag *tag, const GtkTextIter *start, const GtkTextIter *end)
gchar * gtk_text_buffer_get_text(GtkTextBuffer *buffer, const GtkTextIter *start, const GtkTextIter *end, gboolean include_hidden_chars)
@ GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS
@ GTK_TEXT_BUFFER_TARGET_INFO_TEXT
@ GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT
void gtk_text_buffer_cut_clipboard(GtkTextBuffer *buffer, GtkClipboard *clipboard, gboolean default_editable)
gboolean gtk_text_buffer_backspace(GtkTextBuffer *buffer, GtkTextIter *iter, gboolean interactive, gboolean default_editable)
GtkTextTagTable * gtk_text_buffer_get_tag_table(GtkTextBuffer *buffer)
GtkTargetList * gtk_text_buffer_get_paste_target_list(GtkTextBuffer *buffer)
void gtk_text_buffer_delete_mark_by_name(GtkTextBuffer *buffer, const gchar *name)
void gtk_text_buffer_add_mark(GtkTextBuffer *buffer, GtkTextMark *mark, const GtkTextIter *where)
GtkTextMark * gtk_text_buffer_get_mark(GtkTextBuffer *buffer, const gchar *name)
GType gtk_text_buffer_get_type(void) G_GNUC_CONST
gchar * gtk_text_buffer_get_slice(GtkTextBuffer *buffer, const GtkTextIter *start, const GtkTextIter *end, gboolean include_hidden_chars)
void gtk_text_buffer_paste_clipboard(GtkTextBuffer *buffer, GtkClipboard *clipboard, GtkTextIter *override_location, gboolean default_editable)
void gtk_text_buffer_insert_at_cursor(GtkTextBuffer *buffer, const gchar *text, gint len)
void gtk_text_buffer_insert_pixbuf(GtkTextBuffer *buffer, GtkTextIter *iter, GdkPixbuf *pixbuf)
void gtk_text_buffer_get_start_iter(GtkTextBuffer *buffer, GtkTextIter *iter)
gboolean gtk_text_buffer_get_modified(GtkTextBuffer *buffer)
void gtk_text_buffer_set_text(GtkTextBuffer *buffer, const gchar *text, gint len)
void gtk_text_buffer_set_modified(GtkTextBuffer *buffer, gboolean setting)
void gtk_text_buffer_get_iter_at_line_offset(GtkTextBuffer *buffer, GtkTextIter *iter, gint line_number, gint char_offset)
gint gtk_text_buffer_get_char_count(GtkTextBuffer *buffer)
void gtk_text_buffer_remove_selection_clipboard(GtkTextBuffer *buffer, GtkClipboard *clipboard)
void gtk_text_buffer_move_mark_by_name(GtkTextBuffer *buffer, const gchar *name, const GtkTextIter *where)
GtkTargetList * gtk_text_buffer_get_copy_target_list(GtkTextBuffer *buffer)
void gtk_text_buffer_insert_with_tags_by_name(GtkTextBuffer *buffer, GtkTextIter *iter, const gchar *text, gint len, const gchar *first_tag_name,...) G_GNUC_NULL_TERMINATED
GtkTextMark * gtk_text_buffer_get_insert(GtkTextBuffer *buffer)
void gtk_text_buffer_insert_range(GtkTextBuffer *buffer, GtkTextIter *iter, const GtkTextIter *start, const GtkTextIter *end)
struct _GtkTextBTree GtkTextBTree
void gtk_text_buffer_insert_child_anchor(GtkTextBuffer *buffer, GtkTextIter *iter, GtkTextChildAnchor *anchor)
gboolean gtk_text_buffer_get_has_selection(GtkTextBuffer *buffer)
gboolean gtk_text_buffer_delete_interactive(GtkTextBuffer *buffer, GtkTextIter *start_iter, GtkTextIter *end_iter, gboolean default_editable)
void gtk_text_buffer_remove_tag_by_name(GtkTextBuffer *buffer, const gchar *name, const GtkTextIter *start, const GtkTextIter *end)
void gtk_text_buffer_remove_all_tags(GtkTextBuffer *buffer, const GtkTextIter *start, const GtkTextIter *end)
GtkTextBuffer * gtk_text_buffer_new(GtkTextTagTable *table)
void gtk_text_buffer_move_mark(GtkTextBuffer *buffer, GtkTextMark *mark, const GtkTextIter *where)
GtkTextMark * gtk_text_buffer_create_mark(GtkTextBuffer *buffer, const gchar *mark_name, const GtkTextIter *where, gboolean left_gravity)
GtkTextTag * gtk_text_buffer_create_tag(GtkTextBuffer *buffer, const gchar *tag_name, const gchar *first_property_name,...)
GtkTextChildAnchor * gtk_text_buffer_create_child_anchor(GtkTextBuffer *buffer, GtkTextIter *iter)
void gtk_text_buffer_get_iter_at_line_index(GtkTextBuffer *buffer, GtkTextIter *iter, gint line_number, gint byte_index)
void gtk_text_buffer_get_iter_at_child_anchor(GtkTextBuffer *buffer, GtkTextIter *iter, GtkTextChildAnchor *anchor)
void gtk_text_buffer_copy_clipboard(GtkTextBuffer *buffer, GtkClipboard *clipboard)
void _gtk_text_buffer_spew(GtkTextBuffer *buffer)
void gtk_text_buffer_delete_mark(GtkTextBuffer *buffer, GtkTextMark *mark)
void gtk_text_buffer_delete(GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end)
void gtk_text_buffer_get_iter_at_offset(GtkTextBuffer *buffer, GtkTextIter *iter, gint char_offset)
void gtk_text_buffer_apply_tag(GtkTextBuffer *buffer, GtkTextTag *tag, const GtkTextIter *start, const GtkTextIter *end)
void _gtk_text_buffer_notify_will_remove_tag(GtkTextBuffer *buffer, GtkTextTag *tag)
void gtk_text_buffer_begin_user_action(GtkTextBuffer *buffer)
gboolean gtk_text_buffer_get_selection_bounds(GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end)
GtkTextBTree * _gtk_text_buffer_get_btree(GtkTextBuffer *buffer)
void gtk_text_buffer_get_iter_at_line(GtkTextBuffer *buffer, GtkTextIter *iter, gint line_number)
void gtk_text_buffer_apply_tag_by_name(GtkTextBuffer *buffer, const gchar *name, const GtkTextIter *start, const GtkTextIter *end)
gboolean gtk_text_buffer_insert_range_interactive(GtkTextBuffer *buffer, GtkTextIter *iter, const GtkTextIter *start, const GtkTextIter *end, gboolean default_editable)
void gtk_text_buffer_get_bounds(GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end)
struct _GtkTextLogAttrCache GtkTextLogAttrCache
void gtk_text_buffer_end_user_action(GtkTextBuffer *buffer)
typedefG_BEGIN_DECLS struct _GtkTextChildAnchor GtkTextChildAnchor
typedefG_BEGIN_DECLS struct _GtkTextMark GtkTextMark
typedefG_BEGIN_DECLS struct _GtkTextIter GtkTextIter
PBD::PropertyDescriptor< timecnt_t > length
PBD::PropertyDescriptor< timepos_t > start
void(* changed)(GtkTextBuffer *buffer)
void(* modified_changed)(GtkTextBuffer *buffer)
void(* mark_deleted)(GtkTextBuffer *buffer, GtkTextMark *mark)
void(* apply_tag)(GtkTextBuffer *buffer, GtkTextTag *tag, const GtkTextIter *start_char, const GtkTextIter *end_char)
void(* insert_child_anchor)(GtkTextBuffer *buffer, GtkTextIter *pos, GtkTextChildAnchor *anchor)
void(* insert_text)(GtkTextBuffer *buffer, GtkTextIter *pos, const gchar *text, gint length)
GObjectClass parent_class
void(* delete_range)(GtkTextBuffer *buffer, GtkTextIter *start, GtkTextIter *end)
void(* begin_user_action)(GtkTextBuffer *buffer)
void(* _gtk_reserved3)(void)
void(* paste_done)(GtkTextBuffer *buffer, GtkClipboard *clipboard)
void(* remove_tag)(GtkTextBuffer *buffer, GtkTextTag *tag, const GtkTextIter *start_char, const GtkTextIter *end_char)
void(* _gtk_reserved5)(void)
void(* _gtk_reserved1)(void)
void(* insert_pixbuf)(GtkTextBuffer *buffer, GtkTextIter *pos, GdkPixbuf *pixbuf)
void(* end_user_action)(GtkTextBuffer *buffer)
void(* _gtk_reserved2)(void)
void(* _gtk_reserved4)(void)
void(* mark_set)(GtkTextBuffer *buffer, const GtkTextIter *location, GtkTextMark *mark)
GtkTextTagTable * GSEAL(tag_table)
GtkTextLogAttrCache * GSEAL(log_attr_cache)
guint GSEAL(user_action_count)
GSList * GSEAL(clipboard_contents_buffers)
GSList * GSEAL(selection_clipboards)
GtkTextBTree * GSEAL(btree)