forked from AuroraMiddleware/gtk
0d93b6432d
Sun Mar 2 23:35:57 2003 Jonathan Blandford <jrb@gnome.org> * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size): handle rtl code. * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size): ditto * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_get_size): ditto * gtk/gtktreeview.c: (invalidate_column), (invalidate_last_column), (gtk_tree_view_get_real_requested_width_from_column), (gtk_tree_view_size_allocate_columns), (gtk_tree_view_size_allocate), (gtk_tree_view_button_press), (gtk_tree_view_button_release_drag_column), (gtk_tree_view_update_current_reorder), (gtk_tree_view_motion_drag_column), (gtk_tree_view_bin_expose), (gtk_tree_view_key_press), (gtk_tree_view_header_focus), (gtk_tree_view_get_background_xrange), (gtk_tree_view_get_arrow_xrange), (gtk_tree_view_is_expander_column), (gtk_tree_view_set_column_drag_info), (gtk_tree_view_move_cursor_left_right): Add RTL support. * gtk/gtktreeviewcolumn.h (struct _GtkTreeViewColumn): add an expand flag. * gtk/gtktreeviewcolumn.c: (gtk_tree_view_column_class_init), (gtk_tree_view_column_set_property), (gtk_tree_view_column_get_property), (gtk_tree_view_column_set_expand), (gtk_tree_view_column_get_expand), (gtk_tree_view_column_cell_process_action): Add support for expand flag
873 lines
9.6 KiB
Plaintext
873 lines
9.6 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkTextIter
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Text buffer iterator
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
You may wish to begin by reading the <link linkend="TextWidget">text widget
|
|
conceptual overview</link> which gives an overview of all the objects and data
|
|
types related to the text widget and how they work together.
|
|
</para>
|
|
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### STRUCT GtkTextIter ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_buffer ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_copy ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_free ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_line_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_line_index ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_visible_line_index ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_visible_line_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_char ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_slice ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@start:
|
|
@end:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_text ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@start:
|
|
@end:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_visible_slice ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@start:
|
|
@end:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_visible_text ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@start:
|
|
@end:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_pixbuf ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_marks ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_toggled_tags ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@toggled_on:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_child_anchor ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_begins_tag ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_ends_tag ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_toggles_tag ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_has_tag ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_tags ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_editable ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@default_setting:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_can_insert ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@default_editability:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_starts_word ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_ends_word ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_inside_word ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_starts_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_ends_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_starts_sentence ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_ends_sentence ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_inside_sentence ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_is_cursor_position ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_chars_in_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_bytes_in_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_attributes ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@values:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_get_language ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_is_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_is_start ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_char ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_char ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_chars ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_chars ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_lines ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_lines ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_word_ends ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_word_starts ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_word_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_word_start ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_cursor_position ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_cursor_position ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_cursor_positions ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_cursor_positions ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_sentence_start ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_sentence_starts ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_sentence_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_sentence_ends ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_visible_word_ends ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_visible_word_starts ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_visible_word_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_visible_word_start ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_visible_cursor_position ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_visible_cursor_position ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_visible_cursor_positions ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_visible_cursor_positions ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@count:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@char_offset:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_line ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@line_number:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_line_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@char_on_line:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_line_index ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@byte_on_line:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_visible_line_index ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@byte_on_line:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_set_visible_line_offset ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@char_on_line:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_to_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_to_line_end ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_to_tag_toggle ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_to_tag_toggle ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@tag:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### USER_FUNCTION GtkTextCharPredicate ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@ch:
|
|
@user_data:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_find_char ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@pred:
|
|
@user_data:
|
|
@limit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_find_char ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@pred:
|
|
@user_data:
|
|
@limit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### ENUM GtkTextSearchFlags ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@GTK_TEXT_SEARCH_VISIBLE_ONLY:
|
|
@GTK_TEXT_SEARCH_TEXT_ONLY:
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_search ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@str:
|
|
@flags:
|
|
@match_start:
|
|
@match_end:
|
|
@limit:
|
|
@Returns:
|
|
<!-- # Unused Parameters # -->
|
|
@visible_only:
|
|
@slice:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_search ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@str:
|
|
@flags:
|
|
@match_start:
|
|
@match_end:
|
|
@limit:
|
|
@Returns:
|
|
<!-- # Unused Parameters # -->
|
|
@visible_only:
|
|
@slice:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_equal ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@lhs:
|
|
@rhs:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_compare ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@lhs:
|
|
@rhs:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_in_range ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@start:
|
|
@end:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_order ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@first:
|
|
@second:
|
|
|
|
|