📄 pango-cairo-rendering.html
字号:
</tr><tr><td><span class="term"><em class="parameter"><code>layout</code></em> :</span></td><td> a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>, from <a href="pango-Cairo-Rendering.html#pango-cairo-create-layout"><code class="function">pango_cairo_create_layout()</code></a></td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2895439"></a><h3><a name="pango-cairo-show-glyph-string"></a>pango_cairo_show_glyph_string ()</h3><a class="indexterm" name="id2895455"></a><pre class="programlisting">void pango_cairo_show_glyph_string (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Fonts.html#PangoFont">PangoFont</a> *font, <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs);</pre><p>Draws the glyphs in <em class="parameter"><code>glyphs</code></em> in the specified cairo context.The origin of the glyphs (the left edge of the baseline) willbe drawn at the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>font</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td><td> a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2895577"></a><h3><a name="pango-cairo-show-layout-line"></a>pango_cairo_show_layout_line ()</h3><a class="indexterm" name="id2895592"></a><pre class="programlisting">void pango_cairo_show_layout_line (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line);</pre><p>Draws a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.The origin of the glyphs (the left edge of the line) willbe drawn at the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>line</code></em> :</span></td><td> a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a></td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2895687"></a><h3><a name="pango-cairo-show-layout"></a>pango_cairo_show_layout ()</h3><a class="indexterm" name="id2895702"></a><pre class="programlisting">void pango_cairo_show_layout (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout);</pre><p>Draws a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> in the specified cairo context.The top-left corner of the <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> will be drawnat the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>layout</code></em> :</span></td><td> a Pango layout</td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2895796"></a><h3><a name="pango-cairo-show-error-underline"></a>pango_cairo_show_error_underline ()</h3><a class="indexterm" name="id2895812"></a><pre class="programlisting">void pango_cairo_show_error_underline (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, double x, double y, double width, double height);</pre><p>Draw a squiggly line in the specified cairo context that approximatelycovers the given rectangle in the style of an underline used to indicate aspelling error. (The width of the underline is rounded to an integernumber of up/down segments and the resulting rectangle is centered in theoriginal rectangle)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>x</code></em> :</span></td><td> The X coordinate of one corner of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>y</code></em> :</span></td><td> The Y coordinate of one corner of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>width</code></em> :</span></td><td> Non-negative width of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>height</code></em> :</span></td><td> Non-negative height of the rectangle</td></tr></tbody></table></div><p>Since 1.14</p></div><hr><div class="refsect2" lang="en"><a name="id2895960"></a><h3><a name="pango-cairo-glyph-string-path"></a>pango_cairo_glyph_string_path ()</h3><a class="indexterm" name="id2895976"></a><pre class="programlisting">void pango_cairo_glyph_string_path (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Fonts.html#PangoFont">PangoFont</a> *font, <a href="pango-Glyph-Storage.html#PangoGlyphString">PangoGlyphString</a> *glyphs);</pre><p>Adds the glyphs in <em class="parameter"><code>glyphs</code></em> to the current path in the specifiedcairo context. The origin of the glyphs (the left edge of the baseline)will be at the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>font</code></em> :</span></td><td> a <a href="pango-Fonts.html#PangoFont"><span class="type">PangoFont</span></a></td></tr><tr><td><span class="term"><em class="parameter"><code>glyphs</code></em> :</span></td><td> a <a href="pango-Glyph-Storage.html#PangoGlyphString"><span class="type">PangoGlyphString</span></a></td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2896098"></a><h3><a name="pango-cairo-layout-line-path"></a>pango_cairo_layout_line_path ()</h3><a class="indexterm" name="id2896114"></a><pre class="programlisting">void pango_cairo_layout_line_path (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Layout-Objects.html#PangoLayoutLine">PangoLayoutLine</a> *line);</pre><p>Adds the text in <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a> to the current path in thespecified cairo context. The origin of the glyphs (the left edgeof the line) will be at the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>line</code></em> :</span></td><td> a <a href="pango-Layout-Objects.html#PangoLayoutLine"><span class="type">PangoLayoutLine</span></a></td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2896209"></a><h3><a name="pango-cairo-layout-path"></a>pango_cairo_layout_path ()</h3><a class="indexterm" name="id2896225"></a><pre class="programlisting">void pango_cairo_layout_path (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, <a href="pango-Layout-Objects.html#PangoLayout">PangoLayout</a> *layout);</pre><p>Adds the text in a <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to the current path in thespecified cairo context. The top-left corner of the <a href="pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a>will be at the current point of the cairo context.</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>layout</code></em> :</span></td><td> a Pango layout</td></tr></tbody></table></div><p>Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id2896319"></a><h3><a name="pango-cairo-error-underline-path"></a>pango_cairo_error_underline_path ()</h3><a class="indexterm" name="id2896335"></a><pre class="programlisting">void pango_cairo_error_underline_path (<ahref="../cairo/cairo-cairo-t.html#cairo-t">cairo_t</a> *cr, double x, double y, double width, double height);</pre><p>Add a squiggly line to the current path in the specified cairo context thatapproximately covers the given rectangle in the style of an underline usedto indicate a spelling error. (The width of the underline is rounded to aninteger number of up/down segments and the resulting rectangle is centeredin the original rectangle)</p><p></p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><em class="parameter"><code>cr</code></em> :</span></td><td> a Cairo context</td></tr><tr><td><span class="term"><em class="parameter"><code>x</code></em> :</span></td><td> The X coordinate of one corner of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>y</code></em> :</span></td><td> The Y coordinate of one corner of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>width</code></em> :</span></td><td> Non-negative width of the rectangle</td></tr><tr><td><span class="term"><em class="parameter"><code>height</code></em> :</span></td><td> Non-negative height of the rectangle</td></tr></tbody></table></div><p>Since 1.14</p></div></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -