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

📄 pango-text-attributes.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a class="indexterm" name="id2812966"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  char *value;} PangoAttrString;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrString"><span class="type">PangoAttrString</span></a> structure is used to represent attributes witha string value.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term">char&#160;*<em class="structfield"><code>value</code></em>;</span></td><td>the string which is the value of the attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813038"></a><h3><a name="PangoAttrLanguage"></a>PangoAttrLanguage</h3><a class="indexterm" name="id2813051"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  PangoLanguage *value;} PangoAttrLanguage;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrLanguage"><span class="type">PangoAttrLanguage</span></a> structure is used to represent attributes thatare languages.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoLanguage">PangoLanguage</a>&#160;*<em class="structfield"><code>value</code></em>;</span></td><td>the <a href="pango-Text-Attributes.html#PangoLanguage"><span class="type">PangoLanguage</span></a> which is the value of the attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813132"></a><h3><a name="PangoAttrColor"></a>PangoAttrColor</h3><a class="indexterm" name="id2813144"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  PangoColor color;} PangoAttrColor;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrColor"><span class="type">PangoAttrColor</span></a> structure is used to represent attributes thatare colors.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoColor">PangoColor</a>&#160;<em class="structfield"><code>color</code></em>;</span></td><td>the <a href="pango-Text-Attributes.html#PangoColor"><span class="type">PangoColor</span></a> which is the value of the attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813224"></a><h3><a name="PangoAttrInt"></a>PangoAttrInt</h3><a class="indexterm" name="id2813237"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  int value;} PangoAttrInt;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrInt"><span class="type">PangoAttrInt</span></a> structure is used to represent attributes withan integer or enumeration value.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term">int&#160;<em class="structfield"><code>value</code></em>;</span></td><td>the value of the attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813309"></a><h3><a name="PangoAttrFloat"></a>PangoAttrFloat</h3><a class="indexterm" name="id2813322"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  double value;} PangoAttrFloat;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrFloat"><span class="type">PangoAttrFloat</span></a> structure is used to represent attributes witha float or double value.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term">double&#160;<em class="structfield"><code>value</code></em>;</span></td><td>the value of the attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813394"></a><h3><a name="PangoAttrFontDesc"></a>PangoAttrFontDesc</h3><a class="indexterm" name="id2813406"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  PangoFontDescription *desc;} PangoAttrFontDesc;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrFontDesc"><span class="type">PangoAttrFontDesc</span></a> structure is used to store an attribute thatsets all aspects of the font description at once.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term"><a href="pango-Fonts.html#PangoFontDescription">PangoFontDescription</a>&#160;*<em class="structfield"><code>desc</code></em>;</span></td><td>the font description which is the value of this attribute</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813480"></a><h3><a name="PangoAttrShape"></a>PangoAttrShape</h3><a class="indexterm" name="id2813493"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  PangoRectangle ink_rect;  PangoRectangle logical_rect;  gpointer              data;  PangoAttrDataCopyFunc copy_func;  GDestroyNotify        destroy_func;} PangoAttrShape;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrShape"><span class="type">PangoAttrShape</span></a> structure is used to represent attributes which impose shape restrictions.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term"><a href="pango-Glyph-Storage.html#PangoRectangle">PangoRectangle</a>&#160;<em class="structfield"><code>ink_rect</code></em>;</span></td><td>the ink rectangle to restrict to</td></tr><tr><td><span class="term"><a href="pango-Glyph-Storage.html#PangoRectangle">PangoRectangle</a>&#160;<em class="structfield"><code>logical_rect</code></em>;</span></td><td>the logical rectangle to restrict to</td></tr><tr><td><span class="term"><ahref="../glib/glib-Basic-Types.html#gpointer">gpointer</a>&#160;<em class="structfield"><code>data</code></em>;</span></td><td>user data set (see <a href="pango-Text-Attributes.html#pango-attr-shape-new-with-data"><code class="function">pango_attr_shape_new_with_data()</code></a>)</td></tr><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttrDataCopyFunc">PangoAttrDataCopyFunc</a>&#160;<em class="structfield"><code>copy_func</code></em>;</span></td><td>copy function for the user data</td></tr><tr><td><span class="term"><ahref="../glib/glib-Datasets.html#GDestroyNotify">GDestroyNotify</a>&#160;<em class="structfield"><code>destroy_func</code></em>;</span></td><td>destroy function for the user data</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2813664"></a><h3><a name="PangoAttrSize"></a>PangoAttrSize</h3><a class="indexterm" name="id2813677"></a><pre class="programlisting">typedef struct {  PangoAttribute attr;  int size;  guint absolute : 1;} PangoAttrSize;</pre><p>The <a href="pango-Text-Attributes.html#PangoAttrShape"><span class="type">PangoAttrShape</span></a> structure is used to represent attributes whichset font size.</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><a href="pango-Text-Attributes.html#PangoAttribute">PangoAttribute</a>&#160;<em class="structfield"><code>attr</code></em>;</span></td><td>the common portion of the attribute</td></tr><tr><td><span class="term">int&#160;<em class="structfield"><code>size</code></em>;</span></td><td>size of font, in units of 1/<a href="pango-Glyph-Storage.html#PANGO-SCALE:CAPS"><code class="literal">PANGO_SCALE</code></a> of a point (for  <a href="pango-Text-Attributes.html#PANGO-ATTR-SIZE:CAPS"><code class="literal">PANGO_ATTR_SIZE</code></a>) or of a device uni (for <a href="pango-Text-Attributes.html#PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><code class="literal">PANGO_ATTR_ABSOLUTE_SIZE</code></a>)</td></tr>

⌨️ 快捷键说明

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