Struct epaint::tessellator::TessellationOptions[][src]

pub struct TessellationOptions {
    pub pixels_per_point: f32,
    pub aa_size: f32,
    pub anti_alias: bool,
    pub coarse_tessellation_culling: bool,
    pub debug_paint_clip_rects: bool,
    pub debug_paint_text_rects: bool,
    pub debug_ignore_clip_rects: bool,
}
Expand description

Tessellation quality options

Fields

pixels_per_point: f32

Size of a point in pixels (DPI scaling), e.g. 2.0. Used to snap text to pixel boundaries.

aa_size: f32

The size of a pixel (in points), used for anti-aliasing (smoothing of edges). This is normally the inverse of Self::pixels_per_point, but you can make it larger if you want more blurry edges.

anti_alias: bool

Anti-aliasing makes shapes appear smoother, but requires more triangles and is therefore slower. This setting does not affect text. Default: true.

coarse_tessellation_culling: bool

If true (default) cull certain primitives before tessellating them. This likely makes

debug_paint_clip_rects: bool

Output the clip rectangles to be painted.

debug_paint_text_rects: bool

Output the text-containing rectangles.

debug_ignore_clip_rects: bool

If true, no clipping will be done.

Implementations

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

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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 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.