pub struct PathGeometryContext { /* private fields */ }Expand description
A geometry context that records the drawing commands as the figures and
segments of a PathGeometry.
Implementations§
Source§impl PathGeometryContext
impl PathGeometryContext
pub fn new(path_geometry: Ref<PathGeometry>) -> Self
Trait Implementations§
Source§impl IGeometryContext for PathGeometryContext
impl IGeometryContext for PathGeometryContext
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.
Auto Trait Implementations§
impl !RefUnwindSafe for PathGeometryContext
impl !Send for PathGeometryContext
impl !Sync for PathGeometryContext
impl !UnwindSafe for PathGeometryContext
impl Freeze for PathGeometryContext
impl Unpin for PathGeometryContext
impl UnsafeUnpin for PathGeometryContext
Blanket Implementations§
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
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