Struct sciter::graphics::Path [−][src]
pub struct Path(_);
Graphics path object.
Methods
impl Path
[src]
impl Path
pub fn new() -> Result<Path>
[src]
pub fn new() -> Result<Path>
Create a new empty path.
pub fn close(&mut self) -> Result<()>
[src]
pub fn close(&mut self) -> Result<()>
Close the current path/figure.
pub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
[src]
pub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
pub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
[src]
pub fn line_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>
Draw a line and move the current drawing path position to x,y
.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
pub fn arc_to(
&mut self,
xy: Pos,
angle: Angle,
rxy: Pos,
is_large: bool,
is_clockwise: bool,
is_relative: bool
) -> Result<&mut Path>
[src]
pub fn arc_to(
&mut self,
xy: Pos,
angle: Angle,
rxy: Pos,
is_large: bool,
is_clockwise: bool,
is_relative: bool
) -> Result<&mut Path>
Draw an arc.
pub fn quadratic_curve_to(
&mut self,
control: Pos,
end: Pos,
is_relative: bool
) -> Result<&mut Path>
[src]
pub fn quadratic_curve_to(
&mut self,
control: Pos,
end: Pos,
is_relative: bool
) -> Result<&mut Path>
Draw a quadratic Bézier curve.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
pub fn bezier_curve_to(
&mut self,
control1: Pos,
control2: Pos,
end: Pos,
is_relative: bool
) -> Result<&mut Path>
[src]
pub fn bezier_curve_to(
&mut self,
control1: Pos,
control2: Pos,
end: Pos,
is_relative: bool
) -> Result<&mut Path>
Draw a cubic Bézier curve.
If is_relative
is true
then the specified coordinates are interpreted as deltas from the current path position.
Trait Implementations
impl Drop for Path
[src]
impl Drop for Path
Destroy pointed path object.
impl Clone for Path
[src]
impl Clone for Path
Copies path object.
All allocated objects are reference counted so copying is just a matter of increasing reference counts.
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl FromValue for Path
[src]
impl FromValue for Path
Get a Path
object contained in the Value
.
fn from_value(v: &Value) -> Option<Path>
[src]
fn from_value(v: &Value) -> Option<Path>
Converts value to specified type.
impl From<Path> for Value
[src]
impl From<Path> for Value
Store the Path
object as a Value
.