[][src]Struct orbclient::graphicspath::GraphicsPath

pub struct GraphicsPath {
    pub points: Vec<(i32, i32, PointType)>,
    // some fields omitted
}

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]

quadratic bezier curve

pub fn bezier_curve_to(
    &mut self,
    argx1: i32,
    argy1: i32,
    argx2: i32,
    argy2: i32,
    argx3: i32,
    argy3: i32
)
[src]

cubic bezier curve

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.