📄 pangocairo.xml
字号:
<para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the newly created <link linkend="PangoLayout"><type>PangoLayout</type></link>. Free with <link linkend="g-object-unref"><function>g_object_unref()</function></link>.</simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-update-layout" role="function" condition="since:1.10"/>pango_cairo_update_layout ()</title><indexterm role="1.10"><primary>pango_cairo_update_layout</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_update_layout (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Updates the private <link linkend="PangoContext"><type>PangoContext</type></link> of a <link linkend="PangoLayout"><type>PangoLayout</type></link> created with<link linkend="pango-cairo-create-layout"><function>pango_cairo_create_layout()</function></link> to match the current transformationand target surface of a Cairo context.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a <link linkend="PangoLayout"><type>PangoLayout</type></link>, from <link linkend="pango-cairo-create-layout"><function>pango_cairo_create_layout()</function></link></simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-show-glyph-string" role="function" condition="since:1.10"/>pango_cairo_show_glyph_string ()</title><indexterm role="1.10"><primary>pango_cairo_show_glyph_string</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_show_glyph_string (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoFont">PangoFont</link> *font, <link linkend="PangoGlyphString">PangoGlyphString</link> *glyphs);</programlisting><para>Draws the glyphs in <parameter>glyphs</parameter> 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.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter> :</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-show-layout-line" role="function" condition="since:1.10"/>pango_cairo_show_layout_line ()</title><indexterm role="1.10"><primary>pango_cairo_show_layout_line</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_show_layout_line (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoLayoutLine">PangoLayoutLine</link> *line);</programlisting><para>Draws a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link> 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.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>line</parameter> :</term><listitem><simpara> a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-show-layout" role="function" condition="since:1.10"/>pango_cairo_show_layout ()</title><indexterm role="1.10"><primary>pango_cairo_show_layout</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_show_layout (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Draws a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link> in the specified cairo context.The top-left corner of the <link linkend="PangoLayout"><type>PangoLayout</type></link> will be drawnat the current point of the cairo context.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a Pango layout</simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-show-error-underline" role="function" condition="since:1.14"/>pango_cairo_show_error_underline ()</title><indexterm role="1.14"><primary>pango_cairo_show_error_underline</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_show_error_underline (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="double">double</link> x, <link linkend="double">double</link> y, <link linkend="double">double</link> width, <link linkend="double">double</link> height);</programlisting><para>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)</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> The X coordinate of one corner of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> The Y coordinate of one corner of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>width</parameter> :</term><listitem><simpara> Non-negative width of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>height</parameter> :</term><listitem><simpara> Non-negative height of the rectangle</simpara></listitem></varlistentry></variablelist><para>Since 1.14</para></refsect2><refsect2><title><anchor id="pango-cairo-glyph-string-path" role="function" condition="since:1.10"/>pango_cairo_glyph_string_path ()</title><indexterm role="1.10"><primary>pango_cairo_glyph_string_path</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_glyph_string_path (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoFont">PangoFont</link> *font, <link linkend="PangoGlyphString">PangoGlyphString</link> *glyphs);</programlisting><para>Adds the glyphs in <parameter>glyphs</parameter> 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.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>font</parameter> :</term><listitem><simpara> a <link linkend="PangoFont"><type>PangoFont</type></link></simpara></listitem></varlistentry><varlistentry><term><parameter>glyphs</parameter> :</term><listitem><simpara> a <link linkend="PangoGlyphString"><type>PangoGlyphString</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-layout-line-path" role="function" condition="since:1.10"/>pango_cairo_layout_line_path ()</title><indexterm role="1.10"><primary>pango_cairo_layout_line_path</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_layout_line_path (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoLayoutLine">PangoLayoutLine</link> *line);</programlisting><para>Adds the text in <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link> 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.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>line</parameter> :</term><listitem><simpara> a <link linkend="PangoLayoutLine"><type>PangoLayoutLine</type></link></simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-layout-path" role="function" condition="since:1.10"/>pango_cairo_layout_path ()</title><indexterm role="1.10"><primary>pango_cairo_layout_path</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_layout_path (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="PangoLayout">PangoLayout</link> *layout);</programlisting><para>Adds the text in a <link linkend="PangoLayout"><type>PangoLayout</type></link> to the current path in thespecified cairo context. The top-left corner of the <link linkend="PangoLayout"><type>PangoLayout</type></link>will be at the current point of the cairo context.</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>layout</parameter> :</term><listitem><simpara> a Pango layout</simpara></listitem></varlistentry></variablelist><para>Since 1.10</para></refsect2><refsect2><title><anchor id="pango-cairo-error-underline-path" role="function" condition="since:1.14"/>pango_cairo_error_underline_path ()</title><indexterm role="1.14"><primary>pango_cairo_error_underline_path</primary></indexterm><programlisting><link linkend="void">void</link> pango_cairo_error_underline_path (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="double">double</link> x, <link linkend="double">double</link> y, <link linkend="double">double</link> width, <link linkend="double">double</link> height);</programlisting><para>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)</para><para></para><variablelist role="params"><varlistentry><term><parameter>cr</parameter> :</term><listitem><simpara> a Cairo context</simpara></listitem></varlistentry><varlistentry><term><parameter>x</parameter> :</term><listitem><simpara> The X coordinate of one corner of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>y</parameter> :</term><listitem><simpara> The Y coordinate of one corner of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>width</parameter> :</term><listitem><simpara> Non-negative width of the rectangle</simpara></listitem></varlistentry><varlistentry><term><parameter>height</parameter> :</term><listitem><simpara> Non-negative height of the rectangle</simpara></listitem></varlistentry></variablelist><para>Since 1.14</para></refsect2></refsect1></refentry>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -