mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-07 17:10:28 +01:00
40 lines
1.2 KiB
XML
40 lines
1.2 KiB
XML
<refentry id="cairo_fill_rule_t">
|
|
<refmeta>
|
|
<refentrytitle>cairo_fill_rule_t</refentrytitle>
|
|
<manvolnum>3</manvolnum>
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
<refname>cairo_fill_rule_t</refname>
|
|
<refpurpose>enumeration for fill rules</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<indexterm><primary>enums</primary>
|
|
<secondary>cairo_fill_rule_t</secondary></indexterm>
|
|
<programlisting>typedef enum cairo_fill_rule {
|
|
CAIRO_FILL_RULE_WINDING,
|
|
CAIRO_FILL_RULE_EVEN_ODD
|
|
} cairo_fill_rule_t;
|
|
</programlisting>
|
|
<para>
|
|
Select ways to fill paths.
|
|
</para>
|
|
<variablelist role="enum">
|
|
<varlistentry>
|
|
<term><literal>CAIRO_FILL_RULE_WINDING</literal></term>
|
|
<listitem><simpara>counts all intersections with a clockwise line positive and intersections with a counter-clockwise line negative. All areas with a non-zero counts are filled.
|
|
</simpara></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><literal>CAIRO_FILL_RULE_EVEN_ODD</literal></term>
|
|
<listitem><simpara>Only the area from one intersection to the next will be filled, no matter what orientation the intersected line has.
|
|
</simpara></listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
|
|
|