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

📄 glyphs.xml

📁 Pango is a library for layout and rendering of text, with an emphasis on internationalization. Pang
💻 XML
📖 第 1 页 / 共 5 页
字号:
<term><link linkend="double">double</link>&nbsp;<structfield>yy</structfield>;</term><listitem><simpara> 4th component of the transformation matrix</simpara></listitem></varlistentry><varlistentry><term><link linkend="double">double</link>&nbsp;<structfield>x0</structfield>;</term><listitem><simpara> x translation</simpara></listitem></varlistentry><varlistentry><term><link linkend="double">double</link>&nbsp;<structfield>y0</structfield>;</term><listitem><simpara> y translation</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="PANGO-TYPE-MATRIX:CAPS" role="macro"><title>PANGO_TYPE_MATRIX</title><indexterm zone="PANGO-TYPE-MATRIX:CAPS"><primary>PANGO_TYPE_MATRIX</primary></indexterm><programlisting>#define PANGO_TYPE_MATRIX (pango_matrix_get_type ())</programlisting><para>The GObject type for <link linkend="PangoMatrix"><type>PangoMatrix</type></link></para><para></para></refsect2><refsect2 id="PANGO-MATRIX-INIT:CAPS" role="macro" condition="since:1.6"><title>PANGO_MATRIX_INIT</title><indexterm zone="PANGO-MATRIX-INIT:CAPS" role="1.6"><primary>PANGO_MATRIX_INIT</primary></indexterm><programlisting>#define PANGO_MATRIX_INIT { 1., 0., 0., 1., 0., 0. }</programlisting><para>Constant that can be used to initialize a PangoMatrix tothe identity transform.</para><para><informalexample><programlisting>PangoMatrix matrix = PANGO_MATRIX_INIT;pango_matrix_rotate (&amp;matrix, 45.);</programlisting></informalexample></para><para></para><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-copy" role="function" condition="since:1.6"><title>pango_matrix_copy ()</title><indexterm zone="pango-matrix-copy" role="1.6"><primary>pango_matrix_copy</primary></indexterm><programlisting><link linkend="PangoMatrix">PangoMatrix</link>*        pango_matrix_copy                   (const <link linkend="PangoMatrix">PangoMatrix</link> *matrix);</programlisting><para>Copies a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, may be <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the newly allocated <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, which should              be freed with <link linkend="pango-matrix-free"><function>pango_matrix_free()</function></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if              <parameter>matrix</parameter> was <link linkend="NULL:CAPS"><literal>NULL</literal></link>.</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-free" role="function" condition="since:1.6"><title>pango_matrix_free ()</title><indexterm zone="pango-matrix-free" role="1.6"><primary>pango_matrix_free</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_free                   (<link linkend="PangoMatrix">PangoMatrix</link> *matrix);</programlisting><para>Free a <link linkend="PangoMatrix"><type>PangoMatrix</type></link> created with <link linkend="pango-matrix-copy"><function>pango_matrix_copy()</function></link>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, may be <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-translate" role="function" condition="since:1.6"><title>pango_matrix_translate ()</title><indexterm zone="pango-matrix-translate" role="1.6"><primary>pango_matrix_translate</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_translate              (<link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         <link linkend="double">double</link> tx,                                                         <link linkend="double">double</link> ty);</programlisting><para>Changes the transformation represented by <parameter>matrix</parameter> to be thetransformation given by first translating by (<parameter>tx</parameter>, <parameter>ty</parameter>)then applying the original transformation.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>tx</parameter>&nbsp;:</term><listitem><simpara> amount to translate in the X direction</simpara></listitem></varlistentry><varlistentry><term><parameter>ty</parameter>&nbsp;:</term><listitem><simpara> amount to translate in the Y direction</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-scale" role="function" condition="since:1.6"><title>pango_matrix_scale ()</title><indexterm zone="pango-matrix-scale" role="1.6"><primary>pango_matrix_scale</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_scale                  (<link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         <link linkend="double">double</link> scale_x,                                                         <link linkend="double">double</link> scale_y);</programlisting><para>Changes the transformation represented by <parameter>matrix</parameter> to be thetransformation given by first scaling by <parameter>sx</parameter> in the X directionand <parameter>sy</parameter> in the Y direction then applying the originaltransformation.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>scale_x</parameter>&nbsp;:</term><listitem><simpara> amount to scale by in X direction</simpara></listitem></varlistentry><varlistentry><term><parameter>scale_y</parameter>&nbsp;:</term><listitem><simpara> amount to scale by in Y direction</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-rotate" role="function" condition="since:1.6"><title>pango_matrix_rotate ()</title><indexterm zone="pango-matrix-rotate" role="1.6"><primary>pango_matrix_rotate</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_rotate                 (<link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         <link linkend="double">double</link> degrees);</programlisting><para>Changes the transformation represented by <parameter>matrix</parameter> to be thetransformation given by first rotating by <parameter>degrees</parameter> degreescounter-clockwise then applying the original transformation.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>degrees</parameter>&nbsp;:</term><listitem><simpara> degrees to rotate counter-clockwise</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-concat" role="function" condition="since:1.6"><title>pango_matrix_concat ()</title><indexterm zone="pango-matrix-concat" role="1.6"><primary>pango_matrix_concat</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_concat                 (<link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         const <link linkend="PangoMatrix">PangoMatrix</link> *new_matrix);</programlisting><para>Changes the transformation represented by <parameter>matrix</parameter> to be thetransformation given by first applying transformationgiven by <parameter>new_matrix</parameter> then applying the original transformation.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>new_matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link></simpara></listitem></varlistentry></variablelist><para role="since">Since  1.6</para></refsect2><refsect2 id="pango-matrix-transform-point" role="function" condition="since:1.16"><title>pango_matrix_transform_point ()</title><indexterm zone="pango-matrix-transform-point" role="1.16"><primary>pango_matrix_transform_point</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_transform_point        (const <link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         <link linkend="double">double</link> *x,                                                         <link linkend="double">double</link> *y);</programlisting><para>Transforms the point (<parameter>x</parameter>, <parameter>y</parameter>) by <parameter>matrix</parameter>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter>&nbsp;:</term><listitem><simpara> in/out X position</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter>&nbsp;:</term><listitem><simpara> in/out Y position</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2><refsect2 id="pango-matrix-transform-distance" role="function" condition="since:1.16"><title>pango_matrix_transform_distance ()</title><indexterm zone="pango-matrix-transform-distance" role="1.16"><primary>pango_matrix_transform_distance</primary></indexterm><programlisting><link linkend="void">void</link>                pango_matrix_transform_distance     (const <link linkend="PangoMatrix">PangoMatrix</link> *matrix,                                                         <link linkend="double">double</link> *dx,                                                         <link linkend="double">double</link> *dy);</programlisting><para>Transforms the distance vector (<parameter>dx</parameter>,<parameter>dy</parameter>) by <parameter>matrix</parameter>. This issimilar to <link linkend="pango-matrix-transform-point"><function>pango_matrix_transform_point()</function></link> except that the translationcomponents of the transformation are ignored. The calculation ofthe returned vector is as follows:</para><para><programlisting>dx2 = dx1 * xx + dy1 * xy;dy2 = dx1 * yx + dy1 * yy;</programlisting></para><para>Affine transformations are position invariant, so the same vectoralways transforms to the same vector. If (<parameter>x1</parameter>,<parameter>y1</parameter>) transformsto (<parameter>x2</parameter>,<parameter>y2</parameter>) then (<parameter>x1</parameter>+<parameter>dx1</parameter>,<parameter>y1</parameter>+<parameter>dy1</parameter>) will transform to(<parameter>x1</parameter>+<parameter>dx2</parameter>,<parameter>y1</parameter>+<parameter>dy2</parameter>) for all values of <parameter>x1</parameter> and <parameter>x2</parameter>.</para><para></para><variablelist role="params"><varlistentry><term><parameter>matrix</parameter>&nbsp;:</term><listitem><simpara> a <link linkend="PangoMatrix"><type>PangoMatrix</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link></simpara></listitem></varlistentry><varlistentry><term><parameter>dx</parameter>&nbsp;:</term><listitem><simpara> in/out X component of a distance vector</simpara></listitem></varlistentry><varlistentry><term><parameter>dy</parameter>&nbsp;:</term><listitem><simpara> yn/out Y component of a distance vector</simpara></listitem></varlistentry></variablelist><para role="since">Since  1.16</para></refsect2>

⌨️ 快捷键说明

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