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

📄 gtktexttag.html

📁 最新gtk中文资料集
💻 HTML
📖 第 1 页 / 共 5 页
字号:
  "<a class="link" href="GtkTextTag.html#GtkTextTag--rise-set">rise-set</a>"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--scale">scale</a>"                    <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>               : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--scale-set">scale-set</a>"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--size">size</a>"                     <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--size-points">size-points</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble">gdouble</a>               : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--size-set">size-set</a>"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--stretch">stretch</a>"                  <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoStretch">PangoStretch</a>          : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--stretch-set">stretch-set</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--strikethrough">strikethrough</a>"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--strikethrough-set">strikethrough-set</a>"        <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--style">style</a>"                    <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoStyle">PangoStyle</a>            : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--style-set">style-set</a>"                <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--tabs">tabs</a>"                     <ahref="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray">PangoTabArray</a>         : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--tabs-set">tabs-set</a>"                 <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--underline">underline</a>"                <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoUnderline">PangoUnderline</a>        : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--underline-set">underline-set</a>"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--variant">variant</a>"                  <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoVariant">PangoVariant</a>          : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--variant-set">variant-set</a>"              <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--weight">weight</a>"                   <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a>                  : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--weight-set">weight-set</a>"               <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--wrap-mode">wrap-mode</a>"                <a class="link" href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a>           : Read / Write  "<a class="link" href="GtkTextTag.html#GtkTextTag--wrap-mode-set">wrap-mode-set</a>"            <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a>              : Read / Write</pre></div><div class="refsect1" lang="en"><a name="id3630756"></a><h2>Signals</h2><pre class="synopsis">  "<a class="link" href="GtkTextTag.html#GtkTextTag-event">event</a>"                                          : Run Last</pre></div><div class="refsect1" lang="en"><a name="id3630784"></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>Tags should be in the <a class="link" href="GtkTextTagTable.html" title="GtkTextTagTable"><span class="type">GtkTextTagTable</span></a> for a given <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>before using them with that buffer.</p><p><a class="link" href="GtkTextBuffer.html#gtk-text-buffer-create-tag"><code class="function">gtk_text_buffer_create_tag()</code></a> is the best way to create tags.See <span class="application">gtk-demo</span> for numerous examples.</p><p>The "invisible" property was not implemented for GTK+ 2.0; it'splanned to be implemented in future releases.</p></div><div class="refsect1" lang="en"><a name="id3630856"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id3630866"></a><h3><a name="GtkTextTag-struct"></a>GtkTextTag</h3><a class="indexterm" name="id3630878"></a><pre class="programlisting">typedef struct _GtkTextTag GtkTextTag;</pre><p></p></div><hr><div class="refsect2" lang="en"><a name="id3630893"></a><h3><a name="GtkWrapMode"></a>enum GtkWrapMode</h3><a class="indexterm" name="id3630906"></a><pre class="programlisting">typedef enum{  GTK_WRAP_NONE,  GTK_WRAP_CHAR,  GTK_WRAP_WORD,  GTK_WRAP_WORD_CHAR} GtkWrapMode;</pre><p>Describes a type of line wrapping.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a name="GTK-WRAP-NONE:CAPS"></a><code class="literal">GTK_WRAP_NONE</code></span></p></td><td>do not wrap lines; just make the text area wider</td></tr><tr><td><p><span class="term"><a name="GTK-WRAP-CHAR:CAPS"></a><code class="literal">GTK_WRAP_CHAR</code></span></p></td><td>wrap text, breaking lines anywhere the cursor can                appear (between characters, usually - if you want to                be technical, between graphemes, see                <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Processing.html#pango-get-log-attrs"><code class="function">pango_get_log_attrs()</code></a>)</td></tr><tr><td><p><span class="term"><a name="GTK-WRAP-WORD:CAPS"></a><code class="literal">GTK_WRAP_WORD</code></span></p></td><td>wrap text, breaking lines in between words</td></tr><tr><td><p><span class="term"><a name="GTK-WRAP-WORD-CHAR:CAPS"></a><code class="literal">GTK_WRAP_WORD_CHAR</code></span></p></td><td>wrap text, breaking lines in between words, or if                 that is not enough, also between graphemes.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id3631035"></a><h3><a name="GtkTextAttributes"></a>GtkTextAttributes</h3><a class="indexterm" name="id3631047"></a><pre class="programlisting">typedef struct {  GtkTextAppearance appearance;  GtkJustification justification;  GtkTextDirection direction;  /* Individual chunks of this can be set/unset as a group */  PangoFontDescription *font;  gdouble font_scale;    gint left_margin;  gint indent;    gint right_margin;  gint pixels_above_lines;  gint pixels_below_lines;  gint pixels_inside_wrap;  PangoTabArray *tabs;  GtkWrapMode wrap_mode;        /* How to handle wrap-around for this tag.                                 * Must be GTK_WRAPMODE_CHAR,                                 * GTK_WRAPMODE_NONE, GTK_WRAPMODE_WORD                                 */  PangoLanguage *language;  /* hide the text  */  guint invisible : 1;  /* Background is fit to full line height rather than   * baseline +/- ascent/descent (font height)   */  guint bg_full_height : 1;  /* can edit this text */  guint editable : 1;  /* colors are allocated etc. */  guint realized : 1;} GtkTextAttributes;</pre><p>Using <a class="link" href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a> directly should rarely be necessary. It'sprimarily useful with <a class="link" href="gtk-GtkTextIter.html#gtk-text-iter-get-attributes"><code class="function">gtk_text_iter_get_attributes()</code></a>. As with mostGTK+ structs, the fields in this struct should only be read, nevermodified directly.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><p><span class="term"><a class="link" href="GtkTextTag.html#GtkTextAppearance">GtkTextAppearance</a>&#160;<em class="structfield"><code>appearance</code></em>;</span></p></td><td>pointer to sub-struct containing certain attributes</td></tr><tr><td><p><span class="term"><a class="link" href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a>&#160;<em class="structfield"><code>justification</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><a class="link" href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a>&#160;<em class="structfield"><code>direction</code></em>;</span></p></td><td></td></tr><tr><td><p><span class="term"><ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>&#160;*<em class="structfield"><code>font</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#gdouble">gdouble</a>&#160;<em class="structfield"><code>font_scale</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>left_margin</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>indent</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>right_margin</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_above_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"

⌨️ 快捷键说明

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