⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gtktextbuffer.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td> a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> the buffer's tag table</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3597760"></a><h3><a name="gtk-text-buffer-insert"></a>gtk_text_buffer_insert ()</h3><a class="indexterm" name="id3597773"></a><pre class="programlisting">void                gtk_text_buffer_insert              (<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,                                                         <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> len);</pre><p>Inserts <em class="parameter"><code>len</code></em> bytes of <em class="parameter"><code>text</code></em> at position <em class="parameter"><code>iter</code></em>.  If <em class="parameter"><code>len</code></em> is -1,<em class="parameter"><code>text</code></em> must be nul-terminated and will be inserted in itsentirety. Emits the "insert_text" signal; insertion actually occursin the default handler for the signal. <em class="parameter"><code>iter</code></em> is invalidated wheninsertion occurs (because the buffer contents change), but thedefault signal handler revalidates it to point to the end of theinserted text.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> a position in the buffer</td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> UTF-8 format text to insert</td></tr><tr><td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td><td> length of text in bytes, or -1</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3597937"></a><h3><a name="gtk-text-buffer-insert-at-cursor"></a>gtk_text_buffer_insert_at_cursor ()</h3><a class="indexterm" name="id3597951"></a><pre class="programlisting">void                gtk_text_buffer_insert_at_cursor    (<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> len);</pre><p>Simply calls <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-insert"><code class="function">gtk_text_buffer_insert()</code></a>, using the currentcursor position as the insertion point.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> some text in UTF-8 format</td></tr><tr><td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td><td> length of text, in bytes</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3598065"></a><h3><a name="gtk-text-buffer-insert-interactive"></a>gtk_text_buffer_insert_interactive ()</h3><a class="indexterm" name="id3598080"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_buffer_insert_interactive  (<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,                                                         <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> len,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> default_editable);</pre><p>Like <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-insert"><code class="function">gtk_text_buffer_insert()</code></a>, but the insertion will not occur if<em class="parameter"><code>iter</code></em> is at a non-editable location in the buffer. Usually youwant to prevent insertions at ineditable locations if the insertionresults from a user action (is interactive).</p><p><em class="parameter"><code>default_editable</code></em> indicates the editability of text that doesn'thave a tag affecting editability applied to it. Typically theresult of <a class="link" href="GtkTextView.html#gtk-text-view-get-editable"><code class="function">gtk_text_view_get_editable()</code></a> is appropriate here.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><em class="parameter"><code>buffer</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> a position in <em class="parameter"><code>buffer</code></em></td></tr><tr><td><p><span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></p></td><td> some UTF-8 text</td></tr><tr><td><p><span class="term"><em class="parameter"><code>len</code></em>&#160;:</span></p></td><td> length of text in bytes, or -1</td></tr><tr><td><p><span class="term"><em class="parameter"><code>default_editable</code></em>&#160;:</span></p></td><td> default editability of buffer</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> whether text was actually inserted</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3598286"></a><h3><a name="gtk-text-buffer-insert-interactive-at-cursor"></a>gtk_text_buffer_insert_interactive_at_cursor ()</h3><a class="indexterm" name="id3598300"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_buffer_insert_interactive_at_cursor                                                        (<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,                                                         const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *text,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> len,             

⌨️ 快捷键说明

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