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

📄 pango-glyph-storage.html

📁 GTK+-2.0源码之pango-1.15.6.tar.gz
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</pre></div><p></p><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771258"></a><h3><a name="pango-matrix-copy"></a>pango_matrix_copy ()</h3><a class="indexterm" name="id2771273"></a><pre class="programlisting"><a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a>* pango_matrix_copy              (const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix);</pre><p>Copies a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, can be <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td><td> the newly allocated <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, which should              be freed with <a href="pango-Glyph-Storage.html#pango-matrix-free"><code class="function">pango_matrix_free()</code></a>, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if              <em class="parameter"><code>matrix</code></em> was <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771409"></a><h3><a name="pango-matrix-free"></a>pango_matrix_free ()</h3><a class="indexterm" name="id2771424"></a><pre class="programlisting">void        pango_matrix_free               (<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix);</pre><p>Free a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a> created with <a href="pango-Glyph-Storage.html#pango-matrix-copy"><code class="function">pango_matrix_copy()</code></a>.Does nothing if <em class="parameter"><code>matrix</code></em> is <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771531"></a><h3><a name="pango-matrix-translate"></a>pango_matrix_translate ()</h3><a class="indexterm" name="id2771546"></a><pre class="programlisting">void        pango_matrix_translate          (<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             double tx,                                             double ty);</pre><p>Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be thetransformation given by first translating by (<em class="parameter"><code>tx</code></em>, <em class="parameter"><code>ty</code></em>)then applying the original transformation.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>tx</code></em>&#160;:</span></td><td> amount to translate in the X direction</td></tr><tr><td><span class="term"><em class="parameter"><code>ty</code></em>&#160;:</span></td><td> amount to translate in the Y direction</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771670"></a><h3><a name="pango-matrix-scale"></a>pango_matrix_scale ()</h3><a class="indexterm" name="id2771686"></a><pre class="programlisting">void        pango_matrix_scale              (<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             double scale_x,                                             double scale_y);</pre><p>Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be thetransformation given by first scaling by <em class="parameter"><code>sx</code></em> in the X directionand <em class="parameter"><code>sy</code></em> in the Y direction then applying the originaltransformation.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>scale_x</code></em>&#160;:</span></td><td> amount to scale by in X direction</td></tr><tr><td><span class="term"><em class="parameter"><code>scale_y</code></em>&#160;:</span></td><td> amount to scale by in Y direction</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771811"></a><h3><a name="pango-matrix-rotate"></a>pango_matrix_rotate ()</h3><a class="indexterm" name="id2771826"></a><pre class="programlisting">void        pango_matrix_rotate             (<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             double degrees);</pre><p>Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be thetransformation given by first rotating by <em class="parameter"><code>degrees</code></em> degreescounter-clockwise then applying the original transformation.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>degrees</code></em>&#160;:</span></td><td> degrees to rotate counter-clockwise</td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2771924"></a><h3><a name="pango-matrix-concat"></a>pango_matrix_concat ()</h3><a class="indexterm" name="id2771940"></a><pre class="programlisting">void        pango_matrix_concat             (<a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *new_matrix);</pre><p>Changes the transformation represented by <em class="parameter"><code>matrix</code></em> to be thetransformation given by first applying transformationgiven by <em class="parameter"><code>new_matrix</code></em> then applying the original transformation.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>new_matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a></td></tr></tbody></table></div><p>Since  1.6</p></div><hr><div class="refsect2" lang="en"><a name="id2772044"></a><h3><a name="pango-matrix-transform-point"></a>pango_matrix_transform_point ()</h3><a class="indexterm" name="id2772059"></a><pre class="programlisting">void        pango_matrix_transform_point    (const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             double *x,                                             double *y);</pre><p>Transforms the point (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) by <em class="parameter"><code>matrix</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td><td> in/out X position</td></tr><tr><td><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td><td> in/out Y position</td></tr></tbody></table></div><p>Since  1.16</p></div><hr><div class="refsect2" lang="en"><a name="id2772192"></a><h3><a name="pango-matrix-transform-distance"></a>pango_matrix_transform_distance ()</h3><a class="indexterm" name="id2772207"></a><pre class="programlisting">void        pango_matrix_transform_distance (const <a href="pango-Glyph-Storage.html#PangoMatrix">PangoMatrix</a> *matrix,                                             double *dx,                                             double *dy);</pre><p>Transforms the distance vector (<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>) by <em class="parameter"><code>matrix</code></em>. This issimilar to <a href="pango-Glyph-Storage.html#pango-matrix-transform-point"><code class="function">pango_matrix_transform_point()</code></a> except that the translationcomponents of the transformation are ignored. The calculation ofthe returned vector is as follows:</p><p></p><pre class="programlisting">dx2 = dx1 * xx + dy1 * xy;dy2 = dx1 * yx + dy1 * yy;</pre><p></p><p>Affine transformations are position invariant, so the same vectoralways transforms to the same vector. If (<em class="parameter"><code>x1</code></em>,<em class="parameter"><code>y1</code></em>) transformsto (<em class="parameter"><code>x2</code></em>,<em class="parameter"><code>y2</code></em>) then (<em class="parameter"><code>x1</code></em>+<em class="parameter"><code>dx1</code></em>,<em class="parameter"><code>y1</code></em>+<em class="parameter"><code>dy1</code></em>) will transform to(<em class="parameter"><code>x1</code></em>+<em class="parameter"><code>dx2</code></em>,<em class="parameter"><code>y1</code></em>+<em class="parameter"><code>dy2</code></em>) for all values of <em class="parameter"><code>x1</code></em> and <em class="parameter"><code>x2</code></em>.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>matrix</code></em>&#160;:</span></td><td> a <a href="pango-Glyph-Storage.html#PangoMatrix"><span class="type">PangoMatrix</span></a>, or <ahref="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></td></tr><tr><td><span class="term"><em class="parameter"><code>dx</code></em>&#160;:</span></td><td> in/out X component of a distance vector</td></tr><tr>

⌨️ 快捷键说明

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