Back to Seed Clases

Cogl


Classes

Interfaces

Structs

Unions

Enums

Enum Cogl.PathFillRule

Import line: Cogl = imports.gi.Cogl;
GIR File: Cogl-1.0.gir
C documentation: CoglPathFillRule
Enum : PathFillRule
CoglPathFillRule is used to determine how a path is filled. There
are two options - 'non-zero' and 'even-odd'. To work out whether any
point will be filled imagine drawing an infinetely long line in any
direction from that point. The number of times and the direction
that the edges of the path crosses this line determines whether the
line is filled as described below. Any open sub paths are treated
as if there was an extra line joining the first point and the last
point.
The default fill rule is COGL_PATH_FILL_RULE_EVEN_ODD. The fill
rule is attached to the current path so preserving a path with
cogl_get_path() also preserves the fill rule. Calling
cogl_path_new() resets the current fill rule to the default.

Example of filling various paths using the non-zero rule



Example of filling various paths using the even-odd rule

Values
Properties
Properties
None
Public Methods
None
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Cogl
Method
Cogl.path_get_fill_rule () : Cogl.PathFillRule
Cogl
Method
Cogl.path_set_fill_rule (PathFillRule fill_rule) : none
Sets the fill rule of the current path to fill_rule.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:09:58 GMT+0800 (HKT)