Struct lyon::tessellation::StrokeBuilder [−][src]
pub struct StrokeBuilder<'l> { /* fields omitted */ }
A builder that tessellates a stroke directly without allocating any intermediate data structure.
Methods
impl<'l> StrokeBuilder<'l>
[src]
impl<'l> StrokeBuilder<'l>
pub fn new(
options: &StrokeOptions,
builder: &'l mut (GeometryBuilder<StrokeVertex> + 'l)
) -> StrokeBuilder<'l>
[src]
pub fn new(
options: &StrokeOptions,
builder: &'l mut (GeometryBuilder<StrokeVertex> + 'l)
) -> StrokeBuilder<'l>
pub fn set_options(&mut self, options: &StrokeOptions)
[src]
pub fn set_options(&mut self, options: &StrokeOptions)
Trait Implementations
impl<'l> PathBuilder for StrokeBuilder<'l>
[src]
impl<'l> PathBuilder for StrokeBuilder<'l>
fn quadratic_bezier_to(
&mut self,
ctrl: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
[src]
fn quadratic_bezier_to(
&mut self,
ctrl: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
fn cubic_bezier_to(
&mut self,
ctrl1: TypedPoint2D<f32, UnknownUnit>,
ctrl2: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
[src]
fn cubic_bezier_to(
&mut self,
ctrl1: TypedPoint2D<f32, UnknownUnit>,
ctrl2: TypedPoint2D<f32, UnknownUnit>,
to: TypedPoint2D<f32, UnknownUnit>
)
fn arc(
&mut self,
center: TypedPoint2D<f32, UnknownUnit>,
radii: TypedVector2D<f32, UnknownUnit>,
sweep_angle: Angle<f32>,
x_rotation: Angle<f32>
)
[src]
fn arc(
&mut self,
center: TypedPoint2D<f32, UnknownUnit>,
radii: TypedVector2D<f32, UnknownUnit>,
sweep_angle: Angle<f32>,
x_rotation: Angle<f32>
)
fn path_event(&mut self, event: PathEvent)
fn path_event(&mut self, event: PathEvent)
fn with_svg(self) -> SvgPathBuilder<Self>
fn with_svg(self) -> SvgPathBuilder<Self>
Returns a builder that support svg commands.
impl<'l> FlatPathBuilder for StrokeBuilder<'l>
[src]
impl<'l> FlatPathBuilder for StrokeBuilder<'l>
type PathType = ()
The type of object that is created by this builder.
fn move_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
[src]
fn move_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
Sets the current position in preparation for the next sub-path. If the current sub-path contains edges, this ends the sub-path without closing it. Read more
fn line_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
[src]
fn line_to(&mut self, to: TypedPoint2D<f32, UnknownUnit>)
Adds a line segment to the current sub-path and set the current position.
fn close(&mut self)
[src]
fn close(&mut self)
Closes the current sub path and sets the current position to the first position of this the current sub-path. Read more
fn current_position(&self) -> TypedPoint2D<f32, UnknownUnit>
[src]
fn current_position(&self) -> TypedPoint2D<f32, UnknownUnit>
fn build(self)
[src]
fn build(self)
Builds a path object and resets the builder so that it can be used again.
fn build_and_reset(&mut self)
[src]
fn build_and_reset(&mut self)
Builds a path object and resets the builder so that it can be used again.
fn flat_event(&mut self, event: FlattenedEvent)
fn flat_event(&mut self, event: FlattenedEvent)
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>
fn flattened(self, tolerance: f32) -> FlatteningBuilder<Self>
Returns a builder that approximates all curves with sequences of line segments.
Auto Trait Implementations
impl<'l> !Send for StrokeBuilder<'l>
impl<'l> !Send for StrokeBuilder<'l>
impl<'l> !Sync for StrokeBuilder<'l>
impl<'l> !Sync for StrokeBuilder<'l>