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:indent ##### -->
176 <!-- ##### ARG GtkTextView:justification ##### -->
181 <!-- ##### ARG GtkTextView:left-margin ##### -->
186 <!-- ##### ARG GtkTextView:overwrite ##### -->
191 <!-- ##### ARG GtkTextView:pixels-above-lines ##### -->
196 <!-- ##### ARG GtkTextView:pixels-below-lines ##### -->
201 <!-- ##### ARG GtkTextView:pixels-inside-wrap ##### -->
206 <!-- ##### ARG GtkTextView:right-margin ##### -->
211 <!-- ##### ARG GtkTextView:tabs ##### -->
216 <!-- ##### ARG GtkTextView:wrap-mode ##### -->
221 <!-- ##### ARG GtkTextView:error-underline-color ##### -->
226 <!-- ##### ENUM GtkTextWindowType ##### -->
231 @GTK_TEXT_WINDOW_PRIVATE:
232 @GTK_TEXT_WINDOW_WIDGET:
233 @GTK_TEXT_WINDOW_TEXT:
234 @GTK_TEXT_WINDOW_LEFT:
235 @GTK_TEXT_WINDOW_RIGHT:
236 @GTK_TEXT_WINDOW_TOP:
237 @GTK_TEXT_WINDOW_BOTTOM:
239 <!-- ##### FUNCTION gtk_text_view_new ##### -->
247 <!-- ##### FUNCTION gtk_text_view_new_with_buffer ##### -->
256 <!-- ##### FUNCTION gtk_text_view_set_buffer ##### -->
265 <!-- ##### FUNCTION gtk_text_view_get_buffer ##### -->
274 <!-- ##### FUNCTION gtk_text_view_scroll_to_mark ##### -->
287 <!-- ##### FUNCTION gtk_text_view_scroll_to_iter ##### -->
301 <!-- ##### FUNCTION gtk_text_view_scroll_mark_onscreen ##### -->
310 <!-- ##### FUNCTION gtk_text_view_move_mark_onscreen ##### -->
320 <!-- ##### FUNCTION gtk_text_view_place_cursor_onscreen ##### -->
329 <!-- ##### FUNCTION gtk_text_view_get_visible_rect ##### -->
338 <!-- ##### FUNCTION gtk_text_view_get_iter_location ##### -->
348 <!-- ##### FUNCTION gtk_text_view_get_line_at_y ##### -->
359 <!-- ##### FUNCTION gtk_text_view_get_line_yrange ##### -->
370 <!-- ##### FUNCTION gtk_text_view_get_iter_at_location ##### -->
381 <!-- ##### FUNCTION gtk_text_view_get_iter_at_position ##### -->
393 <!-- ##### FUNCTION gtk_text_view_buffer_to_window_coords ##### -->
406 <!-- ##### FUNCTION gtk_text_view_window_to_buffer_coords ##### -->
419 <!-- ##### FUNCTION gtk_text_view_get_window ##### -->
429 <!-- ##### FUNCTION gtk_text_view_get_window_type ##### -->
439 <!-- ##### FUNCTION gtk_text_view_set_border_window_size ##### -->
449 <!-- ##### FUNCTION gtk_text_view_get_border_window_size ##### -->
459 <!-- ##### FUNCTION gtk_text_view_forward_display_line ##### -->
469 <!-- ##### FUNCTION gtk_text_view_backward_display_line ##### -->
479 <!-- ##### FUNCTION gtk_text_view_forward_display_line_end ##### -->
489 <!-- ##### FUNCTION gtk_text_view_backward_display_line_start ##### -->
499 <!-- ##### FUNCTION gtk_text_view_starts_display_line ##### -->
509 <!-- ##### FUNCTION gtk_text_view_move_visually ##### -->
520 <!-- ##### FUNCTION gtk_text_view_add_child_at_anchor ##### -->
530 <!-- ##### STRUCT GtkTextChildAnchor ##### -->
532 A <structname>GtkTextChildAnchor</structname> is a spot in the buffer
533 where child widgets can be "anchored" (inserted inline, as if they were
534 characters). The anchor can have multiple widgets anchored, to allow for
539 <!-- ##### FUNCTION gtk_text_child_anchor_new ##### -->
547 <!-- ##### FUNCTION gtk_text_child_anchor_get_widgets ##### -->
556 <!-- ##### FUNCTION gtk_text_child_anchor_get_deleted ##### -->
565 <!-- ##### FUNCTION gtk_text_view_add_child_in_window ##### -->
577 <!-- ##### FUNCTION gtk_text_view_move_child ##### -->
588 <!-- ##### FUNCTION gtk_text_view_set_wrap_mode ##### -->
597 <!-- ##### FUNCTION gtk_text_view_get_wrap_mode ##### -->
606 <!-- ##### FUNCTION gtk_text_view_set_editable ##### -->
615 <!-- ##### FUNCTION gtk_text_view_get_editable ##### -->
624 <!-- ##### FUNCTION gtk_text_view_set_cursor_visible ##### -->
633 <!-- ##### FUNCTION gtk_text_view_get_cursor_visible ##### -->
642 <!-- ##### FUNCTION gtk_text_view_set_overwrite ##### -->
651 <!-- ##### FUNCTION gtk_text_view_get_overwrite ##### -->
660 <!-- ##### FUNCTION gtk_text_view_set_pixels_above_lines ##### -->
669 <!-- ##### FUNCTION gtk_text_view_get_pixels_above_lines ##### -->
678 <!-- ##### FUNCTION gtk_text_view_set_pixels_below_lines ##### -->
687 <!-- ##### FUNCTION gtk_text_view_get_pixels_below_lines ##### -->
696 <!-- ##### FUNCTION gtk_text_view_set_pixels_inside_wrap ##### -->
705 <!-- ##### FUNCTION gtk_text_view_get_pixels_inside_wrap ##### -->
714 <!-- ##### FUNCTION gtk_text_view_set_justification ##### -->
723 <!-- ##### FUNCTION gtk_text_view_get_justification ##### -->
732 <!-- ##### FUNCTION gtk_text_view_set_left_margin ##### -->
741 <!-- ##### FUNCTION gtk_text_view_get_left_margin ##### -->
750 <!-- ##### FUNCTION gtk_text_view_set_right_margin ##### -->
759 <!-- ##### FUNCTION gtk_text_view_get_right_margin ##### -->
768 <!-- ##### FUNCTION gtk_text_view_set_indent ##### -->
777 <!-- ##### FUNCTION gtk_text_view_get_indent ##### -->
786 <!-- ##### FUNCTION gtk_text_view_set_tabs ##### -->
795 <!-- ##### FUNCTION gtk_text_view_get_tabs ##### -->
804 <!-- ##### FUNCTION gtk_text_view_set_accepts_tab ##### -->
813 <!-- ##### FUNCTION gtk_text_view_get_accepts_tab ##### -->
822 <!-- ##### FUNCTION gtk_text_view_get_default_attributes ##### -->
831 <!-- ##### MACRO GTK_TEXT_VIEW_PRIORITY_VALIDATE ##### -->
833 The priority at which the text view validates onscreen lines
834 in an idle job in the background.