Skip to main content

ScaleTransformStrokeExt

Trait ScaleTransformStrokeExt 

Source
pub trait ScaleTransformStrokeExt: ScaleTransform + StrokeWidth {
    // Provided methods
    fn scale_with_stroke(&mut self, scale: DVec3) -> &mut Self { ... }
    fn scale_to_with_stroke(&mut self, hint: ScaleHint) -> &mut Self
       where Self: Aabb { ... }
}
Expand description

A trait for scaling operations with stroke width.

Provided Methods§

Source

fn scale_with_stroke(&mut self, scale: DVec3) -> &mut Self

Scale the item with stroke width (at origin).

Source

fn scale_to_with_stroke(&mut self, hint: ScaleHint) -> &mut Self
where Self: Aabb,

Scale the item to a given hint with stroke width.

See ScaleHint for more details.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§