1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Widget that displays a <link linkend="GtkTextBuffer">GtkTextBuffer</link>
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-focus ##### -->
85 @textview: the object which received the signal.
88 <!-- ##### SIGNAL GtkTextView::move-viewport ##### -->
93 @textview: the object which received the signal.
97 <!-- ##### SIGNAL GtkTextView::page-horizontally ##### -->
102 @textview: the object which received the signal.
106 <!-- ##### SIGNAL GtkTextView::paste-clipboard ##### -->
111 @textview: the object which received the signal.
113 <!-- ##### SIGNAL GtkTextView::populate-popup ##### -->
118 @textview: the object which received the signal.
121 <!-- ##### SIGNAL GtkTextView::select-all ##### -->
126 @textview: the object which received the signal.
129 <!-- ##### SIGNAL GtkTextView::set-anchor ##### -->
134 @textview: the object which received the signal.
136 <!-- ##### SIGNAL GtkTextView::set-scroll-adjustments ##### -->
141 @textview: the object which received the signal.
145 <!-- ##### SIGNAL GtkTextView::toggle-cursor-visible ##### -->
150 @textview: the object which received the signal.
152 <!-- ##### SIGNAL GtkTextView::toggle-overwrite ##### -->
157 @textview: the object which received the signal.
159 <!-- ##### ARG GtkTextView:accepts-tab ##### -->
164 <!-- ##### ARG GtkTextView:buffer ##### -->
169 <!-- ##### ARG GtkTextView:cursor-visible ##### -->
174 <!-- ##### ARG GtkTextView:editable ##### -->
179 <!-- ##### ARG GtkTextView:indent ##### -->
184 <!-- ##### ARG GtkTextView:justification ##### -->
189 <!-- ##### ARG GtkTextView:left-margin ##### -->
194 <!-- ##### ARG GtkTextView:overwrite ##### -->
199 <!-- ##### ARG GtkTextView:pixels-above-lines ##### -->
204 <!-- ##### ARG GtkTextView:pixels-below-lines ##### -->
209 <!-- ##### ARG GtkTextView:pixels-inside-wrap ##### -->
214 <!-- ##### ARG GtkTextView:right-margin ##### -->
219 <!-- ##### ARG GtkTextView:tabs ##### -->
224 <!-- ##### ARG GtkTextView:wrap-mode ##### -->
229 <!-- ##### ARG GtkTextView:error-underline-color ##### -->
234 <!-- ##### ENUM GtkTextWindowType ##### -->
239 @GTK_TEXT_WINDOW_PRIVATE:
240 @GTK_TEXT_WINDOW_WIDGET:
241 @GTK_TEXT_WINDOW_TEXT:
242 @GTK_TEXT_WINDOW_LEFT:
243 @GTK_TEXT_WINDOW_RIGHT:
244 @GTK_TEXT_WINDOW_TOP:
245 @GTK_TEXT_WINDOW_BOTTOM:
247 <!-- ##### FUNCTION gtk_text_view_new ##### -->
255 <!-- ##### FUNCTION gtk_text_view_new_with_buffer ##### -->
264 <!-- ##### FUNCTION gtk_text_view_set_buffer ##### -->
273 <!-- ##### FUNCTION gtk_text_view_get_buffer ##### -->
282 <!-- ##### FUNCTION gtk_text_view_scroll_to_mark ##### -->
295 <!-- ##### FUNCTION gtk_text_view_scroll_to_iter ##### -->
309 <!-- ##### FUNCTION gtk_text_view_scroll_mark_onscreen ##### -->
318 <!-- ##### FUNCTION gtk_text_view_move_mark_onscreen ##### -->
328 <!-- ##### FUNCTION gtk_text_view_place_cursor_onscreen ##### -->
337 <!-- ##### FUNCTION gtk_text_view_get_visible_rect ##### -->
346 <!-- ##### FUNCTION gtk_text_view_get_iter_location ##### -->
356 <!-- ##### FUNCTION gtk_text_view_get_line_at_y ##### -->
367 <!-- ##### FUNCTION gtk_text_view_get_line_yrange ##### -->
378 <!-- ##### FUNCTION gtk_text_view_get_iter_at_location ##### -->
389 <!-- ##### FUNCTION gtk_text_view_get_iter_at_position ##### -->
401 <!-- ##### FUNCTION gtk_text_view_buffer_to_window_coords ##### -->
414 <!-- ##### FUNCTION gtk_text_view_window_to_buffer_coords ##### -->
427 <!-- ##### FUNCTION gtk_text_view_get_window ##### -->
437 <!-- ##### FUNCTION gtk_text_view_get_window_type ##### -->
447 <!-- ##### FUNCTION gtk_text_view_set_border_window_size ##### -->
457 <!-- ##### FUNCTION gtk_text_view_get_border_window_size ##### -->
467 <!-- ##### FUNCTION gtk_text_view_forward_display_line ##### -->
477 <!-- ##### FUNCTION gtk_text_view_backward_display_line ##### -->
487 <!-- ##### FUNCTION gtk_text_view_forward_display_line_end ##### -->
497 <!-- ##### FUNCTION gtk_text_view_backward_display_line_start ##### -->
507 <!-- ##### FUNCTION gtk_text_view_starts_display_line ##### -->
517 <!-- ##### FUNCTION gtk_text_view_move_visually ##### -->
528 <!-- ##### FUNCTION gtk_text_view_add_child_at_anchor ##### -->
538 <!-- ##### STRUCT GtkTextChildAnchor ##### -->
540 A <structname>GtkTextChildAnchor</structname> is a spot in the buffer
541 where child widgets can be "anchored" (inserted inline, as if they were
542 characters). The anchor can have multiple widgets anchored, to allow for
547 <!-- ##### FUNCTION gtk_text_child_anchor_new ##### -->
555 <!-- ##### FUNCTION gtk_text_child_anchor_get_widgets ##### -->
564 <!-- ##### FUNCTION gtk_text_child_anchor_get_deleted ##### -->
573 <!-- ##### FUNCTION gtk_text_view_add_child_in_window ##### -->
585 <!-- ##### FUNCTION gtk_text_view_move_child ##### -->
596 <!-- ##### FUNCTION gtk_text_view_set_wrap_mode ##### -->
605 <!-- ##### FUNCTION gtk_text_view_get_wrap_mode ##### -->
614 <!-- ##### FUNCTION gtk_text_view_set_editable ##### -->
623 <!-- ##### FUNCTION gtk_text_view_get_editable ##### -->
632 <!-- ##### FUNCTION gtk_text_view_set_cursor_visible ##### -->
641 <!-- ##### FUNCTION gtk_text_view_get_cursor_visible ##### -->
650 <!-- ##### FUNCTION gtk_text_view_set_overwrite ##### -->
659 <!-- ##### FUNCTION gtk_text_view_get_overwrite ##### -->
668 <!-- ##### FUNCTION gtk_text_view_set_pixels_above_lines ##### -->
677 <!-- ##### FUNCTION gtk_text_view_get_pixels_above_lines ##### -->
686 <!-- ##### FUNCTION gtk_text_view_set_pixels_below_lines ##### -->
695 <!-- ##### FUNCTION gtk_text_view_get_pixels_below_lines ##### -->
704 <!-- ##### FUNCTION gtk_text_view_set_pixels_inside_wrap ##### -->
713 <!-- ##### FUNCTION gtk_text_view_get_pixels_inside_wrap ##### -->
722 <!-- ##### FUNCTION gtk_text_view_set_justification ##### -->
731 <!-- ##### FUNCTION gtk_text_view_get_justification ##### -->
740 <!-- ##### FUNCTION gtk_text_view_set_left_margin ##### -->
749 <!-- ##### FUNCTION gtk_text_view_get_left_margin ##### -->
758 <!-- ##### FUNCTION gtk_text_view_set_right_margin ##### -->
767 <!-- ##### FUNCTION gtk_text_view_get_right_margin ##### -->
776 <!-- ##### FUNCTION gtk_text_view_set_indent ##### -->
785 <!-- ##### FUNCTION gtk_text_view_get_indent ##### -->
794 <!-- ##### FUNCTION gtk_text_view_set_tabs ##### -->
803 <!-- ##### FUNCTION gtk_text_view_get_tabs ##### -->
812 <!-- ##### FUNCTION gtk_text_view_set_accepts_tab ##### -->
821 <!-- ##### FUNCTION gtk_text_view_get_accepts_tab ##### -->
830 <!-- ##### FUNCTION gtk_text_view_get_default_attributes ##### -->
839 <!-- ##### MACRO GTK_TEXT_VIEW_PRIORITY_VALIDATE ##### -->
841 The priority at which the text view validates onscreen lines
842 in an idle job in the background.