📄 gtkcellrenderertext.html
字号:
<a name="id3840784"></a><h3><a name="GtkCellRendererText--strikethrough"></a>The <code class="literal">"strikethrough"</code> property</h3><a class="indexterm" name="id3840801"></a><pre class="programlisting"> "strikethrough" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether to strike through the text.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3840828"></a><h3><a name="GtkCellRendererText--strikethrough-set"></a>The <code class="literal">"strikethrough-set"</code> property</h3><a class="indexterm" name="id3840845"></a><pre class="programlisting"> "strikethrough-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects strikethrough.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3840872"></a><h3><a name="GtkCellRendererText--style"></a>The <code class="literal">"style"</code> property</h3><a class="indexterm" name="id3840888"></a><pre class="programlisting"> "style" <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoStyle">PangoStyle</a> : Read / Write</pre><p>Font style.</p><p>Default value: PANGO_STYLE_NORMAL</p></div><hr><div class="refsect2" lang="en"><a name="id3840916"></a><h3><a name="GtkCellRendererText--style-set"></a>The <code class="literal">"style-set"</code> property</h3><a class="indexterm" name="id3840932"></a><pre class="programlisting"> "style-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 style.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3840959"></a><h3><a name="GtkCellRendererText--text"></a>The <code class="literal">"text"</code> property</h3><a class="indexterm" name="id3840976"></a><pre class="programlisting"> "text" <ahref="/usr/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray">gchararray</a> : Read / Write</pre><p>Text to render.</p><p>Default value: NULL</p></div><hr><div class="refsect2" lang="en"><a name="id3841002"></a><h3><a name="GtkCellRendererText--underline"></a>The <code class="literal">"underline"</code> property</h3><a class="indexterm" name="id3841019"></a><pre class="programlisting"> "underline" <ahref="/usr/share/gtk-doc/html/pango/pango-Text-Attributes.html#PangoUnderline">PangoUnderline</a> : Read / Write</pre><p>Style of underline for this text.</p><p>Default value: PANGO_UNDERLINE_NONE</p></div><hr><div class="refsect2" lang="en"><a name="id3841046"></a><h3><a name="GtkCellRendererText--underline-set"></a>The <code class="literal">"underline-set"</code> property</h3><a class="indexterm" name="id3841064"></a><pre class="programlisting"> "underline-set" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean">gboolean</a> : Read / Write</pre><p>Whether this tag affects underlining.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3841090"></a><h3><a name="GtkCellRendererText--variant"></a>The <code class="literal">"variant"</code> property</h3><a class="indexterm" name="id3841107"></a><pre class="programlisting"> "variant" <ahref="/usr/share/gtk-doc/html/pango/pango-Fonts.html#PangoVariant">PangoVariant</a> : Read / Write</pre><p>Font variant.</p><p>Default value: PANGO_VARIANT_NORMAL</p></div><hr><div class="refsect2" lang="en"><a name="id3841134"></a><h3><a name="GtkCellRendererText--variant-set"></a>The <code class="literal">"variant-set"</code> property</h3><a class="indexterm" name="id3841151"></a><pre class="programlisting"> "variant-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 variant.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3841178"></a><h3><a name="GtkCellRendererText--weight"></a>The <code class="literal">"weight"</code> property</h3><a class="indexterm" name="id3841194"></a><pre class="programlisting"> "weight" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Font weight.</p><p>Allowed values: >= 0</p><p>Default value: 400</p></div><hr><div class="refsect2" lang="en"><a name="id3841225"></a><h3><a name="GtkCellRendererText--weight-set"></a>The <code class="literal">"weight-set"</code> property</h3><a class="indexterm" name="id3841242"></a><pre class="programlisting"> "weight-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 weight.</p><p>Default value: FALSE</p></div><hr><div class="refsect2" lang="en"><a name="id3841269"></a><h3><a name="GtkCellRendererText--width-chars"></a>The <code class="literal">"width-chars"</code> property</h3><a class="indexterm" name="id3841286"></a><pre class="programlisting"> "width-chars" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>The desired width of the cell, in characters. If this property is set to-1, the width will be calculated automatically, otherwise the cell willrequest either 3 characters or the property value, whichever is greater.</p><p></p><p>Allowed values: >= -1</p><p>Default value: -1</p><p>Since 2.6</p></div><hr><div class="refsect2" lang="en"><a name="id3841328"></a><h3><a name="GtkCellRendererText--wrap-mode"></a>The <code class="literal">"wrap-mode"</code> property</h3><a class="indexterm" name="id3841345"></a><pre class="programlisting"> "wrap-mode" <ahref="/usr/share/gtk-doc/html/pango/pango-Layout-Objects.html#PangoWrapMode">PangoWrapMode</a> : Read / Write</pre><p>Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.</p><p></p><p>Default value: PANGO_WRAP_CHAR</p><p>Since 2.8</p></div><hr><div class="refsect2" lang="en"><a name="id3841383"></a><h3><a name="GtkCellRendererText--wrap-width"></a>The <code class="literal">"wrap-width"</code> property</h3><a class="indexterm" name="id3841400"></a><pre class="programlisting"> "wrap-width" <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint">gint</a> : Read / Write</pre><p>Specifies the width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed.Setting wrap-width to -1 turns wrapping off.</p><p></p><p>Allowed values: >= -1</p><p>Default value: -1</p><p>Since 2.8</p></div></div><div class="refsect1" lang="en"><a name="id3841443"></a><h2>Signal Details</h2><div class="refsect2" lang="en"><a name="id3841454"></a><h3><a name="GtkCellRendererText-edited"></a>The <code class="literal">"edited"</code> signal</h3><a class="indexterm" name="id3841470"></a><pre class="programlisting">void user_function (<a class="link" href="GtkCellRendererText.html" title="GtkCellRendererText">GtkCellRendererText</a> *renderer, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *path, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar">gchar</a> *new_text, <ahref="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer">gpointer</a> user_data) : Run Last</pre><p>This signal is emitted after <em class="parameter"><code>renderer</code></em> has been edited.</p><p>It is the responsibility of the application to update the modeland store <em class="parameter"><code>new_text</code></em> at the position indicated by <em class="parameter"><code>path</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>renderer</code></em> :</span></p></td><td> the object which received the signal</td></tr><tr><td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td><td> the path identifying the edited cell</td></tr><tr><td><p><span class="term"><em class="parameter"><code>new_text</code></em> :</span></p></td><td> the new text</td></tr><tr><td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id3841612"></a><div class="refsect2" lang="en"><a name="id3841613"></a></div><hr><div class="refsect2" lang="en"><a name="id3841614"></a></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -