pub struct PathContext<'a> { /* private fields */ }
Implementations§
Source§impl<'a> PathContext<'a>
impl<'a> PathContext<'a>
pub fn move_to(self, to: (f32, f32)) -> Self
pub fn line_to(self, to: (f32, f32)) -> Self
pub fn cubic_to(self, cp1: (f32, f32), cp2: (f32, f32), to: (f32, f32)) -> Self
pub fn rectangle(self, origin: (f32, f32), size: (f32, f32)) -> Self
pub fn rounded_rectangle( self, origin: (f32, f32), size: (f32, f32), radius: (f32, f32, f32, f32), ) -> Self
pub fn close(self) -> Self
pub fn draw(self, style: PathStyle)
pub fn svg(self, path: &str) -> Self
Auto Trait Implementations§
impl<'a> Freeze for PathContext<'a>
impl<'a> RefUnwindSafe for PathContext<'a>
impl<'a> Send for PathContext<'a>
impl<'a> Sync for PathContext<'a>
impl<'a> Unpin for PathContext<'a>
impl<'a> !UnwindSafe for PathContext<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more