📄 gtktexttag.html
字号:
<a name="GtkTextTag--foreground"></a>The <code class="literal">"foreground"</code> property</h3><a class="indexterm" name="id3633200"></a><pre class="programlisting"> "foreground" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Write</pre><p>Foreground color as a string.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3633226"></a><h3><a name="GtkTextTag--foreground-gdk"></a>The <code class="literal">"foreground-gdk"</code> property</h3><a class="indexterm" name="id3633242"></a><pre class="programlisting"> "foreground-gdk" <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> : Read / Write</pre><p>Foreground color as a (possibly unallocated) GdkColor.</p></div><hr><div class="refsect2" lang="en"><a name="id3633266"></a><h3><a name="GtkTextTag--foreground-set"></a>The <code class="literal">"foreground-set"</code> property</h3><a class="indexterm" name="id3633283"></a><pre class="programlisting"> "foreground-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the foreground color.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633310"></a><h3><a name="GtkTextTag--foreground-stipple"></a>The <code class="literal">"foreground-stipple"</code> property</h3><a class="indexterm" name="id3633326"></a><pre class="programlisting"> "foreground-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 foreground.</p></div><hr><div class="refsect2" lang="en"><a name="id3633350"></a><h3><a name="GtkTextTag--foreground-stipple-set"></a>The <code class="literal">"foreground-stipple-set"</code> property</h3><a class="indexterm" name="id3633367"></a><pre class="programlisting"> "foreground-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 foreground stipple.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633394"></a><h3><a name="GtkTextTag--indent"></a>The <code class="literal">"indent"</code> property</h3><a class="indexterm" name="id3633410"></a><pre class="programlisting"> "indent" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Amount to indent the paragraph, in pixels.</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3633438"></a><h3><a name="GtkTextTag--indent-set"></a>The <code class="literal">"indent-set"</code> property</h3><a class="indexterm" name="id3633454"></a><pre class="programlisting"> "indent-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects indentation.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633480"></a><h3><a name="GtkTextTag--invisible"></a>The <code class="literal">"invisible"</code> property</h3><a class="indexterm" name="id3633496"></a><pre class="programlisting"> "invisible" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this text is hidden.</p><p>Note that there may still be problems with the support for invisible text, in particular when navigating programmatically inside a buffercontaining invisible segments.</p><p></p><p>Default value: FALSE</p><p>Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3633538"></a><h3><a name="GtkTextTag--invisible-set"></a>The <code class="literal">"invisible-set"</code> property</h3><a class="indexterm" name="id3633555"></a><pre class="programlisting"> "invisible-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects text visibility.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633582"></a><h3><a name="GtkTextTag--justification"></a>The <code class="literal">"justification"</code> property</h3><a class="indexterm" name="id3633598"></a><pre class="programlisting"> "justification" <a class="link" href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> : Read / Write</pre><p>Left, right, or center justification.</p><p>Default value: GTK_JUSTIFY_LEFT</p></div><hr><div class="refsect2" lang="en"><a name="id3633625"></a><h3><a name="GtkTextTag--justification-set"></a>The <code class="literal">"justification-set"</code> property</h3><a class="indexterm" name="id3633642"></a><pre class="programlisting"> "justification-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects paragraph justification.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633669"></a><h3><a name="GtkTextTag--language"></a>The <code class="literal">"language"</code> property</h3><a class="indexterm" name="id3633685"></a><pre class="programlisting"> "language" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If not set, an appropriate default will be used.</p><p>Note that the initial value of this property depends on the currentlocale, see also <a class="link" href="gtk-General.html#gtk-get-default-language"><code class="function">gtk_get_default_language()</code></a>.</p><p></p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3633732"></a><h3><a name="GtkTextTag--language-set"></a>The <code class="literal">"language-set"</code> property</h3><a class="indexterm" name="id3633749"></a><pre class="programlisting"> "language-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the language the text is rendered as.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633776"></a><h3><a name="GtkTextTag--left-margin"></a>The <code class="literal">"left-margin"</code> property</h3><a class="indexterm" name="id3633793"></a><pre class="programlisting"> "left-margin" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Width of the left margin in pixels.</p><p>Allowed values: >= 0</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3633823"></a><h3><a name="GtkTextTag--left-margin-set"></a>The <code class="literal">"left-margin-set"</code> property</h3><a class="indexterm" name="id3633839"></a><pre class="programlisting"> "left-margin-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the left margin.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3633866"></a><h3><a name="GtkTextTag--name"></a>The <code class="literal">"name"</code> property</h3><a class="indexterm" name="id3633882"></a><pre class="programlisting"> "name" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write / Construct Only</pre><p>Name used to refer to the text tag. NULL for anonymous tags.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3633910"></a><h3><a name="GtkTextTag--paragraph-background"></a>The <code class="literal">"paragraph-background"</code> property</h3><a class="indexterm" name="id3633927"></a><pre class="programlisting"> "paragraph-background" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Write</pre><p>The paragraph background color as a string.</p><p></p><p>Default value: NULL</p><p>Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3633963"></a><h3><a name="GtkTextTag--paragraph-background-gdk"></a>The <code class="literal">"paragraph-background-gdk"</code> property</h3><a class="indexterm" name="id3633980"></a><pre class="programlisting"> "paragraph-background-gdk" <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor">GdkColor</a> : Read / Write</pre><p>The paragraph background color as a as a (possibly unallocated) <ahref="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a>.</p><p></p><p>Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3634021"></a><h3><a name="GtkTextTag--paragraph-background-set"></a>The <code class="literal">"paragraph-background-set"</code> property</h3><a class="indexterm" name="id3634038"></a><pre class="programlisting"> "paragraph-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 paragraph background color.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3634067"></a><h3><a name="GtkTextTag--pixels-above-lines"></a>The <code class="literal">"pixels-above-lines"</code> property</h3><a class="indexterm" name="id3634084"></a><pre class="programlisting"> "pixels-above-lines" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Pixels of blank space above paragraphs.</p><p>Allowed values: >= 0</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3634114"></a><h3><a name="GtkTextTag--pixels-above-lines-set"></a>The <code class="literal">"pixels-above-lines-set"</code> property</h3><a class="indexterm" name="id3634131"></a><pre class="programlisting"> "pixels-above-lines-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the number of pixels above lines.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3634159"></a><h3><a name="GtkTextTag--pixels-below-lines"></a>The <code class="literal">"pixels-below-lines"</code> property</h3><a class="indexterm" name="id3634175"></a><pre class="programlisting"> "pixels-below-lines" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Pixels of blank space below paragraphs.</p><p>Allowed values: >= 0</p><p>Default value: 0</p></div><hr><div class="refsect2" lang="en"><a name="id3634206"></a><h3><a name="GtkTextTag--pixels-below-lines-set"></a>The <code class="literal">"pixels-below-lines-set"</code> property</h3><a class="indexterm" name="id3634223"></a><pre class="programlisting"> "pixels-below-lines-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects the number of pixels above lines.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3634251"></a><h3><a name="GtkTextTag--pixels-inside-wrap"></a>The <code class="literal">"pixels-inside-wrap"</code> property</h3><a class="indexterm" name="id3634268"></a><pre class="programlisting"> "pixels-inside-wrap" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Pixels of blank space between wrapped lines in a paragraph.</p><p>Allowed values:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -