📄 text-attributes.xml
字号:
</programlisting><para>The <link linkend="PangoAttrString"><type>PangoAttrString</type></link> structure is used to represent attributes witha string value.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="char">char</link> *<structfield>value</structfield>;</term><listitem><simpara>the string which is the value of the attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrLanguage" role="struct"><title>PangoAttrLanguage</title><indexterm zone="PangoAttrLanguage"><primary>PangoAttrLanguage</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; PangoLanguage *value;} PangoAttrLanguage;</programlisting><para>The <link linkend="PangoAttrLanguage"><type>PangoAttrLanguage</type></link> structure is used to represent attributes thatare languages.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoLanguage">PangoLanguage</link> *<structfield>value</structfield>;</term><listitem><simpara>the <link linkend="PangoLanguage"><type>PangoLanguage</type></link> which is the value of the attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrColor" role="struct"><title>PangoAttrColor</title><indexterm zone="PangoAttrColor"><primary>PangoAttrColor</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; PangoColor color;} PangoAttrColor;</programlisting><para>The <link linkend="PangoAttrColor"><type>PangoAttrColor</type></link> structure is used to represent attributes thatare colors.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoColor">PangoColor</link> <structfield>color</structfield>;</term><listitem><simpara>the <link linkend="PangoColor"><type>PangoColor</type></link> which is the value of the attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrInt" role="struct"><title>PangoAttrInt</title><indexterm zone="PangoAttrInt"><primary>PangoAttrInt</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; int value;} PangoAttrInt;</programlisting><para>The <link linkend="PangoAttrInt"><type>PangoAttrInt</type></link> structure is used to represent attributes withan integer or enumeration value.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="int">int</link> <structfield>value</structfield>;</term><listitem><simpara>the value of the attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrFloat" role="struct"><title>PangoAttrFloat</title><indexterm zone="PangoAttrFloat"><primary>PangoAttrFloat</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; double value;} PangoAttrFloat;</programlisting><para>The <link linkend="PangoAttrFloat"><type>PangoAttrFloat</type></link> structure is used to represent attributes witha float or double value.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="double">double</link> <structfield>value</structfield>;</term><listitem><simpara>the value of the attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrFontDesc" role="struct"><title>PangoAttrFontDesc</title><indexterm zone="PangoAttrFontDesc"><primary>PangoAttrFontDesc</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; PangoFontDescription *desc;} PangoAttrFontDesc;</programlisting><para>The <link linkend="PangoAttrFontDesc"><type>PangoAttrFontDesc</type></link> structure is used to store an attribute thatsets all aspects of the font description at once.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoFontDescription">PangoFontDescription</link> *<structfield>desc</structfield>;</term><listitem><simpara>the font description which is the value of this attribute</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrShape" role="struct"><title>PangoAttrShape</title><indexterm zone="PangoAttrShape"><primary>PangoAttrShape</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; PangoRectangle ink_rect; PangoRectangle logical_rect; gpointer data; PangoAttrDataCopyFunc copy_func; GDestroyNotify destroy_func;} PangoAttrShape;</programlisting><para>The <link linkend="PangoAttrShape"><type>PangoAttrShape</type></link> structure is used to represent attributes which impose shape restrictions.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoRectangle">PangoRectangle</link> <structfield>ink_rect</structfield>;</term><listitem><simpara>the ink rectangle to restrict to</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoRectangle">PangoRectangle</link> <structfield>logical_rect</structfield>;</term><listitem><simpara>the logical rectangle to restrict to</simpara></listitem></varlistentry><varlistentry><term><link linkend="gpointer">gpointer</link> <structfield>data</structfield>;</term><listitem><simpara>user data set (see <link linkend="pango-attr-shape-new-with-data"><function>pango_attr_shape_new_with_data()</function></link>)</simpara></listitem></varlistentry><varlistentry><term><link linkend="PangoAttrDataCopyFunc">PangoAttrDataCopyFunc</link> <structfield>copy_func</structfield>;</term><listitem><simpara>copy function for the user data</simpara></listitem></varlistentry><varlistentry><term><link linkend="GDestroyNotify">GDestroyNotify</link> <structfield>destroy_func</structfield>;</term><listitem><simpara>destroy function for the user data</simpara></listitem></varlistentry></variablelist></refsect2><refsect2 id="PangoAttrSize" role="struct"><title>PangoAttrSize</title><indexterm zone="PangoAttrSize"><primary>PangoAttrSize</primary></indexterm><programlisting>typedef struct { PangoAttribute attr; int size; guint absolute : 1;} PangoAttrSize;</programlisting><para>The <link linkend="PangoAttrShape"><type>PangoAttrShape</type></link> structure is used to represent attributes whichset font size.</para><variablelist role="struct"><varlistentry><term><link linkend="PangoAttribute">PangoAttribute</link> <structfield>attr</structfield>;</term><listitem><simpara>the common portion of the attribute</simpara></listitem></varlistentry><varlistentry><term><link linkend="int">int</link> <structfield>size</structfield>;</term><listitem><simpara>size of font, in units of 1/<link linkend="PANGO-SCALE:CAPS"><literal>PANGO_SCALE</literal></link> of a point (for <link linkend="PANGO-ATTR-SIZE:CAPS"><literal>PANGO_ATTR_SIZE</literal></link>) or of a device uni (for <link linkend="PANGO-ATTR-ABSOLUTE-SIZE:CAPS"><literal>PANGO_ATTR_ABSOLUTE_SIZE</literal></link>)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -