gtktext.html
来自「最新gtk中文资料集」· HTML 代码 · 共 915 行 · 第 1/3 页
HTML
915 行
<tr><td><p><span class="term"><em class="parameter"><code>vadj</code></em> :</span></p></td><td>vertical adjustment.</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the new <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4581942"></a><h3><a name="gtk-text-set-editable"></a>gtk_text_set_editable ()</h3><a class="indexterm" name="id4581958"></a><pre class="programlisting">void gtk_text_set_editable (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> editable);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_set_editable</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets whether the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget can be edited by the user or not. Thisstill allows you the programmer to make changes with the various <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a>functions.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>editable</code></em> :</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> makes it editable, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> makes it immutable by the user</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582084"></a><h3><a name="gtk-text-set-word-wrap"></a>gtk_text_set_word_wrap ()</h3><a class="indexterm" name="id4582100"></a><pre class="programlisting">void gtk_text_set_word_wrap (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> word_wrap);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_set_word_wrap</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets whether the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget wraps words down to the next line if itcan't be completed on the current line.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>word_wrap</code></em> :</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> makes it word wrap, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> disables word wrapping</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582218"></a><h3><a name="gtk-text-set-line-wrap"></a>gtk_text_set_line_wrap ()</h3><a class="indexterm" name="id4582234"></a><pre class="programlisting">void gtk_text_set_line_wrap (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> line_wrap);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_set_line_wrap</code> is deprecated and should not be used in newly-written code.</p></div><p>Controls how <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> handles long lines of continuous text. If line wrapis on, the line is broken when it reaches the extent of the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widgetviewing area and the rest is displayed on the next line. If it is not set,the line continues regardless size of current viewing area. Similar to wordwrap but it disregards word boundaries.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>line_wrap</code></em> :</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> turns line wrap on, <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> turns it off</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582364"></a><h3><a name="gtk-text-set-adjustments"></a>gtk_text_set_adjustments ()</h3><a class="indexterm" name="id4582380"></a><pre class="programlisting">void gtk_text_set_adjustments (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadj, <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadj);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_set_adjustments</code> is deprecated and should not be used in newly-written code.</p></div><p>Allows you to set <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a> pointers which in turn allows you tokeep track of the viewing position of the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>hadj</code></em> :</span></p></td><td>the horizontal adjustment</td></tr><tr><td><p><span class="term"><em class="parameter"><code>vadj</code></em> :</span></p></td><td>the vertical adjustment</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582509"></a><h3><a name="gtk-text-set-point"></a>gtk_text_set_point ()</h3><a class="indexterm" name="id4582525"></a><pre class="programlisting">void gtk_text_set_point (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> index);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_set_point</code> is deprecated and should not be used in newly-written code.</p></div><p>Sets the cursor at the given point. In this case a point constitutesthe number of characters from the extreme upper left corner of the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a>widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td><td>the number of characters from the upper left corner</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582624"></a><h3><a name="gtk-text-get-point"></a>gtk_text_get_point ()</h3><a class="indexterm" name="id4582640"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> gtk_text_get_point (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_get_point</code> is deprecated and should not be used in newly-written code.</p></div><p>Gets the current position of the cursor as the number of characters fromthe upper left corner of the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the number of characters from the upper left corner</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582728"></a><h3><a name="gtk-text-get-length"></a>gtk_text_get_length ()</h3><a class="indexterm" name="id4582743"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a> gtk_text_get_length (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_get_length</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the length of the all the text contained within the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget;disregards current point position.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td>the length of the text</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582830"></a><h3><a name="gtk-text-freeze"></a>gtk_text_freeze ()</h3><a class="indexterm" name="id4582846"></a><pre class="programlisting">void gtk_text_freeze (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_freeze</code> is deprecated and should not be used in newly-written code.</p></div><p>Freezes the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget which disallows redrawing of the widget untilit is thawed. This is useful if a large number of changes are going tomade to the text within the widget, reducing the amount of flicker seenby the user.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td><td>the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4582924"></a><h3><a name="gtk-text-thaw"></a>gtk_text_thaw ()</h3>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?