pub struct FillRule(/* private fields */);
Expand description
Specifies which method should be used to fill the paths and polygons.
C++ enum: Qt::FillRule
.
Specifies which method should be used to fill the paths and polygons.
Implementations§
source§impl FillRule
impl FillRule
sourcepub const OddEvenFill: FillRule = _
pub const OddEvenFill: FillRule = _
Specifies that the region is filled using the odd even fill rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. This mode is the default. (C++ enum variant: OddEvenFill = 0
)
sourcepub const WindingFill: FillRule = _
pub const WindingFill: FillRule = _
Specifies that the region is filled using the non zero winding rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This fill mode can also in most cases be considered as the intersection of closed shapes. (C++ enum variant: WindingFill = 1
)