📄 cairo.xml
字号:
<refsect2><title><anchor id="cairo-get-target" role="function"/>cairo_get_target ()</title><indexterm><primary>cairo_get_target</primary></indexterm><programlisting><link linkend="cairo-surface-t">cairo_surface_t</link>* cairo_get_target (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting></refsect2><refsect2><title><anchor id="cairo-push-group" role="function" condition="since:1.2"/>cairo_push_group ()</title><indexterm role="1.2"><primary>cairo_push_group</primary></indexterm><programlisting><link linkend="void">void</link> cairo_push_group (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting><para>Since 1.2</para></refsect2><refsect2><title><anchor id="cairo-push-group-with-content" role="function" condition="since:1.2"/>cairo_push_group_with_content ()</title><indexterm role="1.2"><primary>cairo_push_group_with_content</primary></indexterm><programlisting><link linkend="void">void</link> cairo_push_group_with_content (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="cairo-content-t">cairo_content_t</link> content);</programlisting><para>Since 1.2</para></refsect2><refsect2><title><anchor id="cairo-pop-group" role="function" condition="since:1.2"/>cairo_pop_group ()</title><indexterm role="1.2"><primary>cairo_pop_group</primary></indexterm><programlisting><link linkend="cairo-pattern-t">cairo_pattern_t</link>* cairo_pop_group (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting><para>Since 1.2</para></refsect2><refsect2><title><anchor id="cairo-pop-group-to-source" role="function" condition="since:1.2"/>cairo_pop_group_to_source ()</title><indexterm role="1.2"><primary>cairo_pop_group_to_source</primary></indexterm><programlisting><link linkend="void">void</link> cairo_pop_group_to_source (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting><para>Since 1.2</para></refsect2><refsect2><title><anchor id="cairo-get-group-target" role="function" condition="since:1.2"/>cairo_get_group_target ()</title><indexterm role="1.2"><primary>cairo_get_group_target</primary></indexterm><programlisting><link linkend="cairo-surface-t">cairo_surface_t</link>* cairo_get_group_target (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting><para>Since 1.2</para></refsect2><refsect2><title><anchor id="cairo-set-source-rgb" role="function"/>cairo_set_source_rgb ()</title><indexterm><primary>cairo_set_source_rgb</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_source_rgb (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="double">double</link> red, <link linkend="double">double</link> green, <link linkend="double">double</link> blue);</programlisting></refsect2><refsect2><title><anchor id="cairo-set-source-rgba" role="function"/>cairo_set_source_rgba ()</title><indexterm><primary>cairo_set_source_rgba</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_source_rgba (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="double">double</link> red, <link linkend="double">double</link> green, <link linkend="double">double</link> blue, <link linkend="double">double</link> alpha);</programlisting></refsect2><refsect2><title><anchor id="cairo-set-source" role="function"/>cairo_set_source ()</title><indexterm><primary>cairo_set_source</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_source (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="cairo-pattern-t">cairo_pattern_t</link> *source);</programlisting></refsect2><refsect2><title><anchor id="cairo-set-source-surface" role="function"/>cairo_set_source_surface ()</title><indexterm><primary>cairo_set_source_surface</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_source_surface (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="cairo-surface-t">cairo_surface_t</link> *surface, <link linkend="double">double</link> x, <link linkend="double">double</link> y);</programlisting></refsect2><refsect2><title><anchor id="cairo-get-source" role="function"/>cairo_get_source ()</title><indexterm><primary>cairo_get_source</primary></indexterm><programlisting><link linkend="cairo-pattern-t">cairo_pattern_t</link>* cairo_get_source (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting></refsect2><refsect2><title><anchor id="cairo-antialias-t" role="enum"/>enum cairo_antialias_t</title><indexterm><primary>cairo_antialias_t</primary></indexterm><programlisting>typedef enum _cairo_antialias { CAIRO_ANTIALIAS_DEFAULT, CAIRO_ANTIALIAS_NONE, CAIRO_ANTIALIAS_GRAY, CAIRO_ANTIALIAS_SUBPIXEL} cairo_antialias_t;</programlisting><para>Specifies the type of antialiasing to do when rendering text or shapes.</para><para></para><variablelist role="enum"><varlistentry><term><anchor id="CAIRO-ANTIALIAS-DEFAULT:CAPS" role="constant"/><literal>CAIRO_ANTIALIAS_DEFAULT</literal></term><listitem><simpara> Use the default antialiasing for the subsystem and target device</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-ANTIALIAS-NONE:CAPS" role="constant"/><literal>CAIRO_ANTIALIAS_NONE</literal></term><listitem><simpara> Use a bilevel alpha mask</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-ANTIALIAS-GRAY:CAPS" role="constant"/><literal>CAIRO_ANTIALIAS_GRAY</literal></term><listitem><simpara> Perform single-color antialiasing (using shades of gray for black text on a white background, for example).</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-ANTIALIAS-SUBPIXEL:CAPS" role="constant"/><literal>CAIRO_ANTIALIAS_SUBPIXEL</literal></term><listitem><simpara> Perform antialiasing by taking advantage of the order of subpixel elements on devices such as LCD panels</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="cairo-set-antialias" role="function"/>cairo_set_antialias ()</title><indexterm><primary>cairo_set_antialias</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_antialias (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="cairo-antialias-t">cairo_antialias_t</link> antialias);</programlisting></refsect2><refsect2><title><anchor id="cairo-get-antialias" role="function"/>cairo_get_antialias ()</title><indexterm><primary>cairo_get_antialias</primary></indexterm><programlisting><link linkend="cairo-antialias-t">cairo_antialias_t</link> cairo_get_antialias (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting></refsect2><refsect2><title><anchor id="cairo-set-dash" role="function"/>cairo_set_dash ()</title><indexterm><primary>cairo_set_dash</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_dash (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="double">double</link> *dashes, <link linkend="int">int</link> num_dashes, <link linkend="double">double</link> offset);</programlisting></refsect2><refsect2><title><anchor id="cairo-fill-rule-t" role="enum"/>enum cairo_fill_rule_t</title><indexterm><primary>cairo_fill_rule_t</primary></indexterm><programlisting>typedef enum _cairo_fill_rule { CAIRO_FILL_RULE_WINDING, CAIRO_FILL_RULE_EVEN_ODD} cairo_fill_rule_t;</programlisting><para><link linkend="cairo-fill-rule-t"><type>cairo_fill_rule_t</type></link> is used to select how paths are filled. For bothfill rules, whether or not a point is included in the fill isdetermined by taking a ray from that point to infinity and lookingat intersections with the path. The ray can be in any direction,as long as it doesn't pass through the end point of a segmentor have a tricky intersection such as intersecting tangent to the path.(Note that filling is not actually implemented in this way. Thisis just a description of the rule that is applied.)</para><para></para><variablelist role="enum"><varlistentry><term><anchor id="CAIRO-FILL-RULE-WINDING:CAPS" role="constant"/><literal>CAIRO_FILL_RULE_WINDING</literal></term><listitem><simpara> If the path crosses the ray fromleft-to-right, counts +1. If the path crosses the rayfrom right to left, counts -1. (Left and right are determinedfrom the perspective of looking along the ray from the startingpoint.) If the total count is non-zero, the point will be filled.</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-FILL-RULE-EVEN-ODD:CAPS" role="constant"/><literal>CAIRO_FILL_RULE_EVEN_ODD</literal></term><listitem><simpara> Counts the total number ofintersections, without regard to the orientation of the contour. Ifthe total number of intersections is odd, the point will befilled.</simpara></listitem></varlistentry></variablelist></refsect2><refsect2><title><anchor id="cairo-set-fill-rule" role="function"/>cairo_set_fill_rule ()</title><indexterm><primary>cairo_set_fill_rule</primary></indexterm><programlisting><link linkend="void">void</link> cairo_set_fill_rule (<link linkend="cairo-t">cairo_t</link> *cr, <link linkend="cairo-fill-rule-t">cairo_fill_rule_t</link> fill_rule);</programlisting></refsect2><refsect2><title><anchor id="cairo-get-fill-rule" role="function"/>cairo_get_fill_rule ()</title><indexterm><primary>cairo_get_fill_rule</primary></indexterm><programlisting><link linkend="cairo-fill-rule-t">cairo_fill_rule_t</link> cairo_get_fill_rule (<link linkend="cairo-t">cairo_t</link> *cr);</programlisting></refsect2><refsect2><title><anchor id="cairo-line-cap-t" role="enum"/>enum cairo_line_cap_t</title><indexterm><primary>cairo_line_cap_t</primary></indexterm><programlisting>typedef enum _cairo_line_cap { CAIRO_LINE_CAP_BUTT, CAIRO_LINE_CAP_ROUND, CAIRO_LINE_CAP_SQUARE} cairo_line_cap_t;</programlisting><para>enumeration for style of line-endings</para><para></para><variablelist role="enum"><varlistentry><term><anchor id="CAIRO-LINE-CAP-BUTT:CAPS" role="constant"/><literal>CAIRO_LINE_CAP_BUTT</literal></term><listitem><simpara> start(stop) the line exactly at the start(end) point</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-LINE-CAP-ROUND:CAPS" role="constant"/><literal>CAIRO_LINE_CAP_ROUND</literal></term><listitem><simpara> use a round ending, the center of the circle is the end point</simpara></listitem></varlistentry><varlistentry><term><anchor id="CAIRO-LINE-CAP-SQUARE:CAPS" role="constant"/><literal>CAIRO_LINE_CAP_SQUARE</literal></term>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -