Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Struct Gtk.TextIter

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-3.0.gir
C documentation: GtkTextIter
Struct : TextIter
You may wish to begin by reading the text widget
conceptual overview which gives an overview of all the objects and data
types related to the text widget and how they work together.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Gtk.TextIter ()
Create a new Gtk.TextIter
Create a new Gtk.TextIter
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gtk.TextBuffer
Signal
apply_tag (TextBuffer self, TextTag tag, TextIter start, TextIter end) : none
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer.
Gtk.TextBuffer
Signal
delete_range (TextBuffer self, TextIter start, TextIter end) : none
The ::delete-range signal is emitted to delete a range
from a GtkTextBuffer.
Gtk.TextBuffer
Signal
insert_child_anchor (TextBuffer self, TextIter location, TextChildAnchor anchor) : none
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor in a GtkTextBuffer.
Gtk.TextBuffer
Signal
insert_pixbuf (TextBuffer self, TextIter location, Pixbuf pixbuf) : none
The ::insert-pixbuf signal is emitted to insert a GdkPixbuf
in a GtkTextBuffer.
Gtk.TextBuffer
Signal
insert_text (TextBuffer self, TextIter location, String text, gint32 len) : none
The ::insert-text signal is emitted to insert text in a GtkTextBuffer.
Gtk.TextBuffer
Signal
mark_set (TextBuffer self, TextIter location, TextMark mark) : none
The ::mark-set signal is emitted as notification
after a GtkTextMark is set.
Gtk.TextBuffer
Signal
remove_tag (TextBuffer self, TextTag tag, TextIter start, TextIter end) : none
The ::remove-tag signal is emitted to remove all occurrences of tag from
a range of text in a GtkTextBuffer.
Gtk.TextBuffer
Method
add_mark (TextMark mark, TextIter where) : none
Adds the mark at position where.
Gtk.TextBuffer
Method
apply_tag (TextTag tag, TextIter start, TextIter end) : none
Emits the "apply-tag" signal on buffer.
Gtk.TextBuffer
Method
apply_tag_by_name (String name, TextIter start, TextIter end) : none
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
Method
backspace (TextIter iter, gboolean interactive, gboolean default_editable) : gboolean
Performs the appropriate action as if the user hit the delete
key with the cursor at the position specified by iter.
Gtk.TextBuffer
Method
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().
Gtk.TextBuffer
Method
create_mark (String mark_name, TextIter where, gboolean left_gravity) : Gtk.TextMark
Creates a mark at position where.
Gtk.TextBuffer
Method
delete (TextIter start, TextIter end) : none
Deletes text between start and end.
Gtk.TextBuffer
Method
delete_interactive (TextIter start_iter, TextIter end_iter, gboolean default_editable) : gboolean
Deletes all editable text in the given range.
Gtk.TextBuffer
Method
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.
Gtk.TextBuffer
Method
get_bounds () : Object
Retrieves the first and last iterators in the buffer, i.e.
Gtk.TextBuffer
Method
get_end_iter () : Gtk.TextIter
Initializes iter with the "end iterator," one past the last valid
character in the text buffer.
Gtk.TextBuffer
Method
get_iter_at_child_anchor (TextIter iter, TextChildAnchor anchor) : Gtk.TextIter
Obtains the location of anchor within buffer.
Gtk.TextBuffer
Method
get_iter_at_line (TextIter iter, gint32 line_number) : Gtk.TextIter
Initializes iter to the start of the given line.
Gtk.TextBuffer
Method
get_iter_at_line_index (TextIter iter, gint32 line_number, gint32 byte_index) : Gtk.TextIter
Obtains an iterator pointing to byte_index within the given line.
Gtk.TextBuffer
Method
get_iter_at_line_offset (TextIter iter, gint32 line_number, gint32 char_offset) : Gtk.TextIter
Obtains an iterator pointing to char_offset within the given
line.
Gtk.TextBuffer
Method
get_iter_at_mark (TextIter iter, TextMark mark) : Gtk.TextIter
Initializes iter with the current position of mark.
Gtk.TextBuffer
Method
get_iter_at_offset (TextIter iter, gint32 char_offset) : Gtk.TextIter
Initializes iter to a position char_offset chars from the start
of the entire buffer.
Gtk.TextBuffer
Method
get_slice (TextIter start, TextIter end, gboolean include_hidden_chars) : String
Returns the text in the range [start,end).
Gtk.TextBuffer
Method
get_start_iter () : Gtk.TextIter
Initialized iter with the first position in the text buffer.
Gtk.TextBuffer
Method
get_text (TextIter start, TextIter end, gboolean include_hidden_chars) : String
Returns the text in the range [start,end).
Gtk.TextBuffer
Method
insert (TextIter iter, String text, gint32 len) : none
Inserts len bytes of text at position iter.
Gtk.TextBuffer
Method
insert_child_anchor (TextIter iter, TextChildAnchor anchor) : none
Inserts a child widget anchor into the text buffer at iter.
Gtk.TextBuffer
Method
insert_interactive (TextIter iter, String text, gint32 len, gboolean default_editable) : gboolean
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).
Gtk.TextBuffer
Method
insert_pixbuf (TextIter iter, Pixbuf pixbuf) : none
Inserts an image into the text buffer at iter.
Gtk.TextBuffer
Method
insert_range (TextIter iter, TextIter start, TextIter end) : none
Copies text, tags, and pixbufs between start and end (the order
of start and end doesn't matter) and inserts the copy at iter.
Gtk.TextBuffer
Method
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.
Gtk.TextBuffer
Method
move_mark (TextMark mark, TextIter where) : none
Moves mark to the new location where.
Gtk.TextBuffer
Method
move_mark_by_name (String name, TextIter where) : none
Moves the mark named name (which must exist) to location where.
Gtk.TextBuffer
Method
paste_clipboard (Clipboard clipboard, TextIter override_location, gboolean default_editable) : none
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
Method
place_cursor (TextIter where) : none
This function moves the "insert" and "selection_bound" marks
simultaneously.
Gtk.TextBuffer
Method
remove_all_tags (TextIter start, TextIter end) : none
Removes all tags in the range between start and end.
Gtk.TextBuffer
Method
remove_tag (TextTag tag, TextIter start, TextIter end) : none
Emits the "remove-tag" signal.
Gtk.TextBuffer
Method
remove_tag_by_name (String name, TextIter start, TextIter end) : none
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
Method
select_range (TextIter ins, TextIter bound) : none
This function moves the "insert" and "selection_bound" marks
simultaneously.
Gtk.TextBuffer
Method
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.
Gtk.TextTag
Signal
event (TextTag self, Object object, Event event, TextIter iter) : gboolean
The ::event signal is emitted when an event occurs on a region of the
buffer marked with this tag.
Gtk.TextTag
Method
event (Object event_object, Event event, TextIter iter) : gboolean
Emits the "event" signal on the GtkTextTag.
Gtk.TextView
Method
backward_display_line (TextIter iter) : gboolean
Moves the given iter backward by one display (wrapped) line.
Gtk.TextView
Method
backward_display_line_start (TextIter iter) : gboolean
Moves the given iter backward to the next display line start.
Gtk.TextView
Method
forward_display_line (TextIter iter) : gboolean
Moves the given iter forward by one display (wrapped) line.
Gtk.TextView
Method
forward_display_line_end (TextIter iter) : gboolean
Moves the given iter forward to the next display line end.
Gtk.TextView
Method
get_cursor_locations (TextIter iter) : Object
Given an iter within a text layout, determine the positions of the
strong and weak cursors if the insertion point is at that
iterator.
Gtk.TextView
Method
get_iter_at_location (TextIter iter, gint32 x, gint32 y) : Gtk.TextIter
Retrieves the iterator at buffer coordinates x and y.
Gtk.TextView
Method
get_iter_at_position (TextIter iter, gint32 trailing, gint32 x, gint32 y) : Object
Retrieves the iterator pointing to the character at buffer
coordinates x and y.
Gtk.TextView
Method
get_iter_location (TextIter iter) : cairo.RectangleInt
Gets a rectangle which roughly contains the character at iter.
Gtk.TextView
Method
get_line_at_y (TextIter target_iter, gint32 y) : Object
Gets the GtkTextIter at the start of the line containing
the coordinate y.
Gtk.TextView
Method
get_line_yrange (TextIter iter) : Object
Gets the y coordinate of the top of the line containing iter,
and the height of the line.
Gtk.TextView
Method
move_visually (TextIter iter, gint32 count) : gboolean
Move the iterator a given number of characters visually, treating
it as the strong cursor position.
Gtk.TextView
Method
scroll_to_iter (TextIter iter, gdouble within_margin, gboolean use_align, gdouble xalign, gdouble yalign) : gboolean
Scrolls text_view so that iter is on the screen in the position
indicated by xalign and yalign.
Gtk.TextView
Method
starts_display_line (TextIter iter) : gboolean
Determines whether iter is at the start of a display line.
GtkSource.Buffer
Signal
bracket_matched (Buffer self, TextIter object, BracketMatchType p0) : none
GtkSource.Buffer
Signal
highlight_updated (Buffer self, TextIter object, TextIter p0) : none
GtkSource.Buffer
Method
backward_iter_to_source_mark (TextIter iter, String category) : gboolean
GtkSource.Buffer
Method
create_source_mark (String name, String category, TextIter where) : GtkSource.Mark
GtkSource.Buffer
Method
ensure_highlight (TextIter start, TextIter end) : none
GtkSource.Buffer
Method
forward_iter_to_source_mark (TextIter iter, String category) : gboolean
GtkSource.Buffer
Method
get_context_classes_at_iter (TextIter iter) : Array
GtkSource.Buffer
Method
get_source_marks_at_iter (TextIter iter, String category) : Array
GtkSource.Buffer
Method
iter_backward_to_context_class_toggle (TextIter iter, String context_class) : gboolean
GtkSource.Buffer
Method
iter_forward_to_context_class_toggle (TextIter iter, String context_class) : gboolean
GtkSource.Buffer
Method
iter_has_context_class (TextIter iter, String context_class) : gboolean
GtkSource.Buffer
Method
remove_source_marks (TextIter start, TextIter end, String category) : none
GtkSource.Completion
Method
create_context (TextIter position) : GtkSource.CompletionContext
GtkSource.Completion
Method
move_window (TextIter iter) : none
GtkSource.CompletionContext
Property
iter : Gtk.TextIter
GtkSource.CompletionContext
Method
get_iter () : Gtk.TextIter
GtkSource.CompletionInfo
Method
move_to_iter (TextView view, TextIter iter) : none
GtkSource.CompletionProvider
Method
activate_proposal (CompletionProposal proposal, TextIter iter) : gboolean
GtkSource.CompletionProvider
Method
get_start_iter (CompletionContext context, CompletionProposal proposal, TextIter iter) : gboolean
GtkSource.GutterRenderer
Signal
query_data (GutterRenderer self, TextIter object, TextIter p0, GutterRendererState p1) : none
GtkSource.GutterRenderer
Method
activate (TextIter iter, RectangleInt area, Event event) : none
GtkSource.GutterRenderer
Method
begin (Context cr, RectangleInt background_area, RectangleInt cell_area, TextIter start, TextIter end) : none
GtkSource.GutterRenderer
Method
draw (Context cr, RectangleInt background_area, RectangleInt cell_area, TextIter start, TextIter end, GutterRendererState state) : none
GtkSource.GutterRenderer
Method
query_activatable (TextIter iter, RectangleInt area, Event event) : gboolean
GtkSource.GutterRenderer
Method
query_data (TextIter start, TextIter end, GutterRendererState state) : none
GtkSource.GutterRenderer
Method
query_tooltip (TextIter iter, RectangleInt area, gint32 x, gint32 y, Tooltip tooltip) : gboolean
GtkSource.View
Signal
line_mark_activated (View self, TextIter object, Event p0) : none
GtkSource.View
Signal
smart_home_end (View self, TextIter object, gint32 p0) : none
GtkSource.View
Method
get_visual_column (TextIter iter) : guint32
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:15:29 GMT+0800 (HKT)