📄 gtktexttag.html
字号:
<a class="indexterm" name="id3632075"></a><pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a>* gtk_text_attributes_copy (<a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a> *src);</pre><p>Copies <em class="parameter"><code>src</code></em> and returns a new <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</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>src</code></em> :</span></p></td><td> a <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> to be copied</td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> a copy of <em class="parameter"><code>src</code></em></td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3632164"></a><h3><a name="gtk-text-attributes-copy-values"></a>gtk_text_attributes_copy_values ()</h3><a class="indexterm" name="id3632178"></a><pre class="programlisting">void gtk_text_attributes_copy_values (<a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a> *src, <a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a> *dest);</pre><p>Copies the values from <em class="parameter"><code>src</code></em> to <em class="parameter"><code>dest</code></em> so that <em class="parameter"><code>dest</code></em> has the same valuesas <em class="parameter"><code>src</code></em>. Frees existing values in <em class="parameter"><code>dest</code></em>.</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>src</code></em> :</span></p></td><td> a <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a></td></tr><tr><td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td><td> another <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="id3632296"></a><h3><a name="gtk-text-attributes-unref"></a>gtk_text_attributes_unref ()</h3><a class="indexterm" name="id3632310"></a><pre class="programlisting">void gtk_text_attributes_unref (<a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a> *values);</pre><p>Decrements the reference count on <em class="parameter"><code>values</code></em>, freeing the structureif the reference count reaches 0.</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>values</code></em> :</span></p></td><td> a <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="id3632375"></a><h3><a name="gtk-text-attributes-ref"></a>gtk_text_attributes_ref ()</h3><a class="indexterm" name="id3632388"></a><pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a>* gtk_text_attributes_ref (<a class="link" href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a> *values);</pre><p>Increments the reference count on <em class="parameter"><code>values</code></em>.</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>values</code></em> :</span></p></td><td> a <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a></td></tr><tr><td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td><td> the <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> that were passed in</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3632473"></a><h2>Property Details</h2><div class="refsect2" lang="en"><a name="id3632484"></a><h3><a name="GtkTextTag--accumulative-margin"></a>The <code class="literal">"accumulative-margin"</code> property</h3><a class="indexterm" name="id3632501"></a><pre class="programlisting"> "accumulative-margin" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether the margins accumulate or override each other.</p><p>When set to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> the margins of this tag are added to the margins of any other non-accumulative margins present. When set to <ahref="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> the margins override one another (the default).</p><p></p><p>Default value: FALSE</p><p>Since 2.12</p></div><hr><div class="refsect2" lang="en"><a name="id3632564"></a><h3><a name="GtkTextTag--background"></a>The <code class="literal">"background"</code> property</h3><a class="indexterm" name="id3632580"></a><pre class="programlisting"> "background" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Write</pre><p>Background color as a string.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3632607"></a><h3><a name="GtkTextTag--background-full-height"></a>The <code class="literal">"background-full-height"</code> property</h3><a class="indexterm" name="id3632624"></a><pre class="programlisting"> "background-full-height" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether the background color fills the entire line height or only the height of the tagged characters.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3632652"></a><h3><a name="GtkTextTag--background-full-height-set"></a>The <code class="literal">"background-full-height-set"</code> property</h3><a class="indexterm" name="id3632670"></a><pre class="programlisting"> "background-full-height-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects background height.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3632697"></a><h3><a name="GtkTextTag--background-gdk"></a>The <code class="literal">"background-gdk"</code> property</h3><a class="indexterm" name="id3632714"></a><pre class="programlisting"> "background-gdk" <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> : Read / Write</pre><p>Background color as a (possibly unallocated) GdkColor.</p></div><hr><div class="refsect2" lang="en"><a name="id3632737"></a><h3><a name="GtkTextTag--background-set"></a>The <code class="literal">"background-set"</code> property</h3><a class="indexterm" name="id3632754"></a><pre class="programlisting"> "background-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the background color.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3632781"></a><h3><a name="GtkTextTag--background-stipple"></a>The <code class="literal">"background-stipple"</code> property</h3><a class="indexterm" name="id3632798"></a><pre class="programlisting"> "background-stipple" <ahref="/usr/share/gtk-doc/html/gdk/gdk-Bitmaps-and-Pixmaps.html#GdkPixmap">GdkPixmap</a> : Read / Write</pre><p>Bitmap to use as a mask when drawing the text background.</p></div><hr><div class="refsect2" lang="en"><a name="id3632822"></a><h3><a name="GtkTextTag--background-stipple-set"></a>The <code class="literal">"background-stipple-set"</code> property</h3><a class="indexterm" name="id3632838"></a><pre class="programlisting"> "background-stipple-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the background stipple.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3632866"></a><h3><a name="GtkTextTag--direction"></a>The <code class="literal">"direction"</code> property</h3><a class="indexterm" name="id3632882"></a><pre class="programlisting"> "direction" <a class="link" href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> : Read / Write</pre><p>Text direction, e.g. right-to-left or left-to-right.</p><p>Default value: GTK_TEXT_DIR_NONE</p></div><hr><div class="refsect2" lang="en"><a name="id3632910"></a><h3><a name="GtkTextTag--editable"></a>The <code class="literal">"editable"</code> property</h3><a class="indexterm" name="id3632926"></a><pre class="programlisting"> "editable" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether the text can be modified by the user.</p><p>Default value: TRUE</p></div><hr><div class="refsect2" lang="en"><a name="id3632953"></a><h3><a name="GtkTextTag--editable-set"></a>The <code class="literal">"editable-set"</code> property</h3><a class="indexterm" name="id3632969"></a><pre class="programlisting"> "editable-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects text editability.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3632996"></a><h3><a name="GtkTextTag--family"></a>The <code class="literal">"family"</code> property</h3><a class="indexterm" name="id3633012"></a><pre class="programlisting"> "family" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Name of the font family, e.g. Sans, Helvetica, Times, Monospace.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3633040"></a><h3><a name="GtkTextTag--family-set"></a>The <code class="literal">"family-set"</code> property</h3><a class="indexterm" name="id3633057"></a><pre class="programlisting"> "family-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the font family.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633084"></a><h3><a name="GtkTextTag--font"></a>The <code class="literal">"font"</code> property</h3><a class="indexterm" name="id3633099"></a><pre class="programlisting"> "font" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Font description as string, e.g. \"Sans Italic 12\". </p><p>Note that the initial value of this property depends onthe internals of <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.</p><p></p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3633143"></a><h3><a name="GtkTextTag--font-desc"></a>The <code class="literal">"font-desc"</code> property</h3><a class="indexterm" name="id3633160"></a><pre class="programlisting"> "font-desc" <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> : Read / Write</pre><p>Font description as a PangoFontDescription struct.</p></div><hr><div class="refsect2" lang="en"><a name="id3633184"></a><h3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -