summaryrefslogtreecommitdiff
path: root/doc/reference/xml/cairo_fill_rule_t.xml
blob: 9f1fbe3ee49858a1c5bfb600b0264f80bdf1e041 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<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>