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

📄 gtktextview.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</div><div class="refsect1" lang="en"><a name="id3646621"></a><h2>Implemented Interfaces</h2><p>GtkTextView implements AtkImplementorIface and  <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p></div><div class="refsect1" lang="en"><a name="id3646651"></a><h2>Properties</h2><pre class="synopsis">  "<a class="link" href="GtkTextView.html#GtkTextView--accepts-tab">accepts-tab</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--buffer">buffer</a>"                   <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a>         : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--cursor-visible">cursor-visible</a>"           <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--editable">editable</a>"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--indent">indent</a>"                   <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--justification">justification</a>"            <a class="link" href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a>      : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--left-margin">left-margin</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--overwrite">overwrite</a>"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-above-lines">pixels-above-lines</a>"       <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-below-lines">pixels-below-lines</a>"       <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--pixels-inside-wrap">pixels-inside-wrap</a>"       <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--right-margin">right-margin</a>"             <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--tabs">tabs</a>"                     <ahref="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray">PangoTabArray</a>         : Read / Write  "<a class="link" href="GtkTextView.html#GtkTextView--wrap-mode">wrap-mode</a>"                <a class="link" href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a>           : Read / Write</pre></div><div class="refsect1" lang="en"><a name="id3646909"></a><h2>Style Properties</h2><pre class="synopsis">  "<a class="link" href="GtkTextView.html#GtkTextView--error-underline-color">error-underline-color</a>"    <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a>              : Read</pre></div><div class="refsect1" lang="en"><a name="id3646943"></a><h2>Signals</h2><pre class="synopsis">  "<a class="link" href="GtkTextView.html#GtkTextView-backspace">backspace</a>"                                      : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-copy-clipboard">copy-clipboard</a>"                                 : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-cut-clipboard">cut-clipboard</a>"                                  : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-delete-from-cursor">delete-from-cursor</a>"                             : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-insert-at-cursor">insert-at-cursor</a>"                               : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-move-cursor">move-cursor</a>"                                    : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-move-viewport">move-viewport</a>"                                  : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-page-horizontally">page-horizontally</a>"                              : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-paste-clipboard">paste-clipboard</a>"                                : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-populate-popup">populate-popup</a>"                                 : Run Last  "<a class="link" href="GtkTextView.html#GtkTextView-select-all">select-all</a>"                                     : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-set-anchor">set-anchor</a>"                                     : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-set-scroll-adjustments">set-scroll-adjustments</a>"                         : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-toggle-cursor-visible">toggle-cursor-visible</a>"                          : Run Last / Action  "<a class="link" href="GtkTextView.html#GtkTextView-toggle-overwrite">toggle-overwrite</a>"                               : Run Last / Action</pre></div><div class="refsect1" lang="en"><a name="id3647119"></a><h2>Description</h2><p>You may wish to begin by reading the <a class="link" href="TextWidget.html" title="Text Widget Overview">text widgetconceptual overview</a> which gives an overview of all the objects and datatypes related to the text widget and how they work together.</p><p></p></div><div class="refsect1" lang="en"><a name="id3647145"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3647155"></a><h3><a name="GtkTextView-struct"></a>GtkTextView</h3><a class="indexterm" name="id3647168"></a><pre class="programlisting">typedef struct _GtkTextView GtkTextView;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3647183"></a><h3><a name="GtkTextWindowType"></a>enum GtkTextWindowType</h3><a class="indexterm" name="id3647197"></a><pre class="programlisting">typedef enum{  GTK_TEXT_WINDOW_PRIVATE,  GTK_TEXT_WINDOW_WIDGET,  GTK_TEXT_WINDOW_TEXT,  GTK_TEXT_WINDOW_LEFT,  GTK_TEXT_WINDOW_RIGHT,  GTK_TEXT_WINDOW_TOP,  GTK_TEXT_WINDOW_BOTTOM} GtkTextWindowType;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3647215"></a><h3><a name="gtk-text-view-new"></a>gtk_text_view_new ()</h3><a class="indexterm" name="id3647228"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_text_view_new                   (void);</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"><code class="function">gtk_text_view_set_buffer()</code></a>before using the text view, an empty default buffer will be createdfor you. Get the buffer with <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer"><code class="function">gtk_text_view_get_buffer()</code></a>. If you wantto specify your own buffer, consider <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer"><code class="function">gtk_text_view_new_with_buffer()</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3647319"></a><h3><a name="gtk-text-view-new-with-buffer"></a>gtk_text_view_new_with_buffer ()</h3><a class="indexterm" name="id3647333"></a><pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*          gtk_text_view_new_with_buffer       (<a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</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 <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></a> to create a default buffer, in which casethis function is equivalent to <a class="link" href="GtkTextView.html#gtk-text-view-new"><code class="function">gtk_text_view_new()</code></a>. Thetext view adds its own reference count to the buffer; it does nottake over an existing reference.</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"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3647454"></a><h3><a name="gtk-text-view-set-buffer"></a>gtk_text_view_set_buffer ()</h3><a class="indexterm" name="id3647467"></a><pre class="programlisting">void                gtk_text_view_set_buffer            (<a class="link" href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,                                                         <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</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 previousbuffer displayed by the text view is unreferenced, and a reference isadded to <em class="parameter"><code>buffer</code></em>. If you owned a reference to <em class="parameter"><code>buffer</code></em> before passing itto 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><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_view</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a></td></tr><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></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3647590"></a><h3>

⌨️ 快捷键说明

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