5093 lines
254 KiB
HTML
5093 lines
254 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
<title>GtkTextView: GTK+ 3 Reference Manual</title>
|
||
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
|
||
<link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
|
||
<link rel="up" href="TextWidgetObjects.html" title="Multiline Text Editor">
|
||
<link rel="prev" href="GtkTextTagTable.html" title="GtkTextTagTable">
|
||
<link rel="next" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
|
||
<meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
|
||
<link rel="stylesheet" href="style.css" type="text/css">
|
||
</head>
|
||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
||
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
|
||
<td width="100%" align="left" class="shortcuts">
|
||
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.properties" class="shortcut">Properties</a></span><span id="nav_style_properties"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.style-properties" class="shortcut">Style Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
|
||
<a href="#GtkTextView.signals" class="shortcut">Signals</a></span>
|
||
</td>
|
||
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
||
<td><a accesskey="u" href="TextWidgetObjects.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
||
<td><a accesskey="p" href="GtkTextTagTable.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
||
<td><a accesskey="n" href="TreeWidgetObjects.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
||
</tr></table>
|
||
<div class="refentry">
|
||
<a name="GtkTextView"></a><div class="titlepage"></div>
|
||
<div class="refnamediv"><table width="100%"><tr>
|
||
<td valign="top">
|
||
<h2><span class="refentrytitle"><a name="GtkTextView.top_of_page"></a>GtkTextView</span></h2>
|
||
<p>GtkTextView — Widget that displays a GtkTextBuffer</p>
|
||
</td>
|
||
<td class="gallery_image" valign="top" align="right"><img src="multiline-text.png"></td>
|
||
</tr></table></div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.functions"></a><h2>Functions</h2>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="functions_proto_type">
|
||
<col class="functions_proto_name">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()">gtk_text_view_new</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()">gtk_text_view_new_with_buffer</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()">gtk_text_view_set_buffer</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()">gtk_text_view_get_buffer</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-hadjustment" title="gtk_text_view_get_hadjustment ()">gtk_text_view_get_hadjustment</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-vadjustment" title="gtk_text_view_get_vadjustment ()">gtk_text_view_get_vadjustment</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()">gtk_text_view_scroll_to_mark</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-iter" title="gtk_text_view_scroll_to_iter ()">gtk_text_view_scroll_to_iter</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-scroll-mark-onscreen" title="gtk_text_view_scroll_mark_onscreen ()">gtk_text_view_scroll_mark_onscreen</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-move-mark-onscreen" title="gtk_text_view_move_mark_onscreen ()">gtk_text_view_move_mark_onscreen</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-place-cursor-onscreen" title="gtk_text_view_place_cursor_onscreen ()">gtk_text_view_place_cursor_onscreen</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-visible-rect" title="gtk_text_view_get_visible_rect ()">gtk_text_view_get_visible_rect</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-iter-location" title="gtk_text_view_get_iter_location ()">gtk_text_view_get_iter_location</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-cursor-locations" title="gtk_text_view_get_cursor_locations ()">gtk_text_view_get_cursor_locations</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-line-at-y" title="gtk_text_view_get_line_at_y ()">gtk_text_view_get_line_at_y</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-line-yrange" title="gtk_text_view_get_line_yrange ()">gtk_text_view_get_line_yrange</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()">gtk_text_view_get_iter_at_location</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-position" title="gtk_text_view_get_iter_at_position ()">gtk_text_view_get_iter_at_position</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()">gtk_text_view_buffer_to_window_coords</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()">gtk_text_view_window_to_buffer_coords</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="returnvalue">GdkWindow</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-window" title="gtk_text_view_get_window ()">gtk_text_view_get_window</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-window-type" title="gtk_text_view_get_window_type ()">gtk_text_view_get_window_type</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()">gtk_text_view_set_border_window_size</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-border-window-size" title="gtk_text_view_get_border_window_size ()">gtk_text_view_get_border_window_size</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()">gtk_text_view_forward_display_line</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line" title="gtk_text_view_backward_display_line ()">gtk_text_view_backward_display_line</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line-end" title="gtk_text_view_forward_display_line_end ()">gtk_text_view_forward_display_line_end</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line-start" title="gtk_text_view_backward_display_line_start ()">gtk_text_view_backward_display_line_start</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-starts-display-line" title="gtk_text_view_starts_display_line ()">gtk_text_view_starts_display_line</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-move-visually" title="gtk_text_view_move_visually ()">gtk_text_view_move_visually</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-add-child-at-anchor" title="gtk_text_view_add_child_at_anchor ()">gtk_text_view_add_child_at_anchor</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-child-anchor-new" title="gtk_text_child_anchor_new ()">gtk_text_child_anchor_new</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">GList</span> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-widgets" title="gtk_text_child_anchor_get_widgets ()">gtk_text_child_anchor_get_widgets</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-deleted" title="gtk_text_child_anchor_get_deleted ()">gtk_text_child_anchor_get_deleted</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()">gtk_text_view_add_child_in_window</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()">gtk_text_view_move_child</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-wrap-mode" title="gtk_text_view_set_wrap_mode ()">gtk_text_view_set_wrap_mode</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-wrap-mode" title="gtk_text_view_get_wrap_mode ()">gtk_text_view_get_wrap_mode</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-editable" title="gtk_text_view_set_editable ()">gtk_text_view_set_editable</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-editable" title="gtk_text_view_get_editable ()">gtk_text_view_get_editable</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-cursor-visible" title="gtk_text_view_set_cursor_visible ()">gtk_text_view_set_cursor_visible</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-cursor-visible" title="gtk_text_view_get_cursor_visible ()">gtk_text_view_get_cursor_visible</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-reset-cursor-blink" title="gtk_text_view_reset_cursor_blink ()">gtk_text_view_reset_cursor_blink</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-overwrite" title="gtk_text_view_set_overwrite ()">gtk_text_view_set_overwrite</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-overwrite" title="gtk_text_view_get_overwrite ()">gtk_text_view_get_overwrite</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-above-lines" title="gtk_text_view_set_pixels_above_lines ()">gtk_text_view_set_pixels_above_lines</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-above-lines" title="gtk_text_view_get_pixels_above_lines ()">gtk_text_view_get_pixels_above_lines</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()">gtk_text_view_set_pixels_below_lines</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-below-lines" title="gtk_text_view_get_pixels_below_lines ()">gtk_text_view_get_pixels_below_lines</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()">gtk_text_view_set_pixels_inside_wrap</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-inside-wrap" title="gtk_text_view_get_pixels_inside_wrap ()">gtk_text_view_get_pixels_inside_wrap</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-justification" title="gtk_text_view_set_justification ()">gtk_text_view_set_justification</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-justification" title="gtk_text_view_get_justification ()">gtk_text_view_get_justification</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-left-margin" title="gtk_text_view_set_left_margin ()">gtk_text_view_set_left_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-left-margin" title="gtk_text_view_get_left_margin ()">gtk_text_view_get_left_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-right-margin" title="gtk_text_view_set_right_margin ()">gtk_text_view_set_right_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-right-margin" title="gtk_text_view_get_right_margin ()">gtk_text_view_get_right_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-top-margin" title="gtk_text_view_set_top_margin ()">gtk_text_view_set_top_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-top-margin" title="gtk_text_view_get_top_margin ()">gtk_text_view_get_top_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-bottom-margin" title="gtk_text_view_set_bottom_margin ()">gtk_text_view_set_bottom_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-bottom-margin" title="gtk_text_view_get_bottom_margin ()">gtk_text_view_get_bottom_margin</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-indent" title="gtk_text_view_set_indent ()">gtk_text_view_set_indent</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gint</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-indent" title="gtk_text_view_get_indent ()">gtk_text_view_get_indent</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-tabs" title="gtk_text_view_set_tabs ()">gtk_text_view_set_tabs</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">PangoTabArray</span> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-tabs" title="gtk_text_view_get_tabs ()">gtk_text_view_get_tabs</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()">gtk_text_view_set_accepts_tab</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-accepts-tab" title="gtk_text_view_get_accepts_tab ()">gtk_text_view_get_accepts_tab</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> *
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-default-attributes" title="gtk_text_view_get_default_attributes ()">gtk_text_view_get_default_attributes</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-im-context-filter-keypress" title="gtk_text_view_im_context_filter_keypress ()">gtk_text_view_im_context_filter_keypress</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-reset-im-context" title="gtk_text_view_reset_im_context ()">gtk_text_view_reset_im_context</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-input-purpose" title="gtk_text_view_set_input_purpose ()">gtk_text_view_set_input_purpose</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkEntry.html#GtkInputPurpose" title="enum GtkInputPurpose"><span class="returnvalue">GtkInputPurpose</span></a>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-input-purpose" title="gtk_text_view_get_input_purpose ()">gtk_text_view_get_input_purpose</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-input-hints" title="gtk_text_view_set_input_hints ()">gtk_text_view_set_input_hints</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<a class="link" href="GtkEntry.html#GtkInputHints" title="enum GtkInputHints"><span class="returnvalue">GtkInputHints</span></a>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-input-hints" title="gtk_text_view_get_input_hints ()">gtk_text_view_get_input_hints</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">void</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-monospace" title="gtk_text_view_set_monospace ()">gtk_text_view_set_monospace</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="function_type">
|
||
<span class="returnvalue">gboolean</span>
|
||
</td>
|
||
<td class="function_name">
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-get-monospace" title="gtk_text_view_get_monospace ()">gtk_text_view_get_monospace</a> <span class="c_punctuation">()</span>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.properties"></a><h2>Properties</h2>
|
||
<div class="informaltable"><table class="informaltable" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="properties_type">
|
||
<col width="300px" class="properties_name">
|
||
<col width="200px" class="properties_flags">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--accepts-tab" title="The “accepts-tab” property">accepts-tab</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--bottom-margin" title="The “bottom-margin” property">bottom-margin</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type">
|
||
<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *</td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--buffer" title="The “buffer” property">buffer</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--cursor-visible" title="The “cursor-visible” property">cursor-visible</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--editable" title="The “editable” property">editable</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type">
|
||
<span class="type">char</span> *</td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--im-module" title="The “im-module” property">im-module</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--indent" title="The “indent” property">indent</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><a class="link" href="GtkEntry.html#GtkInputHints" title="enum GtkInputHints"><span class="type">GtkInputHints</span></a></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--input-hints" title="The “input-hints” property">input-hints</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><a class="link" href="GtkEntry.html#GtkInputPurpose" title="enum GtkInputPurpose"><span class="type">GtkInputPurpose</span></a></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--input-purpose" title="The “input-purpose” property">input-purpose</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--justification" title="The “justification” property">justification</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--left-margin" title="The “left-margin” property">left-margin</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--monospace" title="The “monospace” property">monospace</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--overwrite" title="The “overwrite” property">overwrite</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--pixels-above-lines" title="The “pixels-above-lines” property">pixels-above-lines</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--pixels-below-lines" title="The “pixels-below-lines” property">pixels-below-lines</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--pixels-inside-wrap" title="The “pixels-inside-wrap” property">pixels-inside-wrap</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">gboolean</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--populate-all" title="The “populate-all” property">populate-all</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--right-margin" title="The “right-margin” property">right-margin</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type">
|
||
<span class="type">PangoTabArray</span> *</td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--tabs" title="The “tabs” property">tabs</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><span class="type">int</span></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--top-margin" title="The “top-margin” property">top-margin</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="property_type"><a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a></td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--wrap-mode" title="The “wrap-mode” property">wrap-mode</a></td>
|
||
<td class="property_flags">Read / Write</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.style-properties"></a><h2>Style Properties</h2>
|
||
<div class="informaltable"><table class="informaltable" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="style_properties_type">
|
||
<col width="300px" class="style_properties_name">
|
||
<col width="200px" class="style_properties_flags">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="property_type">
|
||
<a href="../html/gdk3-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *</td>
|
||
<td class="property_name"><a class="link" href="GtkTextView.html#GtkTextView--s-error-underline-color" title="The “error-underline-color” style property">error-underline-color</a></td>
|
||
<td class="property_flags">Read</td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.signals"></a><h2>Signals</h2>
|
||
<div class="informaltable"><table class="informaltable" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="signal_proto_type">
|
||
<col width="300px" class="signal_proto_name">
|
||
<col width="200px" class="signal_proto_flags">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-backspace" title="The “backspace” signal">backspace</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-copy-clipboard" title="The “copy-clipboard” signal">copy-clipboard</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-cut-clipboard" title="The “cut-clipboard” signal">cut-clipboard</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-delete-from-cursor" title="The “delete-from-cursor” signal">delete-from-cursor</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">gboolean</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-extend-selection" title="The “extend-selection” signal">extend-selection</a></td>
|
||
<td class="signal_flags">Run Last</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-insert-at-cursor" title="The “insert-at-cursor” signal">insert-at-cursor</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-insert-emoji" title="The “insert-emoji” signal">insert-emoji</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-move-cursor" title="The “move-cursor” signal">move-cursor</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-move-viewport" title="The “move-viewport” signal">move-viewport</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-paste-clipboard" title="The “paste-clipboard” signal">paste-clipboard</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-populate-popup" title="The “populate-popup” signal">populate-popup</a></td>
|
||
<td class="signal_flags">Run Last</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-preedit-changed" title="The “preedit-changed” signal">preedit-changed</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-select-all" title="The “select-all” signal">select-all</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-set-anchor" title="The “set-anchor” signal">set-anchor</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-toggle-cursor-visible" title="The “toggle-cursor-visible” signal">toggle-cursor-visible</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
<tr>
|
||
<td class="signal_type"><span class="returnvalue">void</span></td>
|
||
<td class="signal_name"><a class="link" href="GtkTextView.html#GtkTextView-toggle-overwrite" title="The “toggle-overwrite” signal">toggle-overwrite</a></td>
|
||
<td class="signal_flags">Action</td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<a name="GtkTextChildAnchor"></a><div class="refsect1">
|
||
<a name="GtkTextView.other"></a><h2>Types and Values</h2>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="other_proto_type">
|
||
<col class="other_proto_name">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="datatype_keyword">struct</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextView-struct" title="struct GtkTextView">GtkTextView</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">struct</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextViewClass" title="struct GtkTextViewClass">GtkTextViewClass</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">enum</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextViewLayer" title="enum GtkTextViewLayer">GtkTextViewLayer</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">enum</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType">GtkTextWindowType</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">enum</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextExtendSelection" title="enum GtkTextExtendSelection">GtkTextExtendSelection</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">enum</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode">GtkWrapMode</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="datatype_keyword">struct</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GtkTextChildAnchor-struct" title="struct GtkTextChildAnchor">GtkTextChildAnchor</a></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="define_keyword">#define</td>
|
||
<td class="function_name"><a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS" title="GTK_TEXT_VIEW_PRIORITY_VALIDATE">GTK_TEXT_VIEW_PRIORITY_VALIDATE</a></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||
<pre class="screen"> GObject
|
||
<span class="lineart">├──</span> GInitiallyUnowned
|
||
<span class="lineart">│</span> <span class="lineart">╰──</span> <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
|
||
<span class="lineart">│</span> <span class="lineart">╰──</span> <a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
|
||
<span class="lineart">│</span> <span class="lineart">╰──</span> GtkTextView
|
||
<span class="lineart">╰──</span> GtkTextChildAnchor
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
||
<p>
|
||
GtkTextView implements
|
||
AtkImplementorIface, <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a> and <a class="link" href="GtkScrollable.html" title="GtkScrollable">GtkScrollable</a>.</p>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.includes"></a><h2>Includes</h2>
|
||
<pre class="synopsis">#include <gtk/gtk.h>
|
||
</pre>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.description"></a><h2>Description</h2>
|
||
<p>You may wish to begin by reading the
|
||
<a class="link" href="TextWidget.html" title="Text Widget Overview">text widget conceptual overview</a>
|
||
which gives an overview of all the objects and data
|
||
types related to the text widget and how they work together.</p>
|
||
<div class="refsect2">
|
||
<a name="id-1.3.11.8.12.3"></a><h3>CSS nodes</h3>
|
||
<div class="informalexample">
|
||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||
<tbody>
|
||
<tr>
|
||
<td class="listing_lines" align="right"><pre>1
|
||
2
|
||
3
|
||
4
|
||
5
|
||
6
|
||
7
|
||
8</pre></td>
|
||
<td class="listing_code"><pre class="programlisting"><span class="n">textview</span><span class="p">.</span><span class="n">view</span><span class="w"></span>
|
||
<span class="err">├──</span><span class="w"> </span><span class="n">border</span><span class="p">.</span><span class="n">top</span><span class="w"></span>
|
||
<span class="err">├──</span><span class="w"> </span><span class="n">border</span><span class="p">.</span><span class="n">left</span><span class="w"></span>
|
||
<span class="err">├──</span><span class="w"> </span><span class="n">text</span><span class="w"></span>
|
||
<span class="err">│</span><span class="w"> </span><span class="err">╰──</span><span class="w"> </span><span class="p">[</span><span class="n">selection</span><span class="p">]</span><span class="w"></span>
|
||
<span class="err">├──</span><span class="w"> </span><span class="n">border</span><span class="p">.</span><span class="n">right</span><span class="w"></span>
|
||
<span class="err">├──</span><span class="w"> </span><span class="n">border</span><span class="p">.</span><span class="n">bottom</span><span class="w"></span>
|
||
<span class="err">╰──</span><span class="w"> </span><span class="p">[</span><span class="n">window</span><span class="p">.</span><span class="n">popup</span><span class="p">]</span><span class="w"></span></pre></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<p></p>
|
||
<p>GtkTextView has a main css node with name textview and style class .view,
|
||
and subnodes for each of the border windows, and the main text area,
|
||
with names border and text, respectively. The border nodes each get
|
||
one of the style classes .left, .right, .top or .bottom.</p>
|
||
<p>A node representing the selection will appear below the text node.</p>
|
||
<p>If a context menu is opened, the window node will appear as a subnode
|
||
of the main node.</p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.functions_details"></a><h2>Functions</h2>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-new"></a><h3>gtk_text_view_new ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||
gtk_text_view_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
||
<p>Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. If you don’t call <a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()"><code class="function">gtk_text_view_set_buffer()</code></a>
|
||
before using the text view, an empty default buffer will be created
|
||
for you. Get the buffer with <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()"><code class="function">gtk_text_view_get_buffer()</code></a>. If you want
|
||
to specify your own buffer, consider <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()"><code class="function">gtk_text_view_new_with_buffer()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-new.returns"></a><h4>Returns</h4>
|
||
<p> a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-new-with-buffer"></a><h3>gtk_text_view_new_with_buffer ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *
|
||
gtk_text_view_new_with_buffer (<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
|
||
<p>Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> widget displaying the buffer
|
||
<em class="parameter"><code>buffer</code></em>
|
||
. One buffer can be shared among many widgets.
|
||
<em class="parameter"><code>buffer</code></em>
|
||
may be <code class="literal">NULL</code> to create a default buffer, in which case
|
||
this function is equivalent to <a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()"><code class="function">gtk_text_view_new()</code></a>. The
|
||
text view adds its own reference count to the buffer; it does not
|
||
take over an existing reference.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-new-with-buffer.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>buffer</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-new-with-buffer.returns"></a><h4>Returns</h4>
|
||
<p> a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-buffer"></a><h3>gtk_text_view_set_buffer ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_buffer (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
|
||
<p>Sets <em class="parameter"><code>buffer</code></em>
|
||
as the buffer being displayed by <em class="parameter"><code>text_view</code></em>
|
||
. The previous
|
||
buffer displayed by the text view is unreferenced, and a reference is
|
||
added to <em class="parameter"><code>buffer</code></em>
|
||
. If you owned a reference to <em class="parameter"><code>buffer</code></em>
|
||
before passing it
|
||
to this function, you must remove that reference yourself; <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
|
||
will not “adopt” it.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-buffer.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>buffer</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-buffer"></a><h3>gtk_text_view_get_buffer ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *
|
||
gtk_text_view_get_buffer (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Returns the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> being displayed by this text view.
|
||
The reference count on the buffer is not incremented; the caller
|
||
of this function won’t own a new reference.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-buffer.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-buffer.returns"></a><h4>Returns</h4>
|
||
<p>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. </p>
|
||
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-hadjustment"></a><h3>gtk_text_view_get_hadjustment ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *
|
||
gtk_text_view_get_hadjustment (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<div class="warning">
|
||
<p><code class="literal">gtk_text_view_get_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code.</p>
|
||
<p>Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()"><code class="function">gtk_scrollable_get_hadjustment()</code></a></p>
|
||
</div>
|
||
<p>Gets the horizontal-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-hadjustment.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-hadjustment.returns"></a><h4>Returns</h4>
|
||
<p>pointer to the horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. </p>
|
||
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||
</div>
|
||
<p class="since">Since: 2.22</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-vadjustment"></a><h3>gtk_text_view_get_vadjustment ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *
|
||
gtk_text_view_get_vadjustment (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<div class="warning">
|
||
<p><code class="literal">gtk_text_view_get_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code.</p>
|
||
<p>Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()"><code class="function">gtk_scrollable_get_vadjustment()</code></a></p>
|
||
</div>
|
||
<p>Gets the vertical-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-vadjustment.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-vadjustment.returns"></a><h4>Returns</h4>
|
||
<p>pointer to the vertical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. </p>
|
||
<p><span class="annotation">[<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||
</div>
|
||
<p class="since">Since: 2.22</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-scroll-to-mark"></a><h3>gtk_text_view_scroll_to_mark ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_scroll_to_mark (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> within_margin</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> use_align</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> xalign</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> yalign</code></em>);</pre>
|
||
<p>Scrolls <em class="parameter"><code>text_view</code></em>
|
||
so that <em class="parameter"><code>mark</code></em>
|
||
is on the screen in the position
|
||
indicated by <em class="parameter"><code>xalign</code></em>
|
||
and <em class="parameter"><code>yalign</code></em>
|
||
. An alignment of 0.0 indicates
|
||
left or top, 1.0 indicates right or bottom, 0.5 means center.
|
||
If <em class="parameter"><code>use_align</code></em>
|
||
is <code class="literal">FALSE</code>, the text scrolls the minimal distance to
|
||
get the mark onscreen, possibly not scrolling at all. The effective
|
||
screen for purposes of this function is reduced by a margin of size
|
||
<em class="parameter"><code>within_margin</code></em>
|
||
.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-scroll-to-mark.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>mark</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>within_margin</p></td>
|
||
<td class="parameter_description"><p>margin as a [0.0,0.5) fraction of screen size</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>use_align</p></td>
|
||
<td class="parameter_description"><p>whether to use alignment arguments (if <code class="literal">FALSE</code>, just
|
||
get the mark onscreen)</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>xalign</p></td>
|
||
<td class="parameter_description"><p>horizontal alignment of mark within visible area</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>yalign</p></td>
|
||
<td class="parameter_description"><p>vertical alignment of mark within visible area</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-scroll-to-iter"></a><h3>gtk_text_view_scroll_to_iter ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_scroll_to_iter (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> within_margin</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> use_align</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> xalign</code></em>,
|
||
<em class="parameter"><code><span class="type">gdouble</span> yalign</code></em>);</pre>
|
||
<p>Scrolls <em class="parameter"><code>text_view</code></em>
|
||
so that <em class="parameter"><code>iter</code></em>
|
||
is on the screen in the position
|
||
indicated by <em class="parameter"><code>xalign</code></em>
|
||
and <em class="parameter"><code>yalign</code></em>
|
||
. An alignment of 0.0 indicates
|
||
left or top, 1.0 indicates right or bottom, 0.5 means center.
|
||
If <em class="parameter"><code>use_align</code></em>
|
||
is <code class="literal">FALSE</code>, the text scrolls the minimal distance to
|
||
get the mark onscreen, possibly not scrolling at all. The effective
|
||
screen for purposes of this function is reduced by a margin of size
|
||
<em class="parameter"><code>within_margin</code></em>
|
||
.</p>
|
||
<p>Note that this function uses the currently-computed height of the
|
||
lines in the text buffer. Line heights are computed in an idle
|
||
handler; so this function may not have the desired effect if it’s
|
||
called before the height computations. To avoid oddness, consider
|
||
using <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()"><code class="function">gtk_text_view_scroll_to_mark()</code></a> which saves a point to be
|
||
scrolled to after line validation.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-scroll-to-iter.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>within_margin</p></td>
|
||
<td class="parameter_description"><p>margin as a [0.0,0.5) fraction of screen size</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>use_align</p></td>
|
||
<td class="parameter_description"><p>whether to use alignment arguments (if <code class="literal">FALSE</code>,
|
||
just get the mark onscreen)</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>xalign</p></td>
|
||
<td class="parameter_description"><p>horizontal alignment of mark within visible area</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>yalign</p></td>
|
||
<td class="parameter_description"><p>vertical alignment of mark within visible area</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-scroll-to-iter.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if scrolling occurred</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-scroll-mark-onscreen"></a><h3>gtk_text_view_scroll_mark_onscreen ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_scroll_mark_onscreen (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
|
||
<p>Scrolls <em class="parameter"><code>text_view</code></em>
|
||
the minimum distance such that <em class="parameter"><code>mark</code></em>
|
||
is contained
|
||
within the visible area of the widget.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-scroll-mark-onscreen.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>mark</p></td>
|
||
<td class="parameter_description"><p>a mark in the buffer for <em class="parameter"><code>text_view</code></em>
|
||
</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-move-mark-onscreen"></a><h3>gtk_text_view_move_mark_onscreen ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_move_mark_onscreen (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
|
||
<p>Moves a mark within the buffer so that it's
|
||
located within the currently-visible text area.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-move-mark-onscreen.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>mark</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-move-mark-onscreen.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the mark moved (wasn’t already onscreen)</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-place-cursor-onscreen"></a><h3>gtk_text_view_place_cursor_onscreen ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_place_cursor_onscreen (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Moves the cursor to the currently visible region of the
|
||
buffer, it it isn’t there already.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-place-cursor-onscreen.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-place-cursor-onscreen.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the cursor had to be moved.</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-visible-rect"></a><h3>gtk_text_view_get_visible_rect ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_get_visible_rect (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);</pre>
|
||
<p>Fills <em class="parameter"><code>visible_rect</code></em>
|
||
with the currently-visible
|
||
region of the buffer, in buffer coordinates. Convert to window coordinates
|
||
with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-visible-rect.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>visible_rect</p></td>
|
||
<td class="parameter_description"><p>rectangle to fill. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-iter-location"></a><h3>gtk_text_view_get_iter_location ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_get_iter_location (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);</pre>
|
||
<p>Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>
|
||
.
|
||
The rectangle position is in buffer coordinates; use
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
|
||
coordinates to coordinates for one of the windows in the text view.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-iter-location.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>location</p></td>
|
||
<td class="parameter_description"><p>bounds of the character at <em class="parameter"><code>iter</code></em>
|
||
. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-cursor-locations"></a><h3>gtk_text_view_get_cursor_locations ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_get_cursor_locations (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *strong</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *weak</code></em>);</pre>
|
||
<p>Given an <em class="parameter"><code>iter</code></em>
|
||
within a text layout, determine the positions of the
|
||
strong and weak cursors if the insertion point is at that
|
||
iterator. The position of each cursor is stored as a zero-width
|
||
rectangle. The strong cursor location is the location where
|
||
characters of the directionality equal to the base direction of the
|
||
paragraph are inserted. The weak cursor location is the location
|
||
where characters of the directionality opposite to the base
|
||
direction of the paragraph are inserted.</p>
|
||
<p>If <em class="parameter"><code>iter</code></em>
|
||
is <code class="literal">NULL</code>, the actual cursor position is used.</p>
|
||
<p>Note that if <em class="parameter"><code>iter</code></em>
|
||
happens to be the actual cursor position, and
|
||
there is currently an IM preedit sequence being entered, the
|
||
returned locations will be adjusted to account for the preedit
|
||
cursor’s offset within the preedit sequence.</p>
|
||
<p>The rectangle position is in buffer coordinates; use
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
|
||
coordinates to coordinates for one of the windows in the text view.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-cursor-locations.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>strong</p></td>
|
||
<td class="parameter_description"><p>location to store the strong
|
||
cursor position (may be <code class="literal">NULL</code>). </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>weak</p></td>
|
||
<td class="parameter_description"><p>location to store the weak
|
||
cursor position (may be <code class="literal">NULL</code>). </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-line-at-y"></a><h3>gtk_text_view_get_line_at_y ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_get_line_at_y (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> y</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *line_top</code></em>);</pre>
|
||
<p>Gets the <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containing
|
||
the coordinate <em class="parameter"><code>y</code></em>
|
||
. <em class="parameter"><code>y</code></em>
|
||
is in buffer coordinates, convert from
|
||
window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
|
||
If non-<code class="literal">NULL</code>, <em class="parameter"><code>line_top</code></em>
|
||
will be filled with the coordinate of the top
|
||
edge of the line.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-line-at-y.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>target_iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>y</p></td>
|
||
<td class="parameter_description"><p>a y coordinate</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>line_top</p></td>
|
||
<td class="parameter_description"><p>return location for top coordinate of the line. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-line-yrange"></a><h3>gtk_text_view_get_line_yrange ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_get_line_yrange (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *y</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *height</code></em>);</pre>
|
||
<p>Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>
|
||
,
|
||
and the height of the line. The coordinate is a buffer coordinate;
|
||
convert to window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-line-yrange.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>y</p></td>
|
||
<td class="parameter_description"><p>return location for a y coordinate. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>height</p></td>
|
||
<td class="parameter_description"><p>return location for a height. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-iter-at-location"></a><h3>gtk_text_view_get_iter_at_location ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_iter_at_location (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
|
||
<p>Retrieves the iterator at buffer coordinates <em class="parameter"><code>x</code></em>
|
||
and <em class="parameter"><code>y</code></em>
|
||
. Buffer
|
||
coordinates are coordinates for the entire buffer, not just the
|
||
currently-displayed portion. If you have coordinates from an
|
||
event, you have to convert those to buffer coordinates with
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-iter-at-location.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>x</p></td>
|
||
<td class="parameter_description"><p>x position, in buffer coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>y</p></td>
|
||
<td class="parameter_description"><p>y position, in buffer coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-iter-at-location.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the position is over text</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-iter-at-position"></a><h3>gtk_text_view_get_iter_at_position ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_iter_at_position (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *trailing</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> y</code></em>);</pre>
|
||
<p>Retrieves the iterator pointing to the character at buffer
|
||
coordinates <em class="parameter"><code>x</code></em>
|
||
and <em class="parameter"><code>y</code></em>
|
||
. Buffer coordinates are coordinates for
|
||
the entire buffer, not just the currently-displayed portion.
|
||
If you have coordinates from an event, you have to convert
|
||
those to buffer coordinates with
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.</p>
|
||
<p>Note that this is different from <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()"><code class="function">gtk_text_view_get_iter_at_location()</code></a>,
|
||
which returns cursor locations, i.e. positions between
|
||
characters.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-iter-at-position.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>trailing</p></td>
|
||
<td class="parameter_description"><p>if non-<code class="literal">NULL</code>, location to store an integer indicating where
|
||
in the grapheme the user clicked. It will either be
|
||
zero, or the number of characters in the grapheme.
|
||
0 represents the trailing edge of the grapheme. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>x</p></td>
|
||
<td class="parameter_description"><p>x position, in buffer coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>y</p></td>
|
||
<td class="parameter_description"><p>y position, in buffer coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-iter-at-position.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the position is over text</p>
|
||
</div>
|
||
<p class="since">Since: 2.6</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-buffer-to-window-coords"></a><h3>gtk_text_view_buffer_to_window_coords ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_buffer_to_window_coords (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> buffer_x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> buffer_y</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *window_x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *window_y</code></em>);</pre>
|
||
<p>Converts coordinate (<em class="parameter"><code>buffer_x</code></em>
|
||
, <em class="parameter"><code>buffer_y</code></em>
|
||
) to coordinates for the window
|
||
<em class="parameter"><code>win</code></em>
|
||
, and stores the result in (<em class="parameter"><code>window_x</code></em>
|
||
, <em class="parameter"><code>window_y</code></em>
|
||
). </p>
|
||
<p>Note that you can’t convert coordinates for a nonexisting window (see
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-buffer-to-window-coords.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>win</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a>, except <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-PRIVATE:CAPS"><code class="literal">GTK_TEXT_WINDOW_PRIVATE</code></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>buffer_x</p></td>
|
||
<td class="parameter_description"><p>buffer x coordinate</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>buffer_y</p></td>
|
||
<td class="parameter_description"><p>buffer y coordinate</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>window_x</p></td>
|
||
<td class="parameter_description"><p>window x coordinate return location or <code class="literal">NULL</code>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>window_y</p></td>
|
||
<td class="parameter_description"><p>window y coordinate return location or <code class="literal">NULL</code>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-window-to-buffer-coords"></a><h3>gtk_text_view_window_to_buffer_coords ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_window_to_buffer_coords (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> window_x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> window_y</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *buffer_x</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> *buffer_y</code></em>);</pre>
|
||
<p>Converts coordinates on the window identified by <em class="parameter"><code>win</code></em>
|
||
to buffer
|
||
coordinates, storing the result in (<em class="parameter"><code>buffer_x</code></em>
|
||
,<em class="parameter"><code>buffer_y</code></em>
|
||
).</p>
|
||
<p>Note that you can’t convert coordinates for a nonexisting window (see
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-window-to-buffer-coords.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>win</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-PRIVATE:CAPS"><code class="literal">GTK_TEXT_WINDOW_PRIVATE</code></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>window_x</p></td>
|
||
<td class="parameter_description"><p>window x coordinate</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>window_y</p></td>
|
||
<td class="parameter_description"><p>window y coordinate</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>buffer_x</p></td>
|
||
<td class="parameter_description"><p>buffer x coordinate return location or <code class="literal">NULL</code>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>buffer_y</p></td>
|
||
<td class="parameter_description"><p>buffer y coordinate return location or <code class="literal">NULL</code>. </p></td>
|
||
<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-window"></a><h3>gtk_text_view_get_window ()</h3>
|
||
<pre class="programlisting"><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="returnvalue">GdkWindow</span></a> *
|
||
gtk_text_view_get_window (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);</pre>
|
||
<p>Retrieves the <a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> corresponding to an area of the text view;
|
||
possible windows include the overall widget window, child windows
|
||
on the left, right, top, bottom, and the window that displays the
|
||
text buffer. Windows are <code class="literal">NULL</code> and nonexistent if their width or
|
||
height is 0, and are nonexistent before the widget has been
|
||
realized.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-window.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>win</p></td>
|
||
<td class="parameter_description"><p>window to get</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-window.returns"></a><h4>Returns</h4>
|
||
<p>a <a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a>, or <code class="literal">NULL</code>. </p>
|
||
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The data is owned by the callee, which is responsible of freeing it."><span class="acronym">transfer none</span></acronym>]</span></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-window-type"></a><h3>gtk_text_view_get_window_type ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>
|
||
gtk_text_view_get_window_type (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Windows.html#GdkWindow-struct"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
|
||
<p>Usually used to find out which window an event corresponds to.</p>
|
||
<p>If you connect to an event signal on <em class="parameter"><code>text_view</code></em>
|
||
, this function
|
||
should be called on <code class="literal">event->window</code> to see which window it was.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-window-type.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>window</p></td>
|
||
<td class="parameter_description"><p>a window type</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-window-type.returns"></a><h4>Returns</h4>
|
||
<p> the window type.</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-border-window-size"></a><h3>gtk_text_view_set_border_window_size ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_border_window_size (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> size</code></em>);</pre>
|
||
<p>Sets the width of <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-LEFT:CAPS"><code class="literal">GTK_TEXT_WINDOW_LEFT</code></a> or <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-RIGHT:CAPS"><code class="literal">GTK_TEXT_WINDOW_RIGHT</code></a>,
|
||
or the height of <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-TOP:CAPS"><code class="literal">GTK_TEXT_WINDOW_TOP</code></a> or <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-BOTTOM:CAPS"><code class="literal">GTK_TEXT_WINDOW_BOTTOM</code></a>.
|
||
Automatically destroys the corresponding window if the size is set
|
||
to 0, and creates the window if the size is set to non-zero. This
|
||
function can only be used for the “border windows”, and it won’t
|
||
work with <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-WIDGET:CAPS"><code class="literal">GTK_TEXT_WINDOW_WIDGET</code></a>, <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-TEXT:CAPS"><code class="literal">GTK_TEXT_WINDOW_TEXT</code></a>, or
|
||
<a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-PRIVATE:CAPS"><code class="literal">GTK_TEXT_WINDOW_PRIVATE</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-border-window-size.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>type</p></td>
|
||
<td class="parameter_description"><p>window to affect</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>size</p></td>
|
||
<td class="parameter_description"><p>width or height of the window</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-border-window-size"></a><h3>gtk_text_view_get_border_window_size ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_border_window_size (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);</pre>
|
||
<p>Gets the width of the specified border window. See
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-border-window-size.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>type</p></td>
|
||
<td class="parameter_description"><p>window to return size from</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-border-window-size.returns"></a><h4>Returns</h4>
|
||
<p> width of window</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-forward-display-line"></a><h3>gtk_text_view_forward_display_line ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_forward_display_line (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
|
||
<p>Moves the given <em class="parameter"><code>iter</code></em>
|
||
forward by one display (wrapped) line.
|
||
A display line is different from a paragraph. Paragraphs are
|
||
separated by newlines or other paragraph separator characters.
|
||
Display lines are created by line-wrapping a paragraph. If
|
||
wrapping is turned off, display lines and paragraphs will be the
|
||
same. Display lines are divided differently for each view, since
|
||
they depend on the view’s width; paragraphs are the same in all
|
||
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-forward-display-line.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-forward-display-line.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
was moved and is not on the end iterator</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-backward-display-line"></a><h3>gtk_text_view_backward_display_line ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_backward_display_line (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
|
||
<p>Moves the given <em class="parameter"><code>iter</code></em>
|
||
backward by one display (wrapped) line.
|
||
A display line is different from a paragraph. Paragraphs are
|
||
separated by newlines or other paragraph separator characters.
|
||
Display lines are created by line-wrapping a paragraph. If
|
||
wrapping is turned off, display lines and paragraphs will be the
|
||
same. Display lines are divided differently for each view, since
|
||
they depend on the view’s width; paragraphs are the same in all
|
||
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-backward-display-line.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-backward-display-line.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
was moved and is not on the end iterator</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-forward-display-line-end"></a><h3>gtk_text_view_forward_display_line_end ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_forward_display_line_end
|
||
(<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
|
||
<p>Moves the given <em class="parameter"><code>iter</code></em>
|
||
forward to the next display line end.
|
||
A display line is different from a paragraph. Paragraphs are
|
||
separated by newlines or other paragraph separator characters.
|
||
Display lines are created by line-wrapping a paragraph. If
|
||
wrapping is turned off, display lines and paragraphs will be the
|
||
same. Display lines are divided differently for each view, since
|
||
they depend on the view’s width; paragraphs are the same in all
|
||
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-forward-display-line-end.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-forward-display-line-end.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
was moved and is not on the end iterator</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-backward-display-line-start"></a><h3>gtk_text_view_backward_display_line_start ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_backward_display_line_start
|
||
(<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
|
||
<p>Moves the given <em class="parameter"><code>iter</code></em>
|
||
backward to the next display line start.
|
||
A display line is different from a paragraph. Paragraphs are
|
||
separated by newlines or other paragraph separator characters.
|
||
Display lines are created by line-wrapping a paragraph. If
|
||
wrapping is turned off, display lines and paragraphs will be the
|
||
same. Display lines are divided differently for each view, since
|
||
they depend on the view’s width; paragraphs are the same in all
|
||
views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-backward-display-line-start.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-backward-display-line-start.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
was moved and is not on the end iterator</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-starts-display-line"></a><h3>gtk_text_view_starts_display_line ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_starts_display_line (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
|
||
<p>Determines whether <em class="parameter"><code>iter</code></em>
|
||
is at the start of a display line.
|
||
See <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()"><code class="function">gtk_text_view_forward_display_line()</code></a> for an explanation of
|
||
display lines vs. paragraphs.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-starts-display-line.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-starts-display-line.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
begins a wrapped line</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-move-visually"></a><h3>gtk_text_view_move_visually ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_move_visually (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> count</code></em>);</pre>
|
||
<p>Move the iterator a given number of characters visually, treating
|
||
it as the strong cursor position. If <em class="parameter"><code>count</code></em>
|
||
is positive, then the
|
||
new strong cursor position will be <em class="parameter"><code>count</code></em>
|
||
positions to the right of
|
||
the old cursor position. If <em class="parameter"><code>count</code></em>
|
||
is negative then the new strong
|
||
cursor position will be <em class="parameter"><code>count</code></em>
|
||
positions to the left of the old
|
||
cursor position.</p>
|
||
<p>In the presence of bi-directional text, the correspondence
|
||
between logical and visual order will depend on the direction
|
||
of the current run, and there may be jumps when the cursor
|
||
is moved off of the end of a run.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-move-visually.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>iter</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>count</p></td>
|
||
<td class="parameter_description"><p>number of characters to move (negative moves left,
|
||
positive moves right)</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-move-visually.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>iter</code></em>
|
||
moved and is not on the end iterator</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-add-child-at-anchor"></a><h3>gtk_text_view_add_child_at_anchor ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_add_child_at_anchor (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
|
||
<p>Adds a child widget in the text buffer, at the given <em class="parameter"><code>anchor</code></em>
|
||
.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-add-child-at-anchor.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>child</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>anchor</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> in the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> for <em class="parameter"><code>text_view</code></em>
|
||
</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-child-anchor-new"></a><h3>gtk_text_child_anchor_new ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> *
|
||
gtk_text_child_anchor_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
||
<p>Creates a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>. Usually you would then insert
|
||
it into a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> with <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor" title="gtk_text_buffer_insert_child_anchor ()"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>.
|
||
To perform the creation and insertion in one step, use the
|
||
convenience function <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor" title="gtk_text_buffer_create_child_anchor ()"><code class="function">gtk_text_buffer_create_child_anchor()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-child-anchor-new.returns"></a><h4>Returns</h4>
|
||
<p> a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-child-anchor-get-widgets"></a><h3>gtk_text_child_anchor_get_widgets ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">GList</span> *
|
||
gtk_text_child_anchor_get_widgets (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
|
||
<p>Gets a list of all widgets anchored at this child anchor.
|
||
The returned list should be freed with <code class="function">g_list_free()</code>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-child-anchor-get-widgets.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>anchor</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-child-anchor-get-widgets.returns"></a><h4>Returns</h4>
|
||
<p>list of widgets anchored at <em class="parameter"><code>anchor</code></em>
|
||
. </p>
|
||
<p><span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="The caller owns the data container, but not the data inside it."><span class="acronym">transfer container</span></acronym>]</span></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-child-anchor-get-deleted"></a><h3>gtk_text_child_anchor_get_deleted ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_child_anchor_get_deleted (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
|
||
<p>Determines whether a child anchor has been deleted from
|
||
the buffer. Keep in mind that the child anchor will be
|
||
unreferenced when removed from the buffer, so you need to
|
||
hold your own reference (with <code class="function">g_object_ref()</code>) if you plan
|
||
to use this function — otherwise all deleted child anchors
|
||
will also be finalized.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-child-anchor-get-deleted.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>anchor</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-child-anchor-get-deleted.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the child anchor has been deleted from its buffer</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-add-child-in-window"></a><h3>gtk_text_view_add_child_in_window ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_add_child_in_window (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> xpos</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> ypos</code></em>);</pre>
|
||
<p>Adds a child at fixed coordinates in one of the text widget's
|
||
windows.</p>
|
||
<p>The window must have nonzero size (see
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>). Note that the child
|
||
coordinates are given relative to scrolling. When
|
||
placing a child in <a class="link" href="GtkTextView.html#GTK-TEXT-WINDOW-WIDGET:CAPS"><span class="type">GTK_TEXT_WINDOW_WIDGET</span></a>, scrolling is
|
||
irrelevant, the child floats above all scrollable areas. But when
|
||
placing a child in one of the scrollable windows (border windows or
|
||
text window) it will move with the scrolling as needed.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-add-child-in-window.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>child</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>which_window</p></td>
|
||
<td class="parameter_description"><p>which window the child should appear in</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>xpos</p></td>
|
||
<td class="parameter_description"><p>X position of child in window coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>ypos</p></td>
|
||
<td class="parameter_description"><p>Y position of child in window coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-move-child"></a><h3>gtk_text_view_move_child ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_move_child (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> xpos</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> ypos</code></em>);</pre>
|
||
<p>Updates the position of a child, as for <a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()"><code class="function">gtk_text_view_add_child_in_window()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-move-child.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>child</p></td>
|
||
<td class="parameter_description"><p>child widget already added to the text view</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>xpos</p></td>
|
||
<td class="parameter_description"><p>new X position in window coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>ypos</p></td>
|
||
<td class="parameter_description"><p>new Y position in window coordinates</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-wrap-mode"></a><h3>gtk_text_view_set_wrap_mode ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_wrap_mode (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);</pre>
|
||
<p>Sets the line wrapping for the view.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-wrap-mode.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>wrap_mode</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-wrap-mode"></a><h3>gtk_text_view_get_wrap_mode ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>
|
||
gtk_text_view_get_wrap_mode (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the line wrapping for the view.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-wrap-mode.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-wrap-mode.returns"></a><h4>Returns</h4>
|
||
<p> the line wrap setting</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-editable"></a><h3>gtk_text_view_set_editable ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_editable (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
|
||
<p>Sets the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. You can override
|
||
this default setting with tags in the buffer, using the “editable”
|
||
attribute of tags.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-editable.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>setting</p></td>
|
||
<td class="parameter_description"><p>whether it’s editable</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-editable"></a><h3>gtk_text_view_get_editable ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_editable (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Returns the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. Tags in the
|
||
buffer may override this setting for some ranges of text.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-editable.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-editable.returns"></a><h4>Returns</h4>
|
||
<p> whether text is editable by default</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-cursor-visible"></a><h3>gtk_text_view_set_cursor_visible ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_cursor_visible (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> setting</code></em>);</pre>
|
||
<p>Toggles whether the insertion point should be displayed. A buffer with
|
||
no editable text probably shouldn’t have a visible cursor, so you may
|
||
want to turn the cursor off.</p>
|
||
<p>Note that this property may be overridden by the
|
||
<span class="type">“gtk-keynave-use-caret”</span> settings.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-cursor-visible.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>setting</p></td>
|
||
<td class="parameter_description"><p>whether to show the insertion cursor</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-cursor-visible"></a><h3>gtk_text_view_get_cursor_visible ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_cursor_visible (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Find out whether the cursor should be displayed.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-cursor-visible.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-cursor-visible.returns"></a><h4>Returns</h4>
|
||
<p> whether the insertion mark is visible</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-reset-cursor-blink"></a><h3>gtk_text_view_reset_cursor_blink ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_reset_cursor_blink (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Ensures that the cursor is shown (i.e. not in an 'off' blink
|
||
interval) and resets the time that it will stay blinking (or
|
||
visible, in case blinking is disabled).</p>
|
||
<p>This function should be called in response to user input
|
||
(e.g. from derived classes that override the textview's
|
||
<a class="link" href="GtkWidget.html#GtkWidget-key-press-event" title="The “key-press-event” signal"><span class="type">“key-press-event”</span></a> handler).</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-reset-cursor-blink.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-20.html#api-index-3.20">3.20</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-overwrite"></a><h3>gtk_text_view_set_overwrite ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_overwrite (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> overwrite</code></em>);</pre>
|
||
<p>Changes the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> overwrite mode.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-overwrite.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>overwrite</p></td>
|
||
<td class="parameter_description"><p><code class="literal">TRUE</code> to turn on overwrite mode, <code class="literal">FALSE</code> to turn it off</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: 2.4</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-overwrite"></a><h3>gtk_text_view_get_overwrite ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_overwrite (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Returns whether the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> is in overwrite mode or not.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-overwrite.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-overwrite.returns"></a><h4>Returns</h4>
|
||
<p> whether <em class="parameter"><code>text_view</code></em>
|
||
is in overwrite mode or not.</p>
|
||
</div>
|
||
<p class="since">Since: 2.4</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-pixels-above-lines"></a><h3>gtk_text_view_set_pixels_above_lines ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_pixels_above_lines (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> pixels_above_lines</code></em>);</pre>
|
||
<p>Sets the default number of blank pixels above paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer for <em class="parameter"><code>text_view</code></em>
|
||
may override the defaults.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-pixels-above-lines.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>pixels_above_lines</p></td>
|
||
<td class="parameter_description"><p>pixels above paragraphs</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-pixels-above-lines"></a><h3>gtk_text_view_get_pixels_above_lines ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_pixels_above_lines (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default number of pixels to put above paragraphs.
|
||
Adding this function with <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-below-lines" title="gtk_text_view_get_pixels_below_lines ()"><code class="function">gtk_text_view_get_pixels_below_lines()</code></a>
|
||
is equal to the line space between each paragraph.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-above-lines.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-above-lines.returns"></a><h4>Returns</h4>
|
||
<p> default number of pixels above paragraphs</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-pixels-below-lines"></a><h3>gtk_text_view_set_pixels_below_lines ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_pixels_below_lines (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> pixels_below_lines</code></em>);</pre>
|
||
<p>Sets the default number of pixels of blank space
|
||
to put below paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
. May be overridden
|
||
by tags applied to <em class="parameter"><code>text_view</code></em>
|
||
’s buffer.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-pixels-below-lines.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>pixels_below_lines</p></td>
|
||
<td class="parameter_description"><p>pixels below paragraphs </p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-pixels-below-lines"></a><h3>gtk_text_view_get_pixels_below_lines ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_pixels_below_lines (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()"><code class="function">gtk_text_view_set_pixels_below_lines()</code></a>.</p>
|
||
<p>The line space is the sum of the value returned by this function and the
|
||
value returned by <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-above-lines" title="gtk_text_view_get_pixels_above_lines ()"><code class="function">gtk_text_view_get_pixels_above_lines()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-below-lines.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-below-lines.returns"></a><h4>Returns</h4>
|
||
<p> default number of blank pixels below paragraphs</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-pixels-inside-wrap"></a><h3>gtk_text_view_set_pixels_inside_wrap ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_pixels_inside_wrap (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> pixels_inside_wrap</code></em>);</pre>
|
||
<p>Sets the default number of pixels of blank space to leave between
|
||
display/wrapped lines within a paragraph. May be overridden by
|
||
tags in <em class="parameter"><code>text_view</code></em>
|
||
’s buffer.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-pixels-inside-wrap.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>pixels_inside_wrap</p></td>
|
||
<td class="parameter_description"><p>default number of pixels between wrapped lines</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-pixels-inside-wrap"></a><h3>gtk_text_view_get_pixels_inside_wrap ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_pixels_inside_wrap (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()"><code class="function">gtk_text_view_set_pixels_inside_wrap()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-inside-wrap.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-pixels-inside-wrap.returns"></a><h4>Returns</h4>
|
||
<p> default number of pixels of blank space between wrapped lines</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-justification"></a><h3>gtk_text_view_set_justification ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_justification (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);</pre>
|
||
<p>Sets the default justification of text in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the view’s buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-justification.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>justification</p></td>
|
||
<td class="parameter_description"><p>justification</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-justification"></a><h3>gtk_text_view_get_justification ()</h3>
|
||
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>
|
||
gtk_text_view_get_justification (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default justification of paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-justification.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-justification.returns"></a><h4>Returns</h4>
|
||
<p> default justification</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-left-margin"></a><h3>gtk_text_view_set_left_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_left_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> left_margin</code></em>);</pre>
|
||
<p>Sets the default left margin for text in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer may override the default.</p>
|
||
<p>Note that this function is confusingly named.
|
||
In CSS terms, the value set here is padding.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-left-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>left_margin</p></td>
|
||
<td class="parameter_description"><p>left margin in pixels</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-left-margin"></a><h3>gtk_text_view_get_left_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_left_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default left margin size of paragraphs in the <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-left-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-left-margin.returns"></a><h4>Returns</h4>
|
||
<p> left margin in pixels</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-right-margin"></a><h3>gtk_text_view_set_right_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_right_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> right_margin</code></em>);</pre>
|
||
<p>Sets the default right margin for text in the text view.
|
||
Tags in the buffer may override the default.</p>
|
||
<p>Note that this function is confusingly named.
|
||
In CSS terms, the value set here is padding.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-right-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>right_margin</p></td>
|
||
<td class="parameter_description"><p>right margin in pixels</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-right-margin"></a><h3>gtk_text_view_get_right_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_right_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default right margin for text in <em class="parameter"><code>text_view</code></em>
|
||
. Tags
|
||
in the buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-right-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-right-margin.returns"></a><h4>Returns</h4>
|
||
<p> right margin in pixels</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-top-margin"></a><h3>gtk_text_view_set_top_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_top_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> top_margin</code></em>);</pre>
|
||
<p>Sets the top margin for text in <em class="parameter"><code>text_view</code></em>
|
||
.</p>
|
||
<p>Note that this function is confusingly named.
|
||
In CSS terms, the value set here is padding.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-top-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>top_margin</p></td>
|
||
<td class="parameter_description"><p>top margin in pixels</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-top-margin"></a><h3>gtk_text_view_get_top_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_top_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the top margin for text in the <em class="parameter"><code>text_view</code></em>
|
||
.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-top-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-top-margin.returns"></a><h4>Returns</h4>
|
||
<p> top margin in pixels</p>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-bottom-margin"></a><h3>gtk_text_view_set_bottom_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_bottom_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> bottom_margin</code></em>);</pre>
|
||
<p>Sets the bottom margin for text in <em class="parameter"><code>text_view</code></em>
|
||
.</p>
|
||
<p>Note that this function is confusingly named.
|
||
In CSS terms, the value set here is padding.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-bottom-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>bottom_margin</p></td>
|
||
<td class="parameter_description"><p>bottom margin in pixels</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-bottom-margin"></a><h3>gtk_text_view_get_bottom_margin ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_bottom_margin (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the bottom margin for text in the <em class="parameter"><code>text_view</code></em>
|
||
.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-bottom-margin.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-bottom-margin.returns"></a><h4>Returns</h4>
|
||
<p> bottom margin in pixels</p>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-indent"></a><h3>gtk_text_view_set_indent ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_indent (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gint</span> indent</code></em>);</pre>
|
||
<p>Sets the default indentation for paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-indent.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>indent</p></td>
|
||
<td class="parameter_description"><p>indentation in pixels</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-indent"></a><h3>gtk_text_view_get_indent ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gint</span>
|
||
gtk_text_view_get_indent (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default indentation of paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the view’s buffer may override the default.
|
||
The indentation may be negative.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-indent.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-indent.returns"></a><h4>Returns</h4>
|
||
<p> number of pixels of indentation</p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-tabs"></a><h3>gtk_text_view_set_tabs ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_tabs (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">PangoTabArray</span> *tabs</code></em>);</pre>
|
||
<p>Sets the default tab stops for paragraphs in <em class="parameter"><code>text_view</code></em>
|
||
.
|
||
Tags in the buffer may override the default.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-tabs.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>tabs</p></td>
|
||
<td class="parameter_description"><p>tabs as a <span class="type">PangoTabArray</span></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-tabs"></a><h3>gtk_text_view_get_tabs ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">PangoTabArray</span> *
|
||
gtk_text_view_get_tabs (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the default tabs for <em class="parameter"><code>text_view</code></em>
|
||
. Tags in the buffer may
|
||
override the defaults. The returned array will be <code class="literal">NULL</code> if
|
||
“standard” (8-space) tabs are used. Free the return value
|
||
with <code class="function">pango_tab_array_free()</code>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-tabs.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-tabs.returns"></a><h4>Returns</h4>
|
||
<p>copy of default tab array, or <code class="literal">NULL</code> if
|
||
“standard" tabs are used; must be freed with <code class="function">pango_tab_array_free()</code>. </p>
|
||
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-accepts-tab"></a><h3>gtk_text_view_set_accepts_tab ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_accepts_tab (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> accepts_tab</code></em>);</pre>
|
||
<p>Sets the behavior of the text widget when the Tab key is pressed.
|
||
If <em class="parameter"><code>accepts_tab</code></em>
|
||
is <code class="literal">TRUE</code>, a tab character is inserted. If <em class="parameter"><code>accepts_tab</code></em>
|
||
|
||
is <code class="literal">FALSE</code> the keyboard focus is moved to the next widget in the focus
|
||
chain.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-accepts-tab.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>accepts_tab</p></td>
|
||
<td class="parameter_description"><p><code class="literal">TRUE</code> if pressing the Tab key should insert a tab
|
||
character, <code class="literal">FALSE</code>, if pressing the Tab key should move the
|
||
keyboard focus.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: 2.4</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-accepts-tab"></a><h3>gtk_text_view_get_accepts_tab ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_accepts_tab (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Returns whether pressing the Tab key inserts a tab characters.
|
||
<a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()"><code class="function">gtk_text_view_set_accepts_tab()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-accepts-tab.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-accepts-tab.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if pressing the Tab key inserts a tab character,
|
||
<code class="literal">FALSE</code> if pressing the Tab key moves the keyboard focus.</p>
|
||
</div>
|
||
<p class="since">Since: 2.4</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-default-attributes"></a><h3>gtk_text_view_get_default_attributes ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> *
|
||
gtk_text_view_get_default_attributes (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Obtains a copy of the default text attributes. These are the
|
||
attributes used for text unless a tag overrides them.
|
||
You’d typically pass the default attributes in to
|
||
<a class="link" href="GtkTextIter.html#gtk-text-iter-get-attributes" title="gtk_text_iter_get_attributes ()"><code class="function">gtk_text_iter_get_attributes()</code></a> in order to get the
|
||
attributes in effect at a given text position.</p>
|
||
<p>The return value is a copy owned by the caller of this function,
|
||
and should be freed with <a class="link" href="GtkTextTag.html#gtk-text-attributes-unref" title="gtk_text_attributes_unref ()"><code class="function">gtk_text_attributes_unref()</code></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-default-attributes.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-default-attributes.returns"></a><h4>Returns</h4>
|
||
<p> a new <a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="type">GtkTextAttributes</span></a></p>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-im-context-filter-keypress"></a><h3>gtk_text_view_im_context_filter_keypress ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_im_context_filter_keypress
|
||
(<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a href="../html/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
|
||
<p>Allow the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> input method to internally handle key press
|
||
and release events. If this function returns <code class="literal">TRUE</code>, then no further
|
||
processing should be done for this key event. See
|
||
<a class="link" href="GtkIMContext.html#gtk-im-context-filter-keypress" title="gtk_im_context_filter_keypress ()"><code class="function">gtk_im_context_filter_keypress()</code></a>.</p>
|
||
<p>Note that you are expected to call this function from your handler
|
||
when overriding key event handling. This is needed in the case when
|
||
you need to insert your own key handling between the input method
|
||
and the default key event handling of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</p>
|
||
<div class="informalexample">
|
||
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
|
||
<tbody>
|
||
<tr>
|
||
<td class="listing_lines" align="right"><pre>1
|
||
2
|
||
3
|
||
4
|
||
5
|
||
6
|
||
7
|
||
8
|
||
9
|
||
10
|
||
11
|
||
12
|
||
13
|
||
14
|
||
15
|
||
16
|
||
17
|
||
18</pre></td>
|
||
<td class="listing_code"><pre class="programlisting"><span class="k">static</span><span class="w"> </span><span class="n">gboolean</span><span class="w"></span>
|
||
<span class="nf">gtk_foo_bar_key_press_event</span><span class="w"> </span><span class="p">(</span><span class="n">GtkWidget</span><span class="w"> </span><span class="o">*</span><span class="n">widget</span><span class="p">,</span><span class="w"></span>
|
||
<span class="w"> </span><span class="n">GdkEventKey</span><span class="w"> </span><span class="o">*</span><span class="n">event</span><span class="p">)</span><span class="w"></span>
|
||
<span class="p">{</span><span class="w"></span>
|
||
<span class="w"> </span><span class="n">guint</span><span class="w"> </span><span class="n">keyval</span><span class="p">;</span><span class="w"></span>
|
||
|
||
<span class="w"> </span><span class="n">gdk_event_get_keyval</span><span class="w"> </span><span class="p">((</span><span class="n">GdkEvent</span><span class="o">*</span><span class="p">)</span><span class="n">event</span><span class="p">,</span><span class="w"> </span><span class="o">&</span><span class="n">keyval</span><span class="p">);</span><span class="w"></span>
|
||
|
||
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_Return</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="n">keyval</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="n">GDK_KEY_KP_Enter</span><span class="p">)</span><span class="w"></span>
|
||
<span class="w"> </span><span class="p">{</span><span class="w"></span>
|
||
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_text_view_im_context_filter_keypress</span><span class="w"> </span><span class="p">(</span><span class="n">GTK_TEXT_VIEW</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">),</span><span class="w"> </span><span class="n">event</span><span class="p">))</span><span class="w"></span>
|
||
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">TRUE</span><span class="p">;</span><span class="w"></span>
|
||
<span class="w"> </span><span class="p">}</span><span class="w"></span>
|
||
|
||
<span class="w"> </span><span class="c1">// Do some stuff</span>
|
||
|
||
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">GTK_WIDGET_CLASS</span><span class="w"> </span><span class="p">(</span><span class="n">gtk_foo_bar_parent_class</span><span class="p">)</span><span class="o">-></span><span class="n">key_press_event</span><span class="w"> </span><span class="p">(</span><span class="n">widget</span><span class="p">,</span><span class="w"> </span><span class="n">event</span><span class="p">);</span><span class="w"></span>
|
||
<span class="p">}</span><span class="w"></span></pre></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<p></p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-im-context-filter-keypress.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>event</p></td>
|
||
<td class="parameter_description"><p>the key event</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-im-context-filter-keypress.returns"></a><h4>Returns</h4>
|
||
<p> <code class="literal">TRUE</code> if the input method handled the key event.</p>
|
||
</div>
|
||
<p class="since">Since: 2.22</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-reset-im-context"></a><h3>gtk_text_view_reset_im_context ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_reset_im_context (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Reset the input method context of the text view if needed.</p>
|
||
<p>This can be necessary in the case where modifying the buffer
|
||
would confuse on-going input method behavior.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-reset-im-context.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: 2.22</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-input-purpose"></a><h3>gtk_text_view_set_input_purpose ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_input_purpose (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkEntry.html#GtkInputPurpose" title="enum GtkInputPurpose"><span class="type">GtkInputPurpose</span></a> purpose</code></em>);</pre>
|
||
<p>Sets the <a class="link" href="GtkTextView.html#GtkTextView--input-purpose" title="The “input-purpose” property"><span class="type">“input-purpose”</span></a> property which
|
||
can be used by on-screen keyboards and other input
|
||
methods to adjust their behaviour.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-input-purpose.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>purpose</p></td>
|
||
<td class="parameter_description"><p>the purpose</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-input-purpose"></a><h3>gtk_text_view_get_input_purpose ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkEntry.html#GtkInputPurpose" title="enum GtkInputPurpose"><span class="returnvalue">GtkInputPurpose</span></a>
|
||
gtk_text_view_get_input_purpose (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the value of the <a class="link" href="GtkTextView.html#GtkTextView--input-purpose" title="The “input-purpose” property"><span class="type">“input-purpose”</span></a> property.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-input-purpose.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-input-hints"></a><h3>gtk_text_view_set_input_hints ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_input_hints (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><a class="link" href="GtkEntry.html#GtkInputHints" title="enum GtkInputHints"><span class="type">GtkInputHints</span></a> hints</code></em>);</pre>
|
||
<p>Sets the <a class="link" href="GtkTextView.html#GtkTextView--input-hints" title="The “input-hints” property"><span class="type">“input-hints”</span></a> property, which
|
||
allows input methods to fine-tune their behaviour.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-input-hints.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>hints</p></td>
|
||
<td class="parameter_description"><p>the hints</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-input-hints"></a><h3>gtk_text_view_get_input_hints ()</h3>
|
||
<pre class="programlisting"><a class="link" href="GtkEntry.html#GtkInputHints" title="enum GtkInputHints"><span class="returnvalue">GtkInputHints</span></a>
|
||
gtk_text_view_get_input_hints (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the value of the <a class="link" href="GtkTextView.html#GtkTextView--input-hints" title="The “input-hints” property"><span class="type">“input-hints”</span></a> property.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-input-hints.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-set-monospace"></a><h3>gtk_text_view_set_monospace ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
gtk_text_view_set_monospace (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
|
||
<em class="parameter"><code><span class="type">gboolean</span> monospace</code></em>);</pre>
|
||
<p>Sets the <a class="link" href="GtkTextView.html#GtkTextView--monospace" title="The “monospace” property"><span class="type">“monospace”</span></a> property, which
|
||
indicates that the text view should use monospace
|
||
fonts.</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-set-monospace.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>monospace</p></td>
|
||
<td class="parameter_description"><p><code class="literal">TRUE</code> to request monospace styling</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="gtk-text-view-get-monospace"></a><h3>gtk_text_view_get_monospace ()</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
gtk_text_view_get_monospace (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
|
||
<p>Gets the value of the <a class="link" href="GtkTextView.html#GtkTextView--monospace" title="The “monospace” property"><span class="type">“monospace”</span></a> property.</p>
|
||
<p>Return: <code class="literal">TRUE</code> if monospace fonts are desired</p>
|
||
<div class="refsect3">
|
||
<a name="gtk-text-view-get-monospace.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody><tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr></tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.other_details"></a><h2>Types and Values</h2>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-struct"></a><h3>struct GtkTextView</h3>
|
||
<pre class="programlisting">struct GtkTextView;</pre>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextViewClass"></a><h3>struct GtkTextViewClass</h3>
|
||
<pre class="programlisting">struct GtkTextViewClass {
|
||
GtkContainerClass parent_class;
|
||
|
||
void (* populate_popup) (GtkTextView *text_view,
|
||
GtkWidget *popup);
|
||
void (* move_cursor) (GtkTextView *text_view,
|
||
GtkMovementStep step,
|
||
gint count,
|
||
gboolean extend_selection);
|
||
void (* set_anchor) (GtkTextView *text_view);
|
||
void (* insert_at_cursor) (GtkTextView *text_view,
|
||
const gchar *str);
|
||
void (* delete_from_cursor) (GtkTextView *text_view,
|
||
GtkDeleteType type,
|
||
gint count);
|
||
void (* backspace) (GtkTextView *text_view);
|
||
void (* cut_clipboard) (GtkTextView *text_view);
|
||
void (* copy_clipboard) (GtkTextView *text_view);
|
||
void (* paste_clipboard) (GtkTextView *text_view);
|
||
void (* toggle_overwrite) (GtkTextView *text_view);
|
||
GtkTextBuffer * (* create_buffer) (GtkTextView *text_view);
|
||
void (* draw_layer) (GtkTextView *text_view,
|
||
GtkTextViewLayer layer,
|
||
cairo_t *cr);
|
||
gboolean (* extend_selection) (GtkTextView *text_view,
|
||
GtkTextExtendSelection granularity,
|
||
const GtkTextIter *location,
|
||
GtkTextIter *start,
|
||
GtkTextIter *end);
|
||
void (* insert_emoji) (GtkTextView *text_view);
|
||
};
|
||
</pre>
|
||
<div class="refsect3">
|
||
<a name="GtkTextViewClass.members"></a><h4>Members</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="300px" class="struct_members_name">
|
||
<col class="struct_members_description">
|
||
<col width="200px" class="struct_members_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.populate-popup"></a>populate_popup</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-populate-popup" title="The “populate-popup” signal"><span class="type">“populate-popup”</span></a>
|
||
signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.move-cursor"></a>move_cursor</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-move-cursor" title="The “move-cursor” signal"><span class="type">“move-cursor”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.set-anchor"></a>set_anchor</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-set-anchor" title="The “set-anchor” signal"><span class="type">“set-anchor”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.insert-at-cursor"></a>insert_at_cursor</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-insert-at-cursor" title="The “insert-at-cursor” signal"><span class="type">“insert-at-cursor”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.delete-from-cursor"></a>delete_from_cursor</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-delete-from-cursor" title="The “delete-from-cursor” signal"><span class="type">“delete-from-cursor”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.backspace"></a>backspace</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-backspace" title="The “backspace” signal"><span class="type">“backspace”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.cut-clipboard"></a>cut_clipboard</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-cut-clipboard" title="The “cut-clipboard” signal"><span class="type">“cut-clipboard”</span></a>
|
||
keybinding signal</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.copy-clipboard"></a>copy_clipboard</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <span class="type">“copy-clipboard”</span>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.paste-clipboard"></a>paste_clipboard</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-paste-clipboard" title="The “paste-clipboard” signal"><span class="type">“paste-clipboard”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.toggle-overwrite"></a>toggle_overwrite</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-toggle-overwrite" title="The “toggle-overwrite” signal"><span class="type">“toggle-overwrite”</span></a>
|
||
keybinding signal.</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.create-buffer"></a>create_buffer</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The create_buffer vfunc is called to create a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
|
||
for the text view. The default implementation is to just call
|
||
<a class="link" href="GtkTextBuffer.html#gtk-text-buffer-new" title="gtk_text_buffer_new ()"><code class="function">gtk_text_buffer_new()</code></a>. Since: 3.10</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.draw-layer"></a>draw_layer</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The draw_layer vfunc is called before and after the text
|
||
view is drawing its own text. Applications can override this vfunc
|
||
in a subclass to draw customized content underneath or above the
|
||
text. In the <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-BELOW-TEXT:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_BELOW_TEXT</code></a> and <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-ABOVE-TEXT:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_ABOVE_TEXT</code></a>
|
||
the drawing is done in the buffer coordinate space, but the older (deprecated)
|
||
layers <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-BELOW:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_BELOW</code></a> and <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-ABOVE:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_ABOVE</code></a> work in viewport
|
||
coordinates, which makes them unnecessarily hard to use. Since: 3.14</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.extend-selection"></a>extend_selection</code></em> ()</p></td>
|
||
<td class="struct_member_description"><p>The class handler for the <a class="link" href="GtkTextView.html#GtkTextView-extend-selection" title="The “extend-selection” signal"><span class="type">“extend-selection”</span></a>
|
||
signal. Since 3.16</p></td>
|
||
<td class="struct_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="struct_member_name"><p><em class="structfield"><code><a name="GtkTextViewClass.insert-emoji"></a>insert_emoji</code></em> ()</p></td>
|
||
<td> </td>
|
||
<td> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextViewLayer"></a><h3>enum GtkTextViewLayer</h3>
|
||
<p>Used to reference the layers of <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> for the purpose of customized
|
||
drawing with the ::draw_layer vfunc.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextViewLayer.members"></a><h4>Members</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="300px" class="enum_members_name">
|
||
<col class="enum_members_description">
|
||
<col width="200px" class="enum_members_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-VIEW-LAYER-BELOW:CAPS"></a>GTK_TEXT_VIEW_LAYER_BELOW</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Old deprecated layer, use <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-BELOW-TEXT:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_BELOW_TEXT</code></a> instead</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-VIEW-LAYER-ABOVE:CAPS"></a>GTK_TEXT_VIEW_LAYER_ABOVE</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Old deprecated layer, use <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-LAYER-ABOVE-TEXT:CAPS"><code class="literal">GTK_TEXT_VIEW_LAYER_ABOVE_TEXT</code></a> instead</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-VIEW-LAYER-BELOW-TEXT:CAPS"></a>GTK_TEXT_VIEW_LAYER_BELOW_TEXT</p></td>
|
||
<td class="enum_member_description">
|
||
<p>The layer rendered below the text (but above the background). Since: 3.20</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-VIEW-LAYER-ABOVE-TEXT:CAPS"></a>GTK_TEXT_VIEW_LAYER_ABOVE_TEXT</p></td>
|
||
<td class="enum_member_description">
|
||
<p>The layer rendered above the text. Since: 3.20</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextWindowType"></a><h3>enum GtkTextWindowType</h3>
|
||
<p>Used to reference the parts of <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextWindowType.members"></a><h4>Members</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="300px" class="enum_members_name">
|
||
<col class="enum_members_description">
|
||
<col width="200px" class="enum_members_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-PRIVATE:CAPS"></a>GTK_TEXT_WINDOW_PRIVATE</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Invalid value, used as a marker</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-WIDGET:CAPS"></a>GTK_TEXT_WINDOW_WIDGET</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Window that floats over scrolling areas.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-TEXT:CAPS"></a>GTK_TEXT_WINDOW_TEXT</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Scrollable text window.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-LEFT:CAPS"></a>GTK_TEXT_WINDOW_LEFT</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Left side border window.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-RIGHT:CAPS"></a>GTK_TEXT_WINDOW_RIGHT</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Right side border window.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-TOP:CAPS"></a>GTK_TEXT_WINDOW_TOP</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Top border window.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-WINDOW-BOTTOM:CAPS"></a>GTK_TEXT_WINDOW_BOTTOM</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Bottom border window.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextExtendSelection"></a><h3>enum GtkTextExtendSelection</h3>
|
||
<p>Granularity types that extend the text selection. Use the
|
||
<a class="link" href="GtkTextView.html#GtkTextView-extend-selection" title="The “extend-selection” signal"><span class="type">“extend-selection”</span></a> signal to customize the selection.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextExtendSelection.members"></a><h4>Members</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="300px" class="enum_members_name">
|
||
<col class="enum_members_description">
|
||
<col width="200px" class="enum_members_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-EXTEND-SELECTION-WORD:CAPS"></a>GTK_TEXT_EXTEND_SELECTION_WORD</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Selects the current word. It is triggered by
|
||
a double-click for example.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-TEXT-EXTEND-SELECTION-LINE:CAPS"></a>GTK_TEXT_EXTEND_SELECTION_LINE</p></td>
|
||
<td class="enum_member_description">
|
||
<p>Selects the current line. It is triggered by
|
||
a triple-click for example.</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkWrapMode"></a><h3>enum GtkWrapMode</h3>
|
||
<p>Describes a type of line wrapping.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkWrapMode.members"></a><h4>Members</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="300px" class="enum_members_name">
|
||
<col class="enum_members_description">
|
||
<col width="200px" class="enum_members_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-WRAP-NONE:CAPS"></a>GTK_WRAP_NONE</p></td>
|
||
<td class="enum_member_description">
|
||
<p>do not wrap lines; just make the text area wider</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-WRAP-CHAR:CAPS"></a>GTK_WRAP_CHAR</p></td>
|
||
<td class="enum_member_description">
|
||
<p>wrap text, breaking lines anywhere the cursor can
|
||
appear (between characters, usually - if you want to be technical,
|
||
between graphemes, see <code class="function">pango_get_log_attrs()</code>)</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-WRAP-WORD:CAPS"></a>GTK_WRAP_WORD</p></td>
|
||
<td class="enum_member_description">
|
||
<p>wrap text, breaking lines in between words</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="enum_member_name"><p><a name="GTK-WRAP-WORD-CHAR:CAPS"></a>GTK_WRAP_WORD_CHAR</p></td>
|
||
<td class="enum_member_description">
|
||
<p>wrap text, breaking lines in between words, or if
|
||
that is not enough, also between graphemes</p>
|
||
</td>
|
||
<td class="enum_member_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextChildAnchor-struct"></a><h3>struct GtkTextChildAnchor</h3>
|
||
<pre class="programlisting">struct GtkTextChildAnchor;</pre>
|
||
<p>A <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> is a spot in the buffer where child widgets can
|
||
be “anchored” (inserted inline, as if they were characters). The anchor
|
||
can have multiple widgets anchored, to allow for multiple views.</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS"></a><h3>GTK_TEXT_VIEW_PRIORITY_VALIDATE</h3>
|
||
<pre class="programlisting">#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)
|
||
</pre>
|
||
<p>The priority at which the text view validates onscreen lines
|
||
in an idle job in the background.</p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.property-details"></a><h2>Property Details</h2>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--accepts-tab"></a><h3>The <code class="literal">“accepts-tab”</code> property</h3>
|
||
<pre class="programlisting"> “accepts-tab” <span class="type">gboolean</span></pre>
|
||
<p>Whether Tab will result in a tab character being entered.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: TRUE</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--bottom-margin"></a><h3>The <code class="literal">“bottom-margin”</code> property</h3>
|
||
<pre class="programlisting"> “bottom-margin” <span class="type">int</span></pre>
|
||
<p>The bottom margin for text in the text view.</p>
|
||
<p>Note that this property is confusingly named. In CSS terms,
|
||
the value set here is padding, and it is applied in addition
|
||
to the padding from the theme.</p>
|
||
<p>Don't confuse this property with <a class="link" href="GtkWidget.html#GtkWidget--margin-bottom" title="The “margin-bottom” property"><span class="type">“margin-bottom”</span></a>.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--buffer"></a><h3>The <code class="literal">“buffer”</code> property</h3>
|
||
<pre class="programlisting"> “buffer” <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *</pre>
|
||
<p>The buffer which is displayed.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--cursor-visible"></a><h3>The <code class="literal">“cursor-visible”</code> property</h3>
|
||
<pre class="programlisting"> “cursor-visible” <span class="type">gboolean</span></pre>
|
||
<p>If the insertion cursor is shown.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: TRUE</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--editable"></a><h3>The <code class="literal">“editable”</code> property</h3>
|
||
<pre class="programlisting"> “editable” <span class="type">gboolean</span></pre>
|
||
<p>Whether the text can be modified by the user.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: TRUE</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--im-module"></a><h3>The <code class="literal">“im-module”</code> property</h3>
|
||
<pre class="programlisting"> “im-module” <span class="type">char</span> *</pre>
|
||
<p>Which IM (input method) module should be used for this text_view.
|
||
|
||
See <a class="link" href="GtkIMContext.html" title="GtkIMContext"><span class="type">GtkIMContext</span></a>.</p>
|
||
<p>Setting this to a non-<code class="literal">NULL</code> value overrides the
|
||
system-wide IM module setting. See the GtkSettings
|
||
|
||
<a class="link" href="GtkSettings.html#GtkSettings--gtk-im-module" title="The “gtk-im-module” property"><span class="type">“gtk-im-module”</span></a> property.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: NULL</p>
|
||
<p class="since">Since: 2.16</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--indent"></a><h3>The <code class="literal">“indent”</code> property</h3>
|
||
<pre class="programlisting"> “indent” <span class="type">int</span></pre>
|
||
<p>Amount to indent the paragraph, in pixels.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--input-hints"></a><h3>The <code class="literal">“input-hints”</code> property</h3>
|
||
<pre class="programlisting"> “input-hints” <a class="link" href="GtkEntry.html#GtkInputHints" title="enum GtkInputHints"><span class="type">GtkInputHints</span></a></pre>
|
||
<p>Additional hints (beyond <a class="link" href="GtkTextView.html#GtkTextView--input-purpose" title="The “input-purpose” property"><span class="type">“input-purpose”</span></a>) that
|
||
allow input methods to fine-tune their behaviour.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--input-purpose"></a><h3>The <code class="literal">“input-purpose”</code> property</h3>
|
||
<pre class="programlisting"> “input-purpose” <a class="link" href="GtkEntry.html#GtkInputPurpose" title="enum GtkInputPurpose"><span class="type">GtkInputPurpose</span></a></pre>
|
||
<p>The purpose of this text field.</p>
|
||
<p>This property can be used by on-screen keyboards and other input
|
||
methods to adjust their behaviour.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: GTK_INPUT_PURPOSE_FREE_FORM</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-6.html#api-index-3.6">3.6</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--justification"></a><h3>The <code class="literal">“justification”</code> property</h3>
|
||
<pre class="programlisting"> “justification” <a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a></pre>
|
||
<p>Left, right, or center justification.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: GTK_JUSTIFY_LEFT</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--left-margin"></a><h3>The <code class="literal">“left-margin”</code> property</h3>
|
||
<pre class="programlisting"> “left-margin” <span class="type">int</span></pre>
|
||
<p>The default left margin for text in the text view.
|
||
Tags in the buffer may override the default.</p>
|
||
<p>Note that this property is confusingly named. In CSS terms,
|
||
the value set here is padding, and it is applied in addition
|
||
to the padding from the theme.</p>
|
||
<p>Don't confuse this property with <a class="link" href="GtkWidget.html#GtkWidget--margin-left" title="The “margin-left” property"><span class="type">“margin-left”</span></a>.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--monospace"></a><h3>The <code class="literal">“monospace”</code> property</h3>
|
||
<pre class="programlisting"> “monospace” <span class="type">gboolean</span></pre>
|
||
<p>Whether to use a monospace font.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: FALSE</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--overwrite"></a><h3>The <code class="literal">“overwrite”</code> property</h3>
|
||
<pre class="programlisting"> “overwrite” <span class="type">gboolean</span></pre>
|
||
<p>Whether entered text overwrites existing contents.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: FALSE</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--pixels-above-lines"></a><h3>The <code class="literal">“pixels-above-lines”</code> property</h3>
|
||
<pre class="programlisting"> “pixels-above-lines” <span class="type">int</span></pre>
|
||
<p>Pixels of blank space above paragraphs.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--pixels-below-lines"></a><h3>The <code class="literal">“pixels-below-lines”</code> property</h3>
|
||
<pre class="programlisting"> “pixels-below-lines” <span class="type">int</span></pre>
|
||
<p>Pixels of blank space below paragraphs.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--pixels-inside-wrap"></a><h3>The <code class="literal">“pixels-inside-wrap”</code> property</h3>
|
||
<pre class="programlisting"> “pixels-inside-wrap” <span class="type">int</span></pre>
|
||
<p>Pixels of blank space between wrapped lines in a paragraph.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--populate-all"></a><h3>The <code class="literal">“populate-all”</code> property</h3>
|
||
<pre class="programlisting"> “populate-all” <span class="type">gboolean</span></pre>
|
||
<p>If :populate-all is <code class="literal">TRUE</code>, the <a class="link" href="GtkTextView.html#GtkTextView-populate-popup" title="The “populate-popup” signal"><span class="type">“populate-popup”</span></a>
|
||
signal is also emitted for touch popups.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: FALSE</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-8.html#api-index-3.8">3.8</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--right-margin"></a><h3>The <code class="literal">“right-margin”</code> property</h3>
|
||
<pre class="programlisting"> “right-margin” <span class="type">int</span></pre>
|
||
<p>The default right margin for text in the text view.
|
||
Tags in the buffer may override the default.</p>
|
||
<p>Note that this property is confusingly named. In CSS terms,
|
||
the value set here is padding, and it is applied in addition
|
||
to the padding from the theme.</p>
|
||
<p>Don't confuse this property with <a class="link" href="GtkWidget.html#GtkWidget--margin-right" title="The “margin-right” property"><span class="type">“margin-right”</span></a>.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--tabs"></a><h3>The <code class="literal">“tabs”</code> property</h3>
|
||
<pre class="programlisting"> “tabs” <span class="type">PangoTabArray</span> *</pre>
|
||
<p>Custom tabs for this text.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--top-margin"></a><h3>The <code class="literal">“top-margin”</code> property</h3>
|
||
<pre class="programlisting"> “top-margin” <span class="type">int</span></pre>
|
||
<p>The top margin for text in the text view.</p>
|
||
<p>Note that this property is confusingly named. In CSS terms,
|
||
the value set here is padding, and it is applied in addition
|
||
to the padding from the theme.</p>
|
||
<p>Don't confuse this property with <a class="link" href="GtkWidget.html#GtkWidget--margin-top" title="The “margin-top” property"><span class="type">“margin-top”</span></a>.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Allowed values: >= 0</p>
|
||
<p>Default value: 0</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-18.html#api-index-3.18">3.18</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--wrap-mode"></a><h3>The <code class="literal">“wrap-mode”</code> property</h3>
|
||
<pre class="programlisting"> “wrap-mode” <a class="link" href="GtkTextView.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a></pre>
|
||
<p>Whether to wrap lines never, at word boundaries, or at character boundaries.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read / Write</p>
|
||
<p>Default value: GTK_WRAP_NONE</p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.style-property-details"></a><h2>Style Property Details</h2>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView--s-error-underline-color"></a><h3>The <code class="literal">“error-underline-color”</code> style property</h3>
|
||
<pre class="programlisting"> “error-underline-color” <a href="../html/gdk3-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *</pre>
|
||
<p>Color with which to draw error-indication underlines.</p>
|
||
<p>Owner: GtkTextView</p>
|
||
<p>Flags: Read</p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.signal-details"></a><h2>Signal Details</h2>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-backspace"></a><h3>The <code class="literal">“backspace”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::backspace signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted when the user asks for it.</p>
|
||
<p>The default bindings for this signal are
|
||
Backspace and Shift-Backspace.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-backspace.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-copy-clipboard"></a><h3>The <code class="literal">“copy-clipboard”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::copy-clipboard signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted to copy the selection to the clipboard.</p>
|
||
<p>The default bindings for this signal are
|
||
Ctrl-c and Ctrl-Insert.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-copy-clipboard.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-cut-clipboard"></a><h3>The <code class="literal">“cut-clipboard”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::cut-clipboard signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted to cut the selection to the clipboard.</p>
|
||
<p>The default bindings for this signal are
|
||
Ctrl-x and Shift-Delete.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-cut-clipboard.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-delete-from-cursor"></a><h3>The <code class="literal">“delete-from-cursor”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a> type,
|
||
<span class="type">int</span> count,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::delete-from-cursor signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted when the user initiates a text deletion.</p>
|
||
<p>If the <em class="parameter"><code>type</code></em>
|
||
is <a class="link" href="gtk3-Standard-Enumerations.html#GTK-DELETE-CHARS:CAPS"><code class="literal">GTK_DELETE_CHARS</code></a>, GTK+ deletes the selection
|
||
if there is one, otherwise it deletes the requested number
|
||
of characters.</p>
|
||
<p>The default bindings for this signal are
|
||
Delete for deleting a character, Ctrl-Delete for
|
||
|
||
deleting a word and Ctrl-Backspace for deleting a word
|
||
|
||
backwords.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-delete-from-cursor.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>type</p></td>
|
||
<td class="parameter_description"><p>the granularity of the deletion, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>count</p></td>
|
||
<td class="parameter_description"><p>the number of <em class="parameter"><code>type</code></em>
|
||
units to delete</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-extend-selection"></a><h3>The <code class="literal">“extend-selection”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<a class="link" href="GtkTextView.html#GtkTextExtendSelection" title="enum GtkTextExtendSelection"><span class="type">GtkTextExtendSelection</span></a> granularity,
|
||
<a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *location,
|
||
<a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *start,
|
||
<a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *end,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::extend-selection signal is emitted when the selection needs to be
|
||
extended at <em class="parameter"><code>location</code></em>
|
||
.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-extend-selection.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>granularity</p></td>
|
||
<td class="parameter_description"><p>the granularity type</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>location</p></td>
|
||
<td class="parameter_description"><p>the location where to extend the selection</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>start</p></td>
|
||
<td class="parameter_description"><p>where the selection should start</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>end</p></td>
|
||
<td class="parameter_description"><p>where the selection should end</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-extend-selection.returns"></a><h4>Returns</h4>
|
||
<p> <a href="../html/gdk3-Events.html#GDK-EVENT-STOP:CAPS"><code class="literal">GDK_EVENT_STOP</code></a> to stop other handlers from being invoked for the
|
||
event. <a href="../html/gdk3-Events.html#GDK-EVENT-PROPAGATE:CAPS"><code class="literal">GDK_EVENT_PROPAGATE</code></a> to propagate the event further.</p>
|
||
</div>
|
||
<p>Flags: Run Last</p>
|
||
<p class="since">Since: <a class="link" href="api-index-3-16.html#api-index-3.16">3.16</a></p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-insert-at-cursor"></a><h3>The <code class="literal">“insert-at-cursor”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">char</span> *string,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::insert-at-cursor signal is a
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
which gets emitted when the user initiates the insertion of a
|
||
|
||
fixed string at the cursor.</p>
|
||
<p>This signal has no default bindings.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-insert-at-cursor.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>string</p></td>
|
||
<td class="parameter_description"><p>the string to insert</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-insert-emoji"></a><h3>The <code class="literal">“insert-emoji”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::insert-emoji signal is a
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
which gets emitted to present the Emoji chooser for the <em class="parameter"><code>text_view</code></em>
|
||
.</p>
|
||
<p>The default bindings for this signal are Ctrl-. and Ctrl-;</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-insert-emoji.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
<p class="since">Since: 3.22.27</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-move-cursor"></a><h3>The <code class="literal">“move-cursor”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a> step,
|
||
<span class="type">int</span> count,
|
||
<span class="type">gboolean</span> extend_selection,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::move-cursor signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted when the user initiates a cursor movement.
|
||
|
||
If the cursor is not visible in <em class="parameter"><code>text_view</code></em>
|
||
, this signal causes
|
||
the viewport to be moved instead.</p>
|
||
<p>Applications should not connect to it, but may emit it with
|
||
|
||
<code class="function">g_signal_emit_by_name()</code> if they need to control the cursor
|
||
programmatically.</p>
|
||
<p>The default bindings for this signal come in two variants,
|
||
the variant with the Shift modifier extends the selection,
|
||
the variant without the Shift modifer does not.
|
||
There are too many key combinations to list them all here.</p>
|
||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||
<li class="listitem"><p>Arrow keys move by individual characters/lines</p></li>
|
||
<li class="listitem"><p>Ctrl-arrow key combinations move by words/paragraphs</p></li>
|
||
<li class="listitem"><p>Home/End keys move to the ends of the buffer</p></li>
|
||
<li class="listitem"><p>PageUp/PageDown keys move vertically by pages</p></li>
|
||
<li class="listitem"><p>Ctrl-PageUp/PageDown keys move horizontally by pages</p></li>
|
||
</ul></div>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-move-cursor.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>step</p></td>
|
||
<td class="parameter_description"><p>the granularity of the move, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>count</p></td>
|
||
<td class="parameter_description"><p>the number of <em class="parameter"><code>step</code></em>
|
||
units to move</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>extend_selection</p></td>
|
||
<td class="parameter_description"><p><code class="literal">TRUE</code> if the move should extend the selection</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-move-viewport"></a><h3>The <code class="literal">“move-viewport”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<a class="link" href="gtk3-Standard-Enumerations.html#GtkScrollStep" title="enum GtkScrollStep"><span class="type">GtkScrollStep</span></a> step,
|
||
<span class="type">int</span> count,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::move-viewport signal is a
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
which can be bound to key combinations to allow the user
|
||
to move the viewport, i.e. change what part of the text view
|
||
is visible in a containing scrolled window.</p>
|
||
<p>There are no default bindings for this signal.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-move-viewport.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>step</p></td>
|
||
<td class="parameter_description"><p>the granularity of the movement, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkScrollStep" title="enum GtkScrollStep"><span class="type">GtkScrollStep</span></a></p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>count</p></td>
|
||
<td class="parameter_description"><p>the number of <em class="parameter"><code>step</code></em>
|
||
units to move</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-paste-clipboard"></a><h3>The <code class="literal">“paste-clipboard”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::paste-clipboard signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted to paste the contents of the clipboard
|
||
|
||
into the text view.</p>
|
||
<p>The default bindings for this signal are
|
||
Ctrl-v and Shift-Insert.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-paste-clipboard.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-populate-popup"></a><h3>The <code class="literal">“populate-popup”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *popup,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::populate-popup signal gets emitted before showing the
|
||
context menu of the text view.</p>
|
||
<p>If you need to add items to the context menu, connect
|
||
to this signal and append your items to the <em class="parameter"><code>popup</code></em>
|
||
, which
|
||
will be a <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a> in this case.</p>
|
||
<p>If <a class="link" href="GtkTextView.html#GtkTextView--populate-all" title="The “populate-all” property"><span class="type">“populate-all”</span></a> is <code class="literal">TRUE</code>, this signal will
|
||
also be emitted to populate touch popups. In this case,
|
||
<em class="parameter"><code>popup</code></em>
|
||
will be a different container, e.g. a <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a>.</p>
|
||
<p>The signal handler should not make assumptions about the
|
||
type of <em class="parameter"><code>widget</code></em>
|
||
, but check whether <em class="parameter"><code>popup</code></em>
|
||
is a <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>
|
||
or <a class="link" href="GtkToolbar.html" title="GtkToolbar"><span class="type">GtkToolbar</span></a> or another kind of container.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-populate-popup.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>The text view on which the signal is emitted</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>popup</p></td>
|
||
<td class="parameter_description"><p>the container that is being populated</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Run Last</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-preedit-changed"></a><h3>The <code class="literal">“preedit-changed”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">char</span> *preedit,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>If an input method is used, the typed text will not immediately
|
||
be committed to the buffer. So if you are interested in the text,
|
||
connect to this signal.</p>
|
||
<p>This signal is only emitted if the text at the given position
|
||
is actually editable.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-preedit-changed.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>preedit</p></td>
|
||
<td class="parameter_description"><p>the current preedit string</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
<p class="since">Since: 2.20</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-select-all"></a><h3>The <code class="literal">“select-all”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gboolean</span> select,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::select-all signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted to select or unselect the complete
|
||
contents of the text view.</p>
|
||
<p>The default bindings for this signal are Ctrl-a and Ctrl-/
|
||
|
||
for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-select-all.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>select</p></td>
|
||
<td class="parameter_description"><p><code class="literal">TRUE</code> to select, <code class="literal">FALSE</code> to unselect</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-set-anchor"></a><h3>The <code class="literal">“set-anchor”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::set-anchor signal is a
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
which gets emitted when the user initiates setting the "anchor"
|
||
|
||
mark. The "anchor" mark gets placed at the same position as the
|
||
"insert" mark.</p>
|
||
<p>This signal has no default bindings.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-set-anchor.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-toggle-cursor-visible"></a><h3>The <code class="literal">“toggle-cursor-visible”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::toggle-cursor-visible signal is a
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
which gets emitted to toggle the <a class="link" href="GtkTextView.html#GtkTextView--cursor-visible" title="The “cursor-visible” property"><span class="type">“cursor-visible”</span></a>
|
||
property.</p>
|
||
<p>The default binding for this signal is F7.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-toggle-cursor-visible.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
<hr>
|
||
<div class="refsect2">
|
||
<a name="GtkTextView-toggle-overwrite"></a><h3>The <code class="literal">“toggle-overwrite”</code> signal</h3>
|
||
<pre class="programlisting"><span class="returnvalue">void</span>
|
||
user_function (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
|
||
<span class="type">gpointer</span> user_data)</pre>
|
||
<p>The ::toggle-overwrite signal is a
|
||
|
||
<a class="link" href="gtk3-Bindings.html#GtkBindingSignal" title="struct GtkBindingSignal">keybinding signal</a>
|
||
|
||
which gets emitted to toggle the overwrite mode of the text view.</p>
|
||
<p>The default bindings for this signal is Insert.</p>
|
||
<div class="refsect3">
|
||
<a name="GtkTextView-toggle-overwrite.parameters"></a><h4>Parameters</h4>
|
||
<div class="informaltable"><table class="informaltable" width="100%" border="0">
|
||
<colgroup>
|
||
<col width="150px" class="parameters_name">
|
||
<col class="parameters_description">
|
||
<col width="200px" class="parameters_annotations">
|
||
</colgroup>
|
||
<tbody>
|
||
<tr>
|
||
<td class="parameter_name"><p>text_view</p></td>
|
||
<td class="parameter_description"><p>the object which received the signal</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
<tr>
|
||
<td class="parameter_name"><p>user_data</p></td>
|
||
<td class="parameter_description"><p>user data set when the signal handler was connected.</p></td>
|
||
<td class="parameter_annotations"> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table></div>
|
||
</div>
|
||
<p>Flags: Action</p>
|
||
</div>
|
||
</div>
|
||
<div class="refsect1">
|
||
<a name="GtkTextView.see-also"></a><h2>See Also</h2>
|
||
<p><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a></p>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<hr>Generated by GTK-Doc V1.33.1</div>
|
||
</body>
|
||
</html> |