forked from AuroraMiddleware/gtk
b4e4a0ed9d
2001-05-04 Havoc Pennington <hp@redhat.com> * configure.in: fix some shell typos * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix * gtk/gtkimage.c: handle animations * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request border_width * 2, not just border_width * gtk/gtkscale.c: add "format_value" signal to allow people to override the way values are drawn. (gtk_scale_get_value_size): fix width/height mistake, and compute size from actual displayed text, not from made-up text. * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in signal registration * tests/testtext.c: Add "Remove all tags" menu item for testing * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement * demos/gtk-demo/main.c (main): add hack so we can find modules without installing gtk * demos/gtk-demo/textview.c (insert_text): demo font scaling * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling factor) (gtk_cell_renderer_text_set_property): remove some bogus g_object_notify * gtk/gtktexttag.c: add "scale" property which is a font scaling factor * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute to layout * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from gtk_text_iter_is_first 2001-05-04 Havoc Pennington <hp@redhat.com> * pixops/pixops.c (pixops_process): merge fix from stable: Patch from hoshem@mel.comcen.com.au to fix nonzero X offsets. Fixes bug #50371. * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix confusion of using "src" instead of "p". (pixops_composite_color_nearest): Use a more accurate (and correct, to begin with) compositing method. This cures checks showing through on images with no alpha. * gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing bytes unfilled. * gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints * gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change area_updated signal to use signed ints. Removed animation-related signals. * io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive rewrite action * gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract all the pesky details. Remove old frame-based API. Make GdkPixbufAnimation an abstract base class, derived by the loaders.
757 lines
8.1 KiB
Plaintext
757 lines
8.1 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 GtkTextBuffer ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
<!-- ##### STRUCT GtkTextIter ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@dummy1:
|
|
@dummy2:
|
|
@dummy3:
|
|
@dummy4:
|
|
@dummy5:
|
|
@dummy6:
|
|
@dummy7:
|
|
@dummy8:
|
|
@dummy9:
|
|
@dummy10:
|
|
@dummy11:
|
|
@dummy12:
|
|
|
|
<!-- ##### 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_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_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_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_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_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:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_forward_search ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@str:
|
|
@visible_only:
|
|
@slice:
|
|
@match_start:
|
|
@match_end:
|
|
@limit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_backward_search ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@str:
|
|
@visible_only:
|
|
@slice:
|
|
@match_start:
|
|
@match_end:
|
|
@limit:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### 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_reorder ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@first:
|
|
@second:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_text_iter_spew ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@iter:
|
|
@desc:
|
|
|
|
|