1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Widget that displays a GtkTextBuffer
7 <!-- ##### SECTION Long_Description ##### -->
9 You may wish to begin by reading the <link linkend="TextWidget">text widget
10 conceptual overview</link> which gives an overview of all the objects and data
11 types related to the text widget and how they work together.
18 <!-- ##### SECTION See_Also ##### -->
20 #GtkTextBuffer, #GtkTextIter
23 <!-- ##### SECTION Stability_Level ##### -->
26 <!-- ##### STRUCT GtkTextView ##### -->
32 <!-- ##### SIGNAL GtkTextView::backspace ##### -->
37 @textview: the object which received the signal.
39 <!-- ##### SIGNAL GtkTextView::copy-clipboard ##### -->
44 @textview: the object which received the signal.
46 <!-- ##### SIGNAL GtkTextView::cut-clipboard ##### -->
51 @textview: the object which received the signal.
53 <!-- ##### SIGNAL GtkTextView::delete-from-cursor ##### -->
58 @textview: the object which received the signal.
62 <!-- ##### SIGNAL GtkTextView::insert-at-cursor ##### -->
67 @textview: the object which received the signal.
70 <!-- ##### SIGNAL GtkTextView::move-cursor ##### -->
75 @textview: the object which received the signal.
80 <!-- ##### SIGNAL GtkTextView::move-viewport ##### -->
85 @textview: the object which received the signal.
89 <!-- ##### SIGNAL GtkTextView::page-horizontally ##### -->
94 @textview: the object which received the signal.
98 <!-- ##### SIGNAL GtkTextView::paste-clipboard ##### -->
103 @textview: the object which received the signal.
105 <!-- ##### SIGNAL GtkTextView::populate-popup ##### -->
110 @textview: the object which received the signal.
113 <!-- ##### SIGNAL GtkTextView::select-all ##### -->
118 @textview: the object which received the signal.
121 <!-- ##### SIGNAL GtkTextView::set-anchor ##### -->
126 @textview: the object which received the signal.
128 <!-- ##### SIGNAL GtkTextView::set-scroll-adjustments ##### -->
133 @textview: the object which received the signal.
137 <!-- ##### SIGNAL GtkTextView::toggle-cursor-visible ##### -->
142 @textview: the object which received the signal.
144 <!-- ##### SIGNAL GtkTextView::toggle-overwrite ##### -->
149 @textview: the object which received the signal.
151 <!-- ##### ARG GtkTextView:accepts-tab ##### -->
156 <!-- ##### ARG GtkTextView:buffer ##### -->
161 <!-- ##### ARG GtkTextView:cursor-visible ##### -->
166 <!-- ##### ARG GtkTextView:editable ##### -->
171 <!-- ##### ARG GtkTextView:im-module ##### -->
176 <!-- ##### ARG GtkTextView:indent ##### -->
181 <!-- ##### ARG GtkTextView:justification ##### -->
186 <!-- ##### ARG GtkTextView:left-margin ##### -->
191 <!-- ##### ARG GtkTextView:overwrite ##### -->
196 <!-- ##### ARG GtkTextView:pixels-above-lines ##### -->
201 <!-- ##### ARG GtkTextView:pixels-below-lines ##### -->
206 <!-- ##### ARG GtkTextView:pixels-inside-wrap ##### -->
211 <!-- ##### ARG GtkTextView:right-margin ##### -->
216 <!-- ##### ARG GtkTextView:tabs ##### -->
221 <!-- ##### ARG GtkTextView:wrap-mode ##### -->
226 <!-- ##### ARG GtkTextView:error-underline-color ##### -->
231 <!-- ##### ENUM GtkTextWindowType ##### -->
236 @GTK_TEXT_WINDOW_PRIVATE:
237 @GTK_TEXT_WINDOW_WIDGET:
238 @GTK_TEXT_WINDOW_TEXT:
239 @GTK_TEXT_WINDOW_LEFT:
240 @GTK_TEXT_WINDOW_RIGHT:
241 @GTK_TEXT_WINDOW_TOP:
242 @GTK_TEXT_WINDOW_BOTTOM:
244 <!-- ##### FUNCTION gtk_text_view_new ##### -->
252 <!-- ##### FUNCTION gtk_text_view_new_with_buffer ##### -->
261 <!-- ##### FUNCTION gtk_text_view_set_buffer ##### -->
270 <!-- ##### FUNCTION gtk_text_view_get_buffer ##### -->
279 <!-- ##### FUNCTION gtk_text_view_scroll_to_mark ##### -->
292 <!-- ##### FUNCTION gtk_text_view_scroll_to_iter ##### -->
306 <!-- ##### FUNCTION gtk_text_view_scroll_mark_onscreen ##### -->
315 <!-- ##### FUNCTION gtk_text_view_move_mark_onscreen ##### -->
325 <!-- ##### FUNCTION gtk_text_view_place_cursor_onscreen ##### -->
334 <!-- ##### FUNCTION gtk_text_view_get_visible_rect ##### -->
343 <!-- ##### FUNCTION gtk_text_view_get_iter_location ##### -->
353 <!-- ##### FUNCTION gtk_text_view_get_line_at_y ##### -->
364 <!-- ##### FUNCTION gtk_text_view_get_line_yrange ##### -->
375 <!-- ##### FUNCTION gtk_text_view_get_iter_at_location ##### -->
386 <!-- ##### FUNCTION gtk_text_view_get_iter_at_position ##### -->
398 <!-- ##### FUNCTION gtk_text_view_buffer_to_window_coords ##### -->
411 <!-- ##### FUNCTION gtk_text_view_window_to_buffer_coords ##### -->
424 <!-- ##### FUNCTION gtk_text_view_get_window ##### -->
434 <!-- ##### FUNCTION gtk_text_view_get_window_type ##### -->
444 <!-- ##### FUNCTION gtk_text_view_set_border_window_size ##### -->
454 <!-- ##### FUNCTION gtk_text_view_get_border_window_size ##### -->
464 <!-- ##### FUNCTION gtk_text_view_forward_display_line ##### -->
474 <!-- ##### FUNCTION gtk_text_view_backward_display_line ##### -->
484 <!-- ##### FUNCTION gtk_text_view_forward_display_line_end ##### -->
494 <!-- ##### FUNCTION gtk_text_view_backward_display_line_start ##### -->
504 <!-- ##### FUNCTION gtk_text_view_starts_display_line ##### -->
514 <!-- ##### FUNCTION gtk_text_view_move_visually ##### -->
525 <!-- ##### FUNCTION gtk_text_view_add_child_at_anchor ##### -->
535 <!-- ##### STRUCT GtkTextChildAnchor ##### -->
537 A <structname>GtkTextChildAnchor</structname> is a spot in the buffer
538 where child widgets can be "anchored" (inserted inline, as if they were
539 characters). The anchor can have multiple widgets anchored, to allow for
544 <!-- ##### FUNCTION gtk_text_child_anchor_new ##### -->
552 <!-- ##### FUNCTION gtk_text_child_anchor_get_widgets ##### -->
561 <!-- ##### FUNCTION gtk_text_child_anchor_get_deleted ##### -->
570 <!-- ##### FUNCTION gtk_text_view_add_child_in_window ##### -->
582 <!-- ##### FUNCTION gtk_text_view_move_child ##### -->
593 <!-- ##### FUNCTION gtk_text_view_set_wrap_mode ##### -->
602 <!-- ##### FUNCTION gtk_text_view_get_wrap_mode ##### -->
611 <!-- ##### FUNCTION gtk_text_view_set_editable ##### -->
620 <!-- ##### FUNCTION gtk_text_view_get_editable ##### -->
629 <!-- ##### FUNCTION gtk_text_view_set_cursor_visible ##### -->
638 <!-- ##### FUNCTION gtk_text_view_get_cursor_visible ##### -->
647 <!-- ##### FUNCTION gtk_text_view_set_overwrite ##### -->
656 <!-- ##### FUNCTION gtk_text_view_get_overwrite ##### -->
665 <!-- ##### FUNCTION gtk_text_view_set_pixels_above_lines ##### -->
674 <!-- ##### FUNCTION gtk_text_view_get_pixels_above_lines ##### -->
683 <!-- ##### FUNCTION gtk_text_view_set_pixels_below_lines ##### -->
692 <!-- ##### FUNCTION gtk_text_view_get_pixels_below_lines ##### -->
701 <!-- ##### FUNCTION gtk_text_view_set_pixels_inside_wrap ##### -->
710 <!-- ##### FUNCTION gtk_text_view_get_pixels_inside_wrap ##### -->
719 <!-- ##### FUNCTION gtk_text_view_set_justification ##### -->
728 <!-- ##### FUNCTION gtk_text_view_get_justification ##### -->
737 <!-- ##### FUNCTION gtk_text_view_set_left_margin ##### -->
746 <!-- ##### FUNCTION gtk_text_view_get_left_margin ##### -->
755 <!-- ##### FUNCTION gtk_text_view_set_right_margin ##### -->
764 <!-- ##### FUNCTION gtk_text_view_get_right_margin ##### -->
773 <!-- ##### FUNCTION gtk_text_view_set_indent ##### -->
782 <!-- ##### FUNCTION gtk_text_view_get_indent ##### -->
791 <!-- ##### FUNCTION gtk_text_view_set_tabs ##### -->
800 <!-- ##### FUNCTION gtk_text_view_get_tabs ##### -->
809 <!-- ##### FUNCTION gtk_text_view_set_accepts_tab ##### -->
818 <!-- ##### FUNCTION gtk_text_view_get_accepts_tab ##### -->
827 <!-- ##### FUNCTION gtk_text_view_get_default_attributes ##### -->
836 <!-- ##### MACRO GTK_TEXT_VIEW_PRIORITY_VALIDATE ##### -->
838 The priority at which the text view validates onscreen lines
839 in an idle job in the background.