gtktext.html

来自「最新gtk中文资料集」· HTML 代码 · 共 915 行 · 第 1/3 页

HTML
915
字号
<a class="indexterm" name="id4582940"></a><pre class="programlisting">void                gtk_text_thaw                       (<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_thaw</code> is deprecated and should not be used in newly-written code.</p></div><p>Allows the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget to be redrawn again by GTK.</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>&#160;:</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="id4583015"></a><h3><a name="gtk-text-insert"></a>gtk_text_insert ()</h3><a class="indexterm" name="id4583031"></a><pre class="programlisting">void                gtk_text_insert                     (<a class="link" href="GtkText.html" title="GtkText">GtkText</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont">GdkFont</a> *font,                                                         const <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *fore,                                                         const <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> *back,                                                         const char *chars,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> length);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_insert</code> is deprecated and should not be used in newly-written code.</p></div><p>Inserts given text into the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget with the given properties asoutlined below.</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>&#160;:</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>font</code></em>&#160;:</span></p></td><td>the <ahref="/usr/share/gtk-doc/html/gdk/gdk-Fonts.html#GdkFont"><span class="type">GdkFont</span></a> to use</td></tr><tr><td><p><span class="term"><em class="parameter"><code>fore</code></em>&#160;:</span></p></td><td>the foreground color to insert with</td></tr><tr><td><p><span class="term"><em class="parameter"><code>back</code></em>&#160;:</span></p></td><td>the background color to insert with</td></tr><tr><td><p><span class="term"><em class="parameter"><code>chars</code></em>&#160;:</span></p></td><td>the actual text to be inserted</td></tr><tr><td><p><span class="term"><em class="parameter"><code>length</code></em>&#160;:</span></p></td><td>the length of the text to be inserted, passing -1 makes it insertall the text.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4583226"></a><h3><a name="gtk-text-backward-delete"></a>gtk_text_backward_delete ()</h3><a class="indexterm" name="id4583242"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_backward_delete            (<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> nchars);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_backward_delete</code> is deprecated and should not be used in newly-written code.</p></div><p>Deletes from the current point position backward the given number ofcharacters.</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>&#160;:</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>nchars</code></em>&#160;:</span></p></td><td>the number of characters to delete</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation was successful, otherwise returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4583362"></a><h3><a name="gtk-text-forward-delete"></a>gtk_text_forward_delete ()</h3><a class="indexterm" name="id4583378"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_forward_delete             (<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> nchars);</pre><div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Warning</h3><p><code class="literal">gtk_text_forward_delete</code> is deprecated and should not be used in newly-written code.</p></div><p>Deletes from the current point position forward the given number ofcharacters.</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>&#160;:</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>nchars</code></em>&#160;:</span></p></td><td>the number of characters to delete</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td><ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the operation was successful, otherwise returns <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id4583499"></a><h3><a name="GTK-TEXT-INDEX:CAPS"></a>GTK_TEXT_INDEX()</h3><a class="indexterm" name="id4583513"></a><pre class="programlisting">#define             GTK_TEXT_INDEX(t, 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_INDEX</code> is deprecated and should not be used in newly-written code.</p></div><p>Returns the character at the given index within 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>t</code></em>&#160;:</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>&#160;:</span></p></td><td>the number of characters from the upper left corner</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4583592"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id4583603"></a><h3><a name="GtkText--hadjustment"></a>The <code class="literal">"hadjustment"</code> property</h3><a class="indexterm" name="id4583619"></a><pre class="programlisting">  "hadjustment"              <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>         : Read / Write</pre><p>Used by the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget to keep track of the size of its horizontaltext.</p></div><hr><div class="refsect2" lang="en"><a name="id4583651"></a><h3><a name="GtkText--line-wrap"></a>The <code class="literal">"line-wrap"</code> property</h3><a class="indexterm" name="id4583667"></a><pre class="programlisting">  "line-wrap"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Boolean value indicating whether line wrap is enabled or not.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id4583694"></a><h3><a name="GtkText--vadjustment"></a>The <code class="literal">"vadjustment"</code> property</h3><a class="indexterm" name="id4583711"></a><pre class="programlisting">  "vadjustment"              <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a>         : Read / Write</pre><p>Used by the <a class="link" href="GtkText.html" title="GtkText"><span class="type">GtkText</span></a> widget to keep track of the size of its verticaltext.</p></div><hr><div class="refsect2" lang="en"><a name="id4583742"></a><h3><a name="GtkText--word-wrap"></a>The <code class="literal">"word-wrap"</code> property</h3><a class="indexterm" name="id4583758"></a><pre class="programlisting">  "word-wrap"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre><p>Boolean value indicated whether word wrap is enabled or not.</p><p>Default value: FALSE</p></div></div><div class="refsect1" lang="en"><a name="id4583787"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id4583797"></a><h3><a name="GtkText-set-scroll-adjustments"></a>The <code class="literal">"set-scroll-adjustments"</code> signal</h3><a class="indexterm" name="id4583814"></a><pre class="programlisting">void                user_function                      (<a class="link" href="GtkText.html" title="GtkText">GtkText</a>       *text,                                                        <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg1,                                                        <a class="link" href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg2,                                                        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a>       user_data)      : Run Last</pre><p></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>&#160;:</span></p></td><td>the object which received the signal.</td></tr><tr><td><p><span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>arg2</code></em>&#160;:</span></p></td><td></td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id4583928"></a><div class="refsect2" lang="en"><a name="id4583930"></a></div><hr><div class="refsect2" lang="en"><a name="id4583931"></a></div></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?