GObject.Object
Gtk.TextBuffer
Import line: | Gtk = imports.gi.Gtk; |
GIR File: | Gtk-3.0.gir |
C documentation: | GtkTextBuffer |
Class : | TextBuffer |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
copy_target_list : Gtk.TargetList
read only
The list of targets this buffer supports for clipboard copying
and as DND source. The list of targets this buffer supports for clipboard copying
and as DND source. |
Gtk.TextBuffer | |
cursor_position : gint32
read only
The position of the insert mark (as offset from the beginning
of the buffer). The position of the insert mark (as offset from the beginning
of the buffer). It is useful for getting notified when the cursor moves. |
Gtk.TextBuffer | |
has_selection : gboolean
read only
Whether the buffer has some text currently selected.
Whether the buffer has some text currently selected.
|
Gtk.TextBuffer | |
parent_instance : GObject.Object
read only
|
Gtk.TextBuffer | |
paste_target_list : Gtk.TargetList
read only
The list of targets this buffer supports for clipboard pasting
and as DND destination. The list of targets this buffer supports for clipboard pasting
and as DND destination. |
Gtk.TextBuffer | |
priv : Gtk.TextBufferPrivate
read only
|
Gtk.TextBuffer | |
tag_table : Gtk.TextTagTable
|
Gtk.TextBuffer | |
text : String
The text content of the buffer.
The text content of the buffer. Without child widgets and images,
see gtk_text_buffer_get_text() for more information. |
Gtk.TextBuffer |
Method / Constructor | Defined By | |
---|---|---|
new Gtk.TextBuffer
(Object properties)
Create a new Gtk.TextBuffer
Create a new Gtk.TextBuffer
|
||
Create a new Gtk.TextBuffer
Create a new Gtk.TextBuffer
|
||
Adds the mark at position where.
Adds the mark at position where. The mark must not be added to
another buffer, and if its name is not NULL then there must not be another mark in the buffer with the same name. Emits the "mark-set" signal as notification of the mark's initial placement.
|
Gtk.TextBuffer | |
add_selection_clipboard
(Clipboard clipboard)
:
none
Adds clipboard to the list of clipboards in which the selection
contents of buffer are available.
Adds clipboard to the list of clipboards in which the selection
contents of buffer are available. In most cases, clipboard will be the GtkClipboard of type GDK_SELECTION_PRIMARY for a view of buffer.
|
Gtk.TextBuffer | |
Emits the "apply-tag" signal on buffer.
Emits the "apply-tag" signal on buffer. The default
handler for the signal applies tag to the given range.
|
Gtk.TextBuffer | |
Calls gtk_text_tag_table_lookup() on the buffer's tag table to
get a GtkTextTag, then calls gtk_text_buffer_apply_tag().
Calls gtk_text_tag_table_lookup() on the buffer's tag table to
get a GtkTextTag, then calls gtk_text_buffer_apply_tag().
|
Gtk.TextBuffer | |
Performs the appropriate action as if the user hit the delete
key with the cursor at the position specified by iter.
Performs the appropriate action as if the user hit the delete
key with the cursor at the position specified by iter. In the normal case a single character will be deleted, but when combining accents are involved, more than one character can be deleted, and when precomposed character and accent combinations are involved, less than one character will be deleted. Because the buffer is modified, all outstanding iterators become invalid after calling this function; however, the iter will be re-initialized to point to the location where text was deleted.
|
Gtk.TextBuffer | |
begin_user_action
()
:
none
Called to indicate that the buffer operations between here and a
call to gtk_text_buffer_end_user_action() are part of a single user-visible operation.
Called to indicate that the buffer operations between here and a
call to gtk_text_buffer_end_user_action() are part of a single user-visible operation. The operations between gtk_text_buffer_begin_user_action() and gtk_text_buffer_end_user_action() can then be grouped when creating an undo stack. GtkTextBuffer maintains a count of calls to gtk_text_buffer_begin_user_action() that have not been closed with a call to gtk_text_buffer_end_user_action(), and emits the "begin-user-action" and "end-user-action" signals only for the outermost pair of calls. This allows you to build user actions from other user actions. The "interactive" buffer mutation functions, such as gtk_text_buffer_insert_interactive(), automatically call begin/end user action around the buffer operations they perform, so there's no need to add extra calls if you user action consists solely of a single call to one of those functions.
|
Gtk.TextBuffer | |
copy_clipboard
(Clipboard clipboard)
:
none
Copies the currently-selected text to a clipboard.
Copies the currently-selected text to a clipboard.
|
Gtk.TextBuffer | |
create_child_anchor
(TextIter iter)
:
Gtk.TextChildAnchor
This is a convenience function which simply creates a child anchor
with gtk_text_child_anchor_new() and inserts it into the buffer with gtk_text_buffer_insert_child_anchor().
This is a convenience function which simply creates a child anchor
with gtk_text_child_anchor_new() and inserts it into the buffer with gtk_text_buffer_insert_child_anchor(). The new anchor is owned by the buffer; no reference count is returned to the caller of gtk_text_buffer_create_child_anchor().
|
Gtk.TextBuffer | |
Creates a mark at position where.
Creates a mark at position where. If mark_name is NULL, the mark
is anonymous; otherwise, the mark can be retrieved by name using gtk_text_buffer_get_mark(). If a mark has left gravity, and text is inserted at the mark's current location, the mark will be moved to the left of the newly-inserted text. If the mark has right gravity (left_gravity = FALSE), the mark will end up on the right of newly-inserted text. The standard left-to-right cursor is a mark with right gravity (when you type, the cursor stays on the right side of the text you're typing). The caller of this function does reference to the returned GtkTextMark, so you can ignore the return value if you like. Marks are owned by the buffer and go away when the buffer does. Emits the "mark-set" signal as notification of the mark's initial placement.
|
Gtk.TextBuffer | |
Copies the currently-selected text to a clipboard, then deletes
said text if it's editable.
Copies the currently-selected text to a clipboard, then deletes
said text if it's editable.
|
Gtk.TextBuffer | |
Deletes text between start and end.
Deletes text between start and end. The order of start and end
is not actually relevant; gtk_text_buffer_delete() will reorder them. This function actually emits the "delete-range" signal, and the default handler of that signal deletes the text. Because the buffer is modified, all outstanding iterators become invalid after calling this function; however, the start and end will be re-initialized to point to the location where text was deleted.
|
Gtk.TextBuffer | |
Deletes all
Deletes all
Calls gtk_text_buffer_delete() for each editable sub-range of [start,end). start and end are revalidated to point to the location of the last deleted range, or left untouched if no text was deleted.
|
Gtk.TextBuffer | |
delete_mark
(TextMark mark)
:
none
Deletes mark, so that it's no longer located anywhere in the
buffer.
Deletes mark, so that it's no longer located anywhere in the
buffer. Removes the reference the buffer holds to the mark, so if you haven't called g_object_ref() on the mark, it will be freed. Even if the mark isn't freed, most operations on mark become invalid, until it gets added to a buffer again with gtk_text_buffer_add_mark(). Use gtk_text_mark_get_deleted() to find out if a mark has been removed from its buffer. The "mark-deleted" signal will be emitted as notification after the mark is deleted.
|
Gtk.TextBuffer | |
delete_mark_by_name
(String name)
:
none
Deletes the mark named name; the mark must exist.
Deletes the mark named name; the mark must exist. See
gtk_text_buffer_delete_mark() for details.
|
Gtk.TextBuffer | |
Deletes the range between the "insert" and "selection_bound" marks,
that is, the currently-selected text.
Deletes the range between the "insert" and "selection_bound" marks,
that is, the currently-selected text. If interactive is TRUE, the editability of the selection will be considered (users can't delete uneditable text).
|
Gtk.TextBuffer | |
deserialize
(TextBuffer content_buffer, Atom format, TextIter iter, String data, guint32 length)
:
gboolean
This function deserializes rich text in format format and inserts
it at iter.
This function deserializes rich text in format format and inserts
it at iter. gtk_text_buffer_register_deserialize_format() or gtk_text_buffer_register_deserialize_tagset() beforehand.
|
Gtk.TextBuffer | |
This functions returns the value set with
gtk_text_buffer_deserialize_set_can_create_tags() |
Gtk.TextBuffer | |
Use this function to allow a rich text deserialization function to
create new tags in the receiving buffer.
Use this function to allow a rich text deserialization function to
create new tags in the receiving buffer. Note that using this function is almost always a bad idea, because the rich text functions you register should know how to map the rich text format they handler to your text buffers set of tags. The ability of creating new (arbitrary!) tags in the receiving buffer is meant for special rich text formats like the internal one that is registered using gtk_text_buffer_register_deserialize_tagset(), because that format is essentially a dump of the internal structure of the source buffer, including its tag names. You should allow creation of tags only if you know what you are doing, e.g. if you defined a tagset name for your application suite's text buffers and you know that it's fine to receive new tags from these buffers, because you know that your application can handle the newly created tags.
|
Gtk.TextBuffer | |
end_user_action
()
:
none
Should be paired with a call to gtk_text_buffer_begin_user_action().
Should be paired with a call to gtk_text_buffer_begin_user_action().
See that function for a full explanation.
|
Gtk.TextBuffer | |
get_bounds
()
:
Object
Retrieves the first and last iterators in the buffer, i.e.
Retrieves the first and last iterators in the buffer, i.e. the
entire buffer lies within the range [start,end).
|
Gtk.TextBuffer | |
get_char_count
()
:
gint32
Gets the number of characters in the buffer; note that characters
and bytes are not the same, you can't e.g.
Gets the number of characters in the buffer; note that characters
and bytes are not the same, you can't e.g. expect the contents of the buffer in string form to be this many bytes long. The character count is cached, so this function is very fast.
|
Gtk.TextBuffer | |
get_copy_target_list
()
:
Gtk.TargetList
This function returns the list of targets this text buffer can
provide for copying and as DND source.
This function returns the list of targets this text buffer can
provide for copying and as DND source. The targets in the list are added with info values from the GtkTextBufferTargetInfo enum, using gtk_target_list_add_rich_text_targets() and gtk_target_list_add_text_targets().
|
Gtk.TextBuffer | |
This function returns the rich text deserialize formats registered
with buffer using gtk_text_buffer_register_deserialize_format() or gtk_text_buffer_register_deserialize_tagset() GdkAtoms representing the registered formats. |
Gtk.TextBuffer | |
get_end_iter
()
:
Gtk.TextIter
Initializes iter with the "end iterator," one past the last valid
character in the text buffer.
Initializes iter with the "end iterator," one past the last valid
character in the text buffer. If dereferenced with gtk_text_iter_get_char(), the end iterator has a character value of 0. The entire buffer lies in the range from the first position in the buffer (call gtk_text_buffer_get_start_iter() to get character position 0) to the end iterator.
|
Gtk.TextBuffer | |
get_has_selection
()
:
gboolean
Indicates whether the buffer has some text currently selected.
Indicates whether the buffer has some text currently selected.
|
Gtk.TextBuffer | |
get_insert
()
:
Gtk.TextMark
Returns the mark that represents the cursor (insertion point).
Returns the mark that represents the cursor (insertion point).
Equivalent to calling gtk_text_buffer_get_mark() to get the mark named "insert", but very slightly more efficient, and involves less typing.
|
Gtk.TextBuffer | |
Obtains the location of anchor within buffer.
Obtains the location of anchor within buffer.
|
Gtk.TextBuffer | |
Initializes iter to the start of the given line.
Initializes iter to the start of the given line.
|
Gtk.TextBuffer | |
Obtains an iterator pointing to byte_index within the given line.
Obtains an iterator pointing to byte_index within the given line.
beyond the end of the line. Note characters; UTF-8 may encode one character as multiple bytes.
|
Gtk.TextBuffer | |
Obtains an iterator pointing to char_offset within the given
line.
Obtains an iterator pointing to char_offset within the given
line. The char_offset must exist, offsets off the end of the line are not allowed. Note UTF-8 may encode one character as multiple bytes.
|
Gtk.TextBuffer | |
Initializes iter with the current position of mark.
Initializes iter with the current position of mark.
|
Gtk.TextBuffer | |
Initializes iter to a position char_offset chars from the start
of the entire buffer.
Initializes iter to a position char_offset chars from the start
of the entire buffer. If char_offset is -1 or greater than the number of characters in the buffer, iter is initialized to the end iterator, the iterator one past the last valid character in the buffer.
|
Gtk.TextBuffer | |
get_line_count
()
:
gint32
Obtains the number of lines in the buffer.
Obtains the number of lines in the buffer. This value is cached, so
the function is very fast.
|
Gtk.TextBuffer | |
get_mark
(String name)
:
Gtk.TextMark
Returns the mark named name in buffer buffer, or NULL if no such
mark exists in the buffer.
Returns the mark named name in buffer buffer, or NULL if no such
mark exists in the buffer.
|
Gtk.TextBuffer | |
get_modified
()
:
gboolean
Indicates whether the buffer has been modified since the last call
to gtk_text_buffer_set_modified() set the modification flag to FALSE.
Indicates whether the buffer has been modified since the last call
to gtk_text_buffer_set_modified() set the modification flag to FALSE. Used for example to enable a "save" function in a text editor.
|
Gtk.TextBuffer | |
get_paste_target_list
()
:
Gtk.TargetList
This function returns the list of targets this text buffer supports
for pasting and as DND destination.
This function returns the list of targets this text buffer supports
for pasting and as DND destination. The targets in the list are added with info values from the GtkTextBufferTargetInfo enum, using gtk_target_list_add_rich_text_targets() and gtk_target_list_add_text_targets().
|
Gtk.TextBuffer | |
get_selection_bound
()
:
Gtk.TextMark
Returns the mark that represents the selection bound.
Returns the mark that represents the selection bound. Equivalent
to calling gtk_text_buffer_get_mark() to get the mark named "selection_bound", but very slightly more efficient, and involves less typing. The currently-selected text in buffer is the region between the "selection_bound" and "insert" marks. If "selection_bound" and "insert" are in the same place, then there is no current selection. gtk_text_buffer_get_selection_bounds() is another convenient function for handling the selection, if you just want to know whether there's a selection and what its bounds are.
|
Gtk.TextBuffer | |
Returns TRUE if some text is selected; places the bounds
of the selection in start and end (if the selection has length 0, then start and end are filled in with the same value).
Returns TRUE if some text is selected; places the bounds
of the selection in start and end (if the selection has length 0, then start and end are filled in with the same value). NULL, then they are not filled in, but the return value still indicates whether text is selected.
|
Gtk.TextBuffer | |
This function returns the rich text serialize formats registered
with buffer using gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_serialize_tagset() GdkAtoms representing the registered formats. |
Gtk.TextBuffer | |
Returns the text in the range [start,end).
Returns the text in the range [start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if 0xFFFC character whenever the buffer contains embedded images, so byte and character indexes into the returned string and character indexes into the buffer. Contrast with gtk_text_buffer_get_text(). Note that 0xFFFC can occur in normal text as well, so it is not a reliable indicator that a pixbuf or widget is in the buffer.
|
Gtk.TextBuffer | |
get_start_iter
()
:
Gtk.TextIter
Initialized iter with the first position in the text buffer.
Initialized iter with the first position in the text buffer. This
is the same as using gtk_text_buffer_get_iter_at_offset() to get the iter at character offset 0.
|
Gtk.TextBuffer | |
get_tag_table
()
:
Gtk.TextTagTable
Get the GtkTextTagTable associated with this buffer.
Get the GtkTextTagTable associated with this buffer.
|
Gtk.TextBuffer | |
Returns the text in the range [start,end).
Returns the text in the range [start,end). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if representing embedded images, so byte and character indexes into the returned string do and character indexes into the buffer. Contrast with gtk_text_buffer_get_slice().
|
Gtk.TextBuffer | |
Inserts len bytes of text at position iter.
Inserts len bytes of text at position iter. If len is -1,
entirety. Emits the "insert-text" signal; insertion actually occurs in the default handler for the signal. iter is invalidated when insertion occurs (because the buffer contents change), but the default signal handler revalidates it to point to the end of the inserted text.
|
Gtk.TextBuffer | |
Simply calls gtk_text_buffer_insert(), using the current
cursor position as the insertion point. |
Gtk.TextBuffer | |
insert_child_anchor
(TextIter iter, TextChildAnchor anchor)
:
none
Inserts a child widget anchor into the text buffer at iter.
Inserts a child widget anchor into the text buffer at iter. The
anchor will be counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for child anchors, but the "text" variants do not. E.g. see gtk_text_buffer_get_slice() and gtk_text_buffer_get_text(). Consider gtk_text_buffer_create_child_anchor() as a more convenient alternative to this function. The buffer will add a reference to the anchor, so you can unref it after insertion.
|
Gtk.TextBuffer | |
Like gtk_text_buffer_insert(), but the insertion will not occur if
want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive).
Like gtk_text_buffer_insert(), but the insertion will not occur if
want to prevent insertions at ineditable locations if the insertion results from a user action (is interactive). have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here.
|
Gtk.TextBuffer | |
Calls gtk_text_buffer_insert_interactive() at the cursor
position.
Calls gtk_text_buffer_insert_interactive() at the cursor
position. have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here.
|
Gtk.TextBuffer | |
Inserts an image into the text buffer at iter.
Inserts an image into the text buffer at iter. The image will be
counted as one character in character counts, and when obtaining the buffer contents as a string, will be represented by the Unicode "object replacement character" 0xFFFC. Note that the "slice" variants for obtaining portions of the buffer as a string include this character for pixbufs, but the "text" variants do not. e.g. see gtk_text_buffer_get_slice() and gtk_text_buffer_get_text().
|
Gtk.TextBuffer | |
Copies text, tags, and pixbufs between start and end (the order
of start and end doesn't matter) and inserts the copy at iter.
Copies text, tags, and pixbufs between start and end (the order
of start and end doesn't matter) and inserts the copy at iter. Used instead of simply getting/inserting text because it preserves images and tags. If start and end are in a different buffer from Implemented via emissions of the insert_text and apply_tag signals, so expect those.
|
Gtk.TextBuffer | |
insert_range_interactive
(TextIter iter, TextIter start, TextIter end, gboolean default_editable)
:
gboolean
Same as gtk_text_buffer_insert_range(), but does nothing if the
insertion point isn't editable.
Same as gtk_text_buffer_insert_range(), but does nothing if the
insertion point isn't editable. The default_editable parameter indicates whether the text is editable at iter if no tags enclosing iter affect editability. Typically the result of gtk_text_view_get_editable() is appropriate here.
|
Gtk.TextBuffer | |
Moves mark to the new location where.
Moves mark to the new location where. Emits the "mark-set" signal
as notification of the move.
|
Gtk.TextBuffer | |
Moves the mark named name (which must exist) to location where.
Moves the mark named name (which must exist) to location where.
See gtk_text_buffer_move_mark() for details.
|
Gtk.TextBuffer | |
Pastes the contents of a clipboard at the insertion point, or
we'll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.
Pastes the contents of a clipboard at the insertion point, or
we'll ask for the paste data and return, and at some point later after the main loop runs, the paste data will be inserted.)
|
Gtk.TextBuffer | |
place_cursor
(TextIter where)
:
none
This function moves the "insert" and "selection_bound" marks
simultaneously.
This function moves the "insert" and "selection_bound" marks
simultaneously. If you move them to the same place in two steps with gtk_text_buffer_move_mark(), you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized.
|
Gtk.TextBuffer | |
register_deserialize_format
(String mime_type, Function function, void* user_data, Function user_data_destroy)
:
Gdk.Atom
This function registers a rich text deserialization function along with
its mime_type with the passed buffer.
This function registers a rich text deserialization function along with
its mime_type with the passed buffer. newly registered format's mime-type.
|
Gtk.TextBuffer | |
This function registers GTK+'s internal rich text serialization
format with the passed buffer.
This function registers GTK+'s internal rich text serialization
format with the passed buffer. See gtk_text_buffer_register_serialize_tagset() for details. newly registered format's mime-type.
|
Gtk.TextBuffer | |
register_serialize_format
(String mime_type, Function function, void* user_data, Function user_data_destroy)
:
Gdk.Atom
This function registers a rich text serialization function along with
its mime_type with the passed buffer.
This function registers a rich text serialization function along with
its mime_type with the passed buffer. newly registered format's mime-type.
|
Gtk.TextBuffer | |
This function registers GTK+'s internal rich text serialization
format with the passed buffer.
This function registers GTK+'s internal rich text serialization
format with the passed buffer. The internal format does not comply to any standard rich text format and only works between GtkTextBuffer instances. It is capable of serializing all of a text buffer's tags and embedded pixbufs. This function is just a wrapper around gtk_text_buffer_register_serialize_format(). The mime type used for registering is "application/x-gtk-text-buffer-rich-text", or "application/x-gtk-text-buffer-rich-text;format=tagset_name" if a The tagset_name can be used to restrict the transfer of rich text to buffers with compatible sets of tags, in order to avoid unknown tags from being pasted. It is probably the common case to pass an identifier != NULL here, since the NULL tagset requires the receiving buffer to deal with with pasting of arbitrary tags. newly registered format's mime-type.
|
Gtk.TextBuffer | |
Removes all tags in the range between start and end.
Removes all tags in the range between start and end. Be careful
with this function; it could remove tags added in code unrelated to the code you're currently writing. That is, using this function is probably a bad idea if you have two or more unrelated code sections that add tags.
|
Gtk.TextBuffer | |
remove_selection_clipboard
(Clipboard clipboard)
:
none
Removes a GtkClipboard added with
gtk_text_buffer_add_selection_clipboard().
Removes a GtkClipboard added with
gtk_text_buffer_add_selection_clipboard().
|
Gtk.TextBuffer | |
Emits the "remove-tag" signal.
Emits the "remove-tag" signal. The default handler for the signal
removes all occurrences of tag from the given range. start and
|
Gtk.TextBuffer | |
Calls gtk_text_tag_table_lookup() on the buffer's tag table to
get a GtkTextTag, then calls gtk_text_buffer_remove_tag().
Calls gtk_text_tag_table_lookup() on the buffer's tag table to
get a GtkTextTag, then calls gtk_text_buffer_remove_tag().
|
Gtk.TextBuffer | |
This function moves the "insert" and "selection_bound" marks
simultaneously.
This function moves the "insert" and "selection_bound" marks
simultaneously. If you move them in two steps with gtk_text_buffer_move_mark(), you will temporarily select a region in between their old and new locations, which can be pretty inefficient since the temporarily-selected region will force stuff to be recalculated. This function moves them as a unit, which can be optimized.
|
Gtk.TextBuffer | |
serialize
(TextBuffer content_buffer, Atom format, TextIter start, TextIter end, Object out_values)
:
String
This function serializes the portion of text between start
and end in the rich text format represented by format.
This function serializes the portion of text between start
and end in the rich text format represented by format. gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_serialize_tagset() beforehand. data, encoded as format
|
Gtk.TextBuffer | |
set_modified
(gboolean setting)
:
none
Used to keep track of whether the buffer has been modified since the
last time it was saved.
Used to keep track of whether the buffer has been modified since the
last time it was saved. Whenever the buffer is saved to disk, call gtk_text_buffer_set_modified (buffer, FALSE). When the buffer is modified, it will automatically toggled on the modified bit again. When the modified bit flips, the buffer emits a "modified-changed" signal.
|
Gtk.TextBuffer | |
Gtk.TextBuffer | ||
unregister_deserialize_format
(Atom format)
:
none
This function unregisters a rich text format that was previously
registered using gtk_text_buffer_register_deserialize_format() or gtk_text_buffer_register_deserialize_tagset().
This function unregisters a rich text format that was previously
registered using gtk_text_buffer_register_deserialize_format() or gtk_text_buffer_register_deserialize_tagset().
|
Gtk.TextBuffer | |
unregister_serialize_format
(Atom format)
:
none
This function unregisters a rich text format that was previously
registered using gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_serialize_tagset()
This function unregisters a rich text format that was previously
registered using gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_serialize_tagset()
|
Gtk.TextBuffer |
Event | Defined By | |
---|---|---|
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer.
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer. Applying actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them). gtk_text_buffer_apply_tag(), gtk_text_buffer_insert_with_tags(), gtk_text_buffer_insert_range().
|
Gtk.TextBuffer | |
begin_user_action (TextBuffer self)
:
none
The ::begin-user-action signal is emitted at the beginning of a single
user-visible operation on a GtkTextBuffer.
The ::begin-user-action signal is emitted at the beginning of a single
user-visible operation on a GtkTextBuffer. gtk_text_buffer_begin_user_action(), gtk_text_buffer_insert_interactive(), gtk_text_buffer_insert_range_interactive(), gtk_text_buffer_delete_interactive(), gtk_text_buffer_backspace(), gtk_text_buffer_delete_selection().
|
Gtk.TextBuffer | |
changed (TextBuffer self)
:
none
The ::changed signal is emitted when the content of a GtkTextBuffer
has changed.
The ::changed signal is emitted when the content of a GtkTextBuffer
has changed.
|
Gtk.TextBuffer | |
The ::delete-range signal is emitted to delete a range
from a GtkTextBuffer.
The ::delete-range signal is emitted to delete a range
from a GtkTextBuffer. Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them). The default signal handler revalidates the start and end iters to both point point to the location where text was deleted. Handlers which run after the default handler (see g_signal_connect_after()) do not have access to the deleted text.
|
Gtk.TextBuffer | |
end_user_action (TextBuffer self)
:
none
The ::end-user-action signal is emitted at the end of a single
user-visible operation on the GtkTextBuffer.
The ::end-user-action signal is emitted at the end of a single
user-visible operation on the GtkTextBuffer. gtk_text_buffer_end_user_action(), gtk_text_buffer_insert_interactive(), gtk_text_buffer_insert_range_interactive(), gtk_text_buffer_delete_interactive(), gtk_text_buffer_backspace(), gtk_text_buffer_delete_selection(), gtk_text_buffer_backspace().
|
Gtk.TextBuffer | |
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor in a GtkTextBuffer.
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor in a GtkTextBuffer. Insertion actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted anchor.
|
Gtk.TextBuffer | |
The ::insert-pixbuf signal is emitted to insert a GdkPixbuf
in a GtkTextBuffer.
The ::insert-pixbuf signal is emitted to insert a GdkPixbuf
in a GtkTextBuffer. Insertion actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to be placed after the inserted pixbuf.
|
Gtk.TextBuffer | |
The ::insert-text signal is emitted to insert text in a GtkTextBuffer.
The ::insert-text signal is emitted to insert text in a GtkTextBuffer.
Insertion actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the location iter (or has to revalidate it). The default signal handler revalidates it to point to the end of the inserted text. gtk_text_buffer_insert(), gtk_text_buffer_insert_range().
|
Gtk.TextBuffer | |
mark_deleted (TextBuffer self, TextMark mark)
:
none
The ::mark-deleted signal is emitted as notification
after a GtkTextMark is deleted.
The ::mark-deleted signal is emitted as notification
after a GtkTextMark is deleted. See also: gtk_text_buffer_delete_mark().
|
Gtk.TextBuffer | |
The ::mark-set signal is emitted as notification
after a GtkTextMark is set.
The ::mark-set signal is emitted as notification
after a GtkTextMark is set. gtk_text_buffer_create_mark(), gtk_text_buffer_move_mark().
|
Gtk.TextBuffer | |
modified_changed (TextBuffer self)
:
none
The ::modified-changed signal is emitted when the modified bit of a
GtkTextBuffer flips.
The ::modified-changed signal is emitted when the modified bit of a
GtkTextBuffer flips. See also: gtk_text_buffer_set_modified().
|
Gtk.TextBuffer | |
paste_done (TextBuffer self, Clipboard since)
:
none
The paste-done signal is emitted after paste operation has been completed.
The paste-done signal is emitted after paste operation has been completed.
This is useful to properly scroll the view to the end of the pasted text. See gtk_text_buffer_paste_clipboard() for more details.
|
Gtk.TextBuffer | |
The ::remove-tag signal is emitted to remove all occurrences of tag from
a range of text in a GtkTextBuffer.
The ::remove-tag signal is emitted to remove all occurrences of tag from
a range of text in a GtkTextBuffer. Removal actually occurs in the default handler. Note that if your handler runs before the default handler it must not invalidate the start and end iters (or has to revalidate them). gtk_text_buffer_remove_tag().
|
Gtk.TextBuffer |
Class / Namespace | Method / Signal / Properties |
---|---|
Gtk
Method |
Determines if any of the targets in targets can be used to
provide rich text. |
Gtk.Clipboard
Method |
Requests the contents of the clipboard as rich text.
|
Gtk.Clipboard
Method |
Requests the contents of the clipboard as rich text.
|
Gtk.Clipboard
Method |
wait_is_rich_text_available
(TextBuffer buffer)
:
gboolean
Test to see if there is rich text available to be pasted
This is done by requesting the TARGETS atom and checking if it contains any of the supported rich text targets. |
Gtk.SelectionData
Method |
targets_include_rich_text
(TextBuffer buffer)
:
gboolean
Given a GtkSelectionData object holding a list of targets,
determines if any of the targets in targets can be used to provide rich text. |
Gtk.TargetList
Method |
Appends the rich text targets registered with
gtk_text_buffer_register_serialize_format() or gtk_text_buffer_register_deserialize_format() to the target list. |
Gtk.TextIter
Method |
get_buffer
()
:
Gtk.TextBuffer
Returns the GtkTextBuffer this iterator is associated with.
|
Gtk.TextMark
Method |
get_buffer
()
:
Gtk.TextBuffer
Gets the buffer this mark is located inside,
or NULL if the mark is deleted. |
Gtk.TextView
Property |
buffer : Gtk.TextBuffer
|
Gtk.TextView
Method |
Create a new Gtk.TextView
|
Gtk.TextView
Method |
get_buffer
()
:
Gtk.TextBuffer
Returns the GtkTextBuffer being displayed by this text view.
|
Gtk.TextView
Method |
set_buffer
(TextBuffer buffer)
:
none
Sets buffer as the buffer being displayed by text_view.
|
GtkSource.CompletionWords
Method |
register
(TextBuffer buffer)
:
none
|
GtkSource.CompletionWords
Method |
unregister
(TextBuffer buffer)
:
none
|