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: f32Size of a point in pixels, e.g. 2.0. Used to snap text to pixel boundaries.
aa_size: f32Size of a pixel in points, e.g. 0.5, or larger if you want more blurry edges.
anti_alias: boolAnti-aliasing makes shapes appear smoother, but requires more triangles and is therefore slower. By default this is enabled in release builds and disabled in debug builds.
coarse_tessellation_culling: boolIf true (default) cull certain primitives before tessellating them
debug_paint_clip_rects: boolOutput the clip rectangles to be painted?
debug_paint_text_rects: boolOutput the text-containing rectangles
debug_ignore_clip_rects: boolIf true, no clipping will be done
Implementations§
Source§impl TessellationOptions
impl TessellationOptions
pub fn round_to_pixel(&self, point: f32) -> f32
Trait Implementations§
Source§impl Clone for TessellationOptions
impl Clone for TessellationOptions
Source§fn clone(&self) -> TessellationOptions
fn clone(&self) -> TessellationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TessellationOptions
impl Debug for TessellationOptions
Source§impl Default for TessellationOptions
impl Default for TessellationOptions
Source§fn default() -> TessellationOptions
fn default() -> TessellationOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for TessellationOptions
impl PartialEq for TessellationOptions
Source§impl Widget for &mut TessellationOptions
impl Widget for &mut TessellationOptions
impl Copy for TessellationOptions
impl StructuralPartialEq for TessellationOptions
Auto Trait Implementations§
impl Freeze for TessellationOptions
impl RefUnwindSafe for TessellationOptions
impl Send for TessellationOptions
impl Sync for TessellationOptions
impl Unpin for TessellationOptions
impl UnwindSafe for TessellationOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more