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, }
Tessellation quality options
Fields
pixels_per_point: f32
Size of a point in pixels, e.g. 2.0. Used to snap text to pixel boundaries.
aa_size: f32
Size of a pixel in points, e.g. 0.5, or larger if you want more blurry edges.
anti_alias: bool
Anti-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: bool
If true
(default) cull certain primitives before tessellating them
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
impl TessellationOptions
[src]
impl TessellationOptions
[src]pub fn round_to_pixel(&self, point: f32) -> f32
[src]
Trait Implementations
impl Clone for TessellationOptions
[src]
impl Clone for TessellationOptions
[src]fn clone(&self) -> TessellationOptions
[src]
fn clone(&self) -> TessellationOptions
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TessellationOptions
[src]
impl Debug for TessellationOptions
[src]impl Default for TessellationOptions
[src]
impl Default for TessellationOptions
[src]impl Copy for TessellationOptions
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more