pub struct StreamGeometryBuilder { /* private fields */ }Expand description
Builds a kurbo geometry from drawing commands.
The paths of a geometry are immutable, so the builder works on path builders seeded from the paths of its source geometry, and creates the geometry from their snapshots.
Implementations§
Source§impl StreamGeometryBuilder
impl StreamGeometryBuilder
Sourcepub fn new(source: Option<&dyn IGeometryImpl>) -> Self
pub fn new(source: Option<&dyn IGeometryImpl>) -> Self
Creates a builder that starts with the figures of source, a geometry
of this backend, or with an empty geometry when source is None.
Panics if source was not created by the Vello render interface.
Trait Implementations§
Source§impl IGeometryContext for StreamGeometryBuilder
impl IGeometryContext for StreamGeometryBuilder
Source§fn arc_to(
&mut self,
point: Point,
size: Size,
rotation_angle: f64,
is_large_arc: bool,
sweep_direction: SweepDirection,
is_stroked: bool,
)
fn arc_to( &mut self, point: Point, size: Size, rotation_angle: f64, is_large_arc: bool, sweep_direction: SweepDirection, is_stroked: bool, )
Draws an arc to the specified point. Read more
Source§fn begin_figure(&mut self, start_point: Point, is_filled: bool)
fn begin_figure(&mut self, start_point: Point, is_filled: bool)
Begins a new figure.
Source§fn cubic_bezier_to(
&mut self,
control_point1: Point,
control_point2: Point,
end_point: Point,
is_stroked: bool,
)
fn cubic_bezier_to( &mut self, control_point1: Point, control_point2: Point, end_point: Point, is_stroked: bool, )
Draws a Bezier curve to the specified point.
Source§fn quadratic_bezier_to(
&mut self,
control_point: Point,
end_point: Point,
is_stroked: bool,
)
fn quadratic_bezier_to( &mut self, control_point: Point, end_point: Point, is_stroked: bool, )
Draws a quadratic Bezier curve to the specified point.
Source§fn end_figure(&mut self, is_closed: bool)
fn end_figure(&mut self, is_closed: bool)
Ends the figure started by
begin_figure.Source§fn set_fill_rule(&mut self, fill_rule: FillRule)
fn set_fill_rule(&mut self, fill_rule: FillRule)
Sets the fill rule.
Source§impl IStreamGeometryBuilder for StreamGeometryBuilder
impl IStreamGeometryBuilder for StreamGeometryBuilder
Source§fn to_geometry(&mut self) -> Arc<dyn IGeometryImpl> ⓘ
fn to_geometry(&mut self) -> Arc<dyn IGeometryImpl> ⓘ
Creates the geometry described by the commands issued so far. Read more
Auto Trait Implementations§
impl Freeze for StreamGeometryBuilder
impl RefUnwindSafe for StreamGeometryBuilder
impl Send for StreamGeometryBuilder
impl Sync for StreamGeometryBuilder
impl Unpin for StreamGeometryBuilder
impl UnsafeUnpin for StreamGeometryBuilder
impl UnwindSafe for StreamGeometryBuilder
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more