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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for TessellationOptions
impl Send for TessellationOptions
impl Sync for TessellationOptions
impl Unpin for TessellationOptions
impl UnwindSafe for TessellationOptions
Blanket Implementations
Mutably borrows from an owned value. Read more