Back to Seed Clases

Gtk


Classes

Interfaces

Structs

Unions

Enums

Struct Gtk.TextIter

Import line: Gtk = imports.gi.Gtk;
GIR File: Gtk-2.0.gir
C documentation: GtkTextIter
Struct : TextIter
  Show / Hide Inherited methods, properties and signals
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, Number 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
insert (TextIter iter, String text, Number len) : none
Inserts len bytes of text at position iter.
Gtk.TextBuffer
Method
insert_interactive (TextIter iter, String text, Number len, Boolean default_editable) : Boolean
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_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, Boolean default_editable) : Boolean
Same as gtk_text_buffer_insert_range(), but does nothing if the insertion point isn't editable.
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, Boolean default_editable) : Boolean
Deletes all editable text in the given range.
Gtk.TextBuffer
Method
backspace (TextIter iter, Boolean interactive, Boolean default_editable) : Boolean
Performs the appropriate action as if the user hit the delete key with the cursor at the position specified by iter.
Gtk.TextBuffer
Method
get_text (TextIter start, TextIter end, Boolean include_hidden_chars) : String
Returns the text in the range [start,end).
Gtk.TextBuffer
Method
get_slice (TextIter start, TextIter end, Boolean include_hidden_chars) : String
Returns the text in the range [start,end).
Gtk.TextBuffer
Method
insert_pixbuf (TextIter iter, Pixbuf pixbuf) : none
Inserts an image into the text buffer at 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
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
add_mark (TextMark mark, TextIter where) : none
Adds the mark at position where.
Gtk.TextBuffer
Method
create_mark (String mark_name, TextIter where, Boolean left_gravity) : Gtk.TextMark
Creates a mark at position where.
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
place_cursor (TextIter where) : none
This function moves the "insert" and "selection_bound" marks simultaneously.
Gtk.TextBuffer
Method
select_range (TextIter ins, TextIter bound) : none
This function moves the "insert" and "selection_bound" marks simultaneously.
Gtk.TextBuffer
Method
apply_tag (TextTag tag, TextIter start, TextIter end) : none
Emits the "apply-tag" signal on buffer.
Gtk.TextBuffer
Method
remove_tag (TextTag tag, TextIter start, TextIter end) : none
Emits the "remove-tag" signal.
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
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
remove_all_tags (TextIter start, TextIter end) : none
Removes all tags in the range between start and end.
Gtk.TextBuffer
Method
get_iter_at_line_offset (TextIter iter, Number line_number, Number char_offset) : none
Obtains an iterator pointing to char_offset within the given line.
Gtk.TextBuffer
Method
get_iter_at_line_index (TextIter iter, Number line_number, Number byte_index) : none
Obtains an iterator pointing to byte_index within the given line.
Gtk.TextBuffer
Method
get_iter_at_offset (TextIter iter, Number char_offset) : none
Initializes iter to a position char_offset chars from the start of the entire buffer.
Gtk.TextBuffer
Method
get_iter_at_line (TextIter iter, Number line_number) : none
Initializes iter to the start of the given line.
Gtk.TextBuffer
Method
get_start_iter (TextIter iter) : none
Initialized iter with the first position in the text buffer.
Gtk.TextBuffer
Method
get_end_iter (TextIter iter) : none
Initializes iter with the "end iterator," one past the last valid character in the text buffer.
Gtk.TextBuffer
Method
get_bounds (TextIter start, TextIter end) : none
Retrieves the first and last iterators in the buffer, i.e.
Gtk.TextBuffer
Method
get_iter_at_mark (TextIter iter, TextMark mark) : none
Initializes iter with the current position of mark.
Gtk.TextBuffer
Method
get_iter_at_child_anchor (TextIter iter, TextChildAnchor anchor) : none
Obtains the location of anchor within buffer.
Gtk.TextBuffer
Method
paste_clipboard (Clipboard clipboard, TextIter override_location, Boolean default_editable) : none
Pastes the contents of a clipboard at the insertion point, or at 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
get_selection_bounds (TextIter start, TextIter end) : Boolean
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).
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.TextBuffer
Method
deserialize (TextBuffer content_buffer, Atom format, TextIter iter, String data, Number length) : Boolean
This function deserializes rich text in format format and inserts it at iter.
Gtk.TextLayout
Method
get_line_at_y (TextIter target_iter, Number y) : Number
Get the iter at the beginning of the line which is displayed at the given y.
Gtk.TextLayout
Method
get_iter_at_pixel (TextIter iter, Number x, Number y) : none
Gtk.TextLayout
Method
get_iter_at_position (TextIter iter, Number trailing, Number x, Number y) : Number
Gtk.TextLayout
Method
invalidate (TextIter start, TextIter end) : none
Gtk.TextLayout
Method
invalidate_cursors (TextIter start, TextIter end) : none
Gtk.TextLayout
Method
validate_yrange (TextIter anchor_line, Number y0_, Number y1_) : none
Ensure that a region of a GtkTextLayout is valid.
Gtk.TextLayout
Method
get_iter_location (TextIter iter, Rectangle rect) : none
Gtk.TextLayout
Method
get_line_yrange (TextIter iter) : Object
Find the range of y coordinates for the paragraph containing the given iter.
Gtk.TextLayout
Method
get_cursor_locations (TextIter iter, Rectangle strong_pos, Rectangle weak_pos) : none
Given an iterator within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator.
Gtk.TextLayout
Method
clamp_iter_to_vrange (TextIter iter, Number top, Number bottom) : Boolean
If the iterator is not fully in the range top <= y < bottom, then, if possible, move it the minimum distance so that the iterator in this range.
Gtk.TextLayout
Method
move_iter_to_line_end (TextIter iter, Number direction) : Boolean
Move to the beginning or end of a display line.
Gtk.TextLayout
Method
move_iter_to_previous_line (TextIter iter) : Boolean
Move the iterator to the beginning of the previous line.
Gtk.TextLayout
Method
move_iter_to_next_line (TextIter iter) : Boolean
Move the iterator to the beginning of the next line.
Gtk.TextLayout
Method
move_iter_to_x (TextIter iter, Number x) : none
Keeping the iterator on the same line of the layout, move it to the specified X coordinate.
Gtk.TextLayout
Method
move_iter_visually (TextIter iter, Number count) : Boolean
Move the iterator a given number of characters visually, treating it as the strong cursor position.
Gtk.TextLayout
Method
iter_starts_line (TextIter iter) : Boolean
Tests whether an iterator is at the start of a display line.
Gtk.TextLayout
Method
get_iter_at_line (TextIter iter, TextLine line, Number byte_offset) : none
Gtk.TextTag
Signal
event (TextTag self, Object object, Event event, TextIter iter) : Boolean
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) : Boolean
Emits the "event" signal on the GtkTextTag.
Gtk.TextView
Method
scroll_to_iter (TextIter iter, Number within_margin, Boolean use_align, Number xalign, Number yalign) : Boolean
Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign.
Gtk.TextView
Method
get_iter_location (TextIter iter, Rectangle location) : none
Gets a rectangle which roughly contains the character at iter.
Gtk.TextView
Method
get_iter_at_location (TextIter iter, Number x, Number y) : none
Retrieves the iterator at buffer coordinates x and y.
Gtk.TextView
Method
get_iter_at_position (TextIter iter, Number trailing, Number x, Number y) : Number
Retrieves the iterator pointing to the character at buffer coordinates x and 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
get_line_at_y (TextIter target_iter, Number y) : Number
Gets the GtkTextIter at the start of the line containing the coordinate y.
Gtk.TextView
Method
forward_display_line (TextIter iter) : Boolean
Moves the given iter forward by one display (wrapped) line.
Gtk.TextView
Method
backward_display_line (TextIter iter) : Boolean
Moves the given iter backward by one display (wrapped) line.
Gtk.TextView
Method
forward_display_line_end (TextIter iter) : Boolean
Moves the given iter forward to the next display line end.
Gtk.TextView
Method
backward_display_line_start (TextIter iter) : Boolean
Moves the given iter backward to the next display line start.
Gtk.TextView
Method
starts_display_line (TextIter iter) : Boolean
Determines whether iter is at the start of a display line.
Gtk.TextView
Method
move_visually (TextIter iter, Number count) : Boolean
Move the iterator a given number of characters visually, treating it as the strong cursor position.
GtkSource
Method
GtkSource.iter_backward_search (TextIter iter, String str, SearchFlags flags, TextIter match_start, TextIter match_end, TextIter limit) : Boolean
Same as gtk_text_iter_backward_search(), but supports case insensitive searching.
GtkSource
Method
GtkSource.iter_forward_search (TextIter iter, String str, SearchFlags flags, TextIter match_start, TextIter match_end, TextIter limit) : Boolean
Searches forward for str.
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
ensure_highlight (TextIter start, TextIter end) : none
Forces buffer to analyze and highlight the given area synchronously.
GtkSource.Buffer
Method
create_source_mark (String name, String category, TextIter where) : GtkSource.Mark
Creates a source mark in the buffer of category category.
GtkSource.Buffer
Method
forward_iter_to_source_mark (TextIter iter, String category) : Boolean
Moves iter to the position of the next GtkSourceMark of the given next source mark can be of any category.
GtkSource.Buffer
Method
backward_iter_to_source_mark (TextIter iter, String category) : Boolean
Moves iter to the position of the previous GtkSourceMark of the given category.
GtkSource.Buffer
Method
get_source_marks_at_iter (TextIter iter, String category) : Array
Returns the list of marks of the given category at iter.
GtkSource.Buffer
Method
remove_source_marks (TextIter start, TextIter end, String category) : none
Remove all marks of category between start and end from the buffer.
GtkSource.Buffer
Method
iter_has_context_class (TextIter iter, String context_class) : Boolean
Check if the class context_klass is set on iter.
GtkSource.Buffer
Method
get_context_classes_at_iter (TextIter iter) : Array
Get all defined context classes at iter.
GtkSource.Buffer
Method
iter_forward_to_context_class_toggle (TextIter iter, String context_class) : Boolean
Moves forward to the next toggle (on or off) of the context class.
GtkSource.Buffer
Method
iter_backward_to_context_class_toggle (TextIter iter, String context_class) : Boolean
Moves backward to the next toggle (on or off) of the context class.
GtkSource.Completion
Method
GtkSource.Completion.utils_get_word_iter (Buffer source_buffer, TextIter current, TextIter start_word, TextIter end_word) : String
GtkSource.Completion
Method
GtkSource.Completion.utils_replace_word (Buffer source_buffer, TextIter iter, String text, Number len) : none
GtkSource.Completion
Method
GtkSource.Completion.utils_move_to_iter (Window window, View view, TextIter iter) : none
GtkSource.Completion
Method
create_context (TextIter position) : GtkSource.CompletionContext
Create a new GtkSourceCompletionContext for completion.
GtkSource.Completion
Method
move_window (TextIter iter) : none
Move the completion window to a specific iter.
GtkSource.CompletionContext
Property
iter : Gtk.TextIter
GtkSource.CompletionContext
Method
get_iter (TextIter iter) : none
Get the iter at which the completion was invoked.
GtkSource.CompletionInfo
Method
move_to_iter (TextView view, TextIter iter) : none
Moves the GtkSourceCompletionInfo to iter.
GtkSource.CompletionProvider
Method
get_start_iter (CompletionContext context, CompletionProposal proposal, TextIter iter) : Boolean
Get the GtkTextIter at which the completion for proposal starts.
GtkSource.CompletionProvider
Method
activate_proposal (CompletionProposal proposal, TextIter iter) : Boolean
Activate proposal at iter.
GtkSource.GtkTextRegion
Method
add (TextIter _start, TextIter _end) : none
GtkSource.GtkTextRegion
Method
subtract (TextIter _start, TextIter _end) : none
GtkSource.GtkTextRegion
Method
nth_subregion (Number subregion, TextIter start, TextIter end) : Boolean
GtkSource.GtkTextRegion
Method
intersect (TextIter _start, TextIter _end) : GtkSource.GtkTextRegion
GtkSource.GtkTextRegionIterator
Method
get_subregion (TextIter start, TextIter end) : none
GtkSource.Gutter
Signal
cell_activated (Gutter self, CellRenderer object, TextIter p0, Event p1) : none
GtkSource.Gutter
Signal
query_tooltip (Gutter self, CellRenderer object, TextIter p0, Tooltip p1) : Boolean
GtkSource.View
Signal
line_mark_activated (View self, TextIter object, Event p0) : none
GtkSource.View
Signal
smart_home_end (View self, TextIter object, Number p0) : none
GtkSource.View
Method
get_visual_column (TextIter iter) : Number
Determines the visual column at iter taking into consideration the indent width of view.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:34:40 GMT+0800 (HKT)