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

📄 pango-text-attributes.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<td><span class="term"><em class="parameter"><code>family</code></em>&#160;:</span></td><td> the family or comma separated list of families</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2814784"></a><h3><a name="pango-attr-style-new"></a>pango_attr_style_new ()</h3><a class="indexterm" name="id2814797"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_style_new        (<a href="pango-Fonts.html#PangoStyle">PangoStyle</a> style);</pre><p>Create a new font slant style attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>style</code></em>&#160;:</span></td><td> the slant style</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2814878"></a><h3><a name="pango-attr-variant-new"></a>pango_attr_variant_new ()</h3><a class="indexterm" name="id2814892"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_variant_new      (<a href="pango-Fonts.html#PangoVariant">PangoVariant</a> variant);</pre><p>Create a new font variant attribute (normal or small caps)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>variant</code></em>&#160;:</span></td><td> the variant</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2814973"></a><h3><a name="pango-attr-stretch-new"></a>pango_attr_stretch_new ()</h3><a class="indexterm" name="id2814987"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_stretch_new      (<a href="pango-Fonts.html#PangoStretch">PangoStretch</a> stretch);</pre><p>Create a new font stretch attribute</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>stretch</code></em>&#160;:</span></td><td> the stretch</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2815068"></a><h3><a name="pango-attr-weight-new"></a>pango_attr_weight_new ()</h3><a class="indexterm" name="id2815082"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_weight_new       (<a href="pango-Fonts.html#PangoWeight">PangoWeight</a> weight);</pre><p>Create a new font weight attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>weight</code></em>&#160;:</span></td><td> the weight</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2815163"></a><h3><a name="pango-attr-size-new"></a>pango_attr_size_new ()</h3><a class="indexterm" name="id2815176"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_size_new         (int size);</pre><p>Create a new font-size attribute in fractional points.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></td><td> the font size, in <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a>ths of a point.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2815268"></a><h3><a name="pango-attr-size-new-absolute"></a>pango_attr_size_new_absolute ()</h3><a class="indexterm" name="id2815284"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_size_new_absolute                                            (int size);</pre><p>Create a new font-size attribute in device units.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></td><td> the font size, in <a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a>ths of a device unit.</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div><p>Since  1.8</p></div><hr><div class="refsect2" lang="en"><a name="id2815382"></a><h3><a name="pango-attr-font-desc-new"></a>pango_attr_font_desc_new ()</h3><a class="indexterm" name="id2815396"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_font_desc_new    (const <a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a> *desc);</pre><p>Create a new font description attribute. This attributeallows setting family, style, weight, variant, stretch,and size simultaneously.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>desc</code></em>&#160;:</span></td><td> the font description</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td>  the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2815480"></a><h3><a name="pango-attr-foreground-new"></a>pango_attr_foreground_new ()</h3><a class="indexterm" name="id2815494"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_foreground_new   (<ahref="../glib/glib-Basic-Types.html#guint16">guint16</a> red,                                             <ahref="../glib/glib-Basic-Types.html#guint16">guint16</a> green,                                             <ahref="../glib/glib-Basic-Types.html#guint16">guint16</a> blue);</pre><p>Create a new foreground color attribute.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>red</code></em>&#160;:</span></td><td> the red value (ranging from 0 to 65535)</td></tr><tr><td><span class="term"><em class="parameter"><code>green</code></em>&#160;:</span></td><td> the green value</td></tr><tr><td><span class="term"><em class="parameter"><code>blue</code></em>&#160;:</span></td><td> the blue value</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Text-Attributes.html#PangoAttribute"><span class="type">PangoAttribute</span></a>, which should be              freed with <a href="pango-Text-Attributes.html#pango-attribute-destroy"><code class="function">pango_attribute_destroy()</code></a>.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2815618"></a><h3><a name="pango-attr-background-new"></a>pango_attr_background_new ()</h3><a class="indexterm" name="id2815632"></a><pre class="programlisting"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>* pango_attr_background_new   (<ahref="../glib/glib-Basic-Types.html#guint16">guint16</a> red

⌨️ 快捷键说明

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