Package: cairo

Function cairo:fill-rule

Lambda List

cairo:fill-rule (cr)

Syntax

(cairo:fill-rule cr) => rule
(setf (cairo:fill-rule cr) rule)

Arguments

cr -- a cairo:context-t instance
rule -- a cairo:fill-rule-t value for the fill rule

Details

The cairo:fill-rule function gets the current fill rule within the Cairo context. The (setf cairo:fill-rule) function sets the current fill rule.

The fill rule is used to determine which regions are inside or outside a complex, potentially self-intersecting, path. The current fill rule affects both the cairo:fill and cairo:clip functions. See the cairo:fill-rule-t enumeration for details on the semantics of each available fill rule.

The default fill rule is the :winding value.
 

See also

2025-1-2