?? pango-cairo-rendering.html
字號:
<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 <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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229124"></a><h3><a name="pango-cairo-show-glyph-string"></a>pango_cairo_show_glyph_string ()</h3><a class="indexterm" name="id3229140"></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> from a <a href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229273"></a><h3><a name="pango-cairo-show-layout-line"></a>pango_cairo_show_layout_line ()</h3><a class="indexterm" name="id3229289"></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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229386"></a><h3><a name="pango-cairo-show-layout"></a>pango_cairo_show_layout ()</h3><a class="indexterm" name="id3229402"></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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229499"></a><h3><a name="pango-cairo-show-error-underline"></a>pango_cairo_show_error_underline ()</h3><a class="indexterm" name="id3229515"></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 class="since">Since 1.14</p></div><hr><div class="refsect2" lang="en"><a name="id3229665"></a><h3><a name="pango-cairo-glyph-string-path"></a>pango_cairo_glyph_string_path ()</h3><a class="indexterm" name="id3229681"></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> from a <a href="pango-Cairo-Rendering.html#PangoCairoFontMap"><span class="type">PangoCairoFontMap</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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229814"></a><h3><a name="pango-cairo-layout-line-path"></a>pango_cairo_layout_line_path ()</h3><a class="indexterm" name="id3229830"></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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3229928"></a><h3><a name="pango-cairo-layout-path"></a>pango_cairo_layout_path ()</h3><a class="indexterm" name="id3229944"></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 class="since">Since 1.10</p></div><hr><div class="refsect2" lang="en"><a name="id3230041"></a><h3><a name="pango-cairo-error-underline-path"></a>pango_cairo_error_underline_path ()</h3><a class="indexterm" name="id3230057"></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 class="since">Since 1.14</p></div></div></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -