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

📄 gtktexttag.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
>gint</a>&#160;<em class="structfield"><code>pixels_below_lines</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>&#160;<em class="structfield"><code>pixels_inside_wrap</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray">PangoTabArray</a>&#160;*<em class="structfield"><code>tabs</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><a class="link" href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a>&#160;<em class="structfield"><code>wrap_mode</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a>&#160;*<em class="structfield"><code>language</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>&#160;<em class="structfield"><code>invisible</code></em>&#160;:&#160;1;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>&#160;<em class="structfield"><code>bg_full_height</code></em>&#160;:&#160;1;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>&#160;<em class="structfield"><code>editable</code></em>&#160;:&#160;1;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint">guint</a>&#160;<em class="structfield"><code>realized</code></em>&#160;:&#160;1;</span></p></td><td></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631472"></a><h3><a name="gtk-text-tag-new"></a>gtk_text_tag_new ()</h3><a class="indexterm" name="id3631484"></a><pre class="programlisting"><a class="link" href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a>*         gtk_text_tag_new                    (const <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *name);</pre><p>Creates a <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>. Configure the tag using object arguments,i.e. using <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#g-object-set"><code class="function">g_object_set()</code></a>.</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>name</code></em>&#160;:</span></p></td><td> tag name, or <ahref="/usr/share/gtk-doc/html/liboil/liboil-liboiljunk.html#NULL:CAPS"><code class="literal">NULL</code></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="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631582"></a><h3><a name="gtk-text-tag-get-priority"></a>gtk_text_tag_get_priority ()</h3><a class="indexterm" name="id3631595"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                gtk_text_tag_get_priority           (<a class="link" href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag);</pre><p>Get the tag priority.</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>tag</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> The tag's priority.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631663"></a><h3><a name="gtk-text-tag-set-priority"></a>gtk_text_tag_set_priority ()</h3><a class="indexterm" name="id3631677"></a><pre class="programlisting">void                gtk_text_tag_set_priority           (<a class="link" href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,                                                         <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> priority);</pre><p>Sets the priority of a <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>. Valid priorities arestart at 0 and go to one less than <a class="link" href="GtkTextTagTable.html#gtk-text-tag-table-get-size"><code class="function">gtk_text_tag_table_get_size()</code></a>.Each tag in a table has a unique priority; setting the priorityof one tag shifts the priorities of all the other tags in thetable to maintain a unique priority for each tag. Higher prioritytags "win" if two tags both set the same text attribute. When addinga tag to a tag table, it will be assigned the highest priority inthe table by default; so normally the precedence of a set of tagsis the order in which they were added to the table, or created with<a class="link" href="GtkTextBuffer.html#gtk-text-buffer-create-tag"><code class="function">gtk_text_buffer_create_tag()</code></a>, which adds the tag to the buffer's tableautomatically.</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>tag</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>priority</code></em>&#160;:</span></p></td><td> the new priority</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631797"></a><h3><a name="gtk-text-tag-event"></a>gtk_text_tag_event ()</h3><a class="indexterm" name="id3631809"></a><pre class="programlisting"><ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>            gtk_text_tag_event                  (<a class="link" href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,                                                         <ahref="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> *event_object,                                                         <ahref="/usr/share/gtk-doc/html/gdk/gdk-Event-Structures.html#GdkEvent">GdkEvent</a> *event,                                                         const <a class="link" href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre><p>Emits the "event" signal on the <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>.</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>tag</code></em>&#160;:</span></p></td><td> a <a class="link" href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>event_object</code></em>&#160;:</span></p></td><td> object that received the event, such as a widget</td></tr><tr><td><p><span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></p></td><td> the event</td></tr><tr><td><p><span class="term"><em class="parameter"><code>iter</code></em>&#160;:</span></p></td><td> location where the event was received</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td><td> result of signal emission (whether the event was handled)</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631952"></a><h3><a name="GtkTextAppearance"></a>GtkTextAppearance</h3><a class="indexterm" name="id3631965"></a><pre class="programlisting">typedef struct {  GdkColor bg_color;  GdkColor fg_color;  GdkBitmap *bg_stipple;  GdkBitmap *fg_stipple;  /* super/subscript rise, can be negative */  gint rise;  guint underline : 4;          /* PangoUnderline */  guint strikethrough : 1;  /* Whether to use background-related values; this is irrelevant for   * the values struct when in a tag, but is used for the composite   * values struct; it's true if any of the tags being composited   * had background stuff set.   */  guint draw_bg : 1;    /* These are only used when we are actually laying out and rendering   * a paragraph; not when a GtkTextAppearance is part of a   * GtkTextAttributes.   */  guint inside_selection : 1;  guint is_text : 1;} GtkTextAppearance;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3631992"></a><h3><a name="gtk-text-attributes-new"></a>gtk_text_attributes_new ()</h3><a class="indexterm" name="id3632005"></a><pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a>*  gtk_text_attributes_new             (void);</pre><p>Creates a <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a>, which describesa set of properties on some text.</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="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3632062"></a><h3><a name="gtk-text-attributes-copy"></a>gtk_text_attributes_copy ()</h3>

⌨️ 快捷键说明

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