[−][src]Struct orbclient::graphicspath::GraphicsPath
graphic path with similar functions like html canvas
Fields
points: Vec<(i32, i32, PointType)>
Methods
impl GraphicsPath
[src]
pub fn new() -> GraphicsPath
[src]
pub fn move_to(&mut self, x: i32, y: i32)
[src]
move to position
pub fn line_to(&mut self, x: i32, y: i32)
[src]
create a line between the last and new point
pub fn quadratic_curve_to(
&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32
)
[src]
&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32
)
quadratic bezier curve
pub fn bezier_curve_to(
&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32,
argx3: i32,
argy3: i32
)
[src]
&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32,
argx3: i32,
argy3: i32
)
cubic bezier curve
Auto Trait Implementations
impl Sync for GraphicsPath
impl Unpin for GraphicsPath
impl Send for GraphicsPath
impl RefUnwindSafe for GraphicsPath
impl UnwindSafe for GraphicsPath
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,