Struct ggez::graphics::FillOptions[]

pub struct FillOptions {
    pub tolerance: f32,
    pub fill_rule: FillRule,
    pub sweep_orientation: Orientation,
    pub handle_intersections: bool,
    // some fields omitted
}
Expand description

Parameters for the fill tessellator.

Fields

tolerance: f32

Maximum allowed distance to the path when building an approximation.

See Flattening and tolerance.

Default value: FillOptions::DEFAULT_TOLERANCE.

fill_rule: FillRule

Set the fill rule.

See the SVG specification. Currently, only the EvenOdd rule is implemented.

Default value: EvenOdd.

sweep_orientation: Orientation

Whether to perform a vertical or horizontal traversal of the geometry.

Default value: Vertical.

handle_intersections: bool

A fast path to avoid some expensive operations if the path is known to not have any self-intersections.

Do not set this to false if the path may have intersecting edges else the tessellator may panic or produce incorrect results. In doubt, do not change the default value.

Default value: true.

Implementations

Default flattening tolerance.

Default Fill rule.

Default orientation.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.