Struct orbclient::graphicspath::GraphicsPath [−][src]
graphic path with similar functions like html canvas
Fields
points: Vec<(i32, i32, PointType)>
Methods
impl GraphicsPath
[src]
impl GraphicsPath
pub fn new() -> GraphicsPath
[src]
pub fn new() -> GraphicsPath
pub fn move_to(&mut self, x: i32, y: i32)
[src]
pub fn move_to(&mut self, x: i32, y: i32)
move to position
pub fn line_to(&mut self, x: i32, y: i32)
[src]
pub fn line_to(&mut self, x: i32, y: i32)
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]
pub fn quadratic_curve_to(
&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]
pub fn bezier_curve_to(
&mut self,
argx1: i32,
argy1: i32,
argx2: i32,
argy2: i32,
argx3: i32,
argy3: i32
)
cubic bezier curve
Auto Trait Implementations
impl Send for GraphicsPath
impl Send for GraphicsPath
impl Sync for GraphicsPath
impl Sync for GraphicsPath