Struct bevy_svg::prelude::FillOptions [−][src]
Parameters for the fill tessellator.
Fields
tolerance: f32
Maximum allowed distance to the path when building an approximation.
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
impl FillOptions
[src]
pub const DEFAULT_TOLERANCE: f32
[src]
Default flattening tolerance.
pub const DEFAULT_FILL_RULE: FillRule
[src]
Default Fill rule.
pub const DEFAULT_SWEEP_ORIENTATION: Orientation
[src]
Default orientation.
pub const DEFAULT: FillOptions
[src]
pub fn even_odd() -> FillOptions
[src]
pub fn tolerance(tolerance: f32) -> FillOptions
[src]
pub fn non_zero() -> FillOptions
[src]
pub fn with_tolerance(self, tolerance: f32) -> FillOptions
[src]
pub fn with_fill_rule(self, rule: FillRule) -> FillOptions
[src]
pub fn with_sweep_orientation(self, orientation: Orientation) -> FillOptions
[src]
pub fn with_intersections(self, intersections: bool) -> FillOptions
[src]
Trait Implementations
impl Clone for FillOptions
[src]
pub fn clone(&self) -> FillOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FillOptions
[src]
impl Debug for FillOptions
[src]
impl Default for FillOptions
[src]
pub fn default() -> FillOptions
[src]
impl PartialEq<FillOptions> for FillOptions
[src]
pub fn eq(&self, other: &FillOptions) -> bool
[src]
pub fn ne(&self, other: &FillOptions) -> bool
[src]
impl StructuralPartialEq for FillOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for FillOptions
impl Send for FillOptions
impl Sync for FillOptions
impl Unpin for FillOptions
impl UnwindSafe for FillOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> Downcast<T> for T
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> FromWorld for T where
T: Default,
T: Default,
pub fn from_world(_world: &mut World) -> T
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
[src]
T: Default + PartialEq<T> + Copy,
pub fn is_default(&self) -> bool
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
T: 'static + Send + Sync + Clone,
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
impl<T> Upcast<T> for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,