[][src]Struct sciter::graphics::Path

pub struct Path(_);

Graphics path object.

Implementations

impl Path[src]

pub fn create() -> Result<Path>[src]

Create a new empty path.

pub fn new() -> Result<Path>[src]

👎 Deprecated:

Use Path::create() instead.

Create a new empty path.

pub fn close(&mut self) -> Result<()>[src]

Close the current path/figure.

pub fn move_to(&mut self, point: Pos, is_relative: bool) -> Result<&mut Path>[src]

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]

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]

Draw an arc.

pub fn quadratic_curve_to(
    &mut self,
    control: Pos,
    end: Pos,
    is_relative: bool
) -> Result<&mut Path>
[src]

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]

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 Clone for Path[src]

Copies path object.

All allocated objects are reference counted so copying is just a matter of increasing reference counts.

impl Drop for Path[src]

Destroy pointed path object.

impl From<Path> for Value[src]

Store the Path object as a Value.

impl FromValue for Path[src]

Get a Path object contained in the Value.

Auto Trait Implementations

impl RefUnwindSafe for Path

impl !Send for Path

impl !Sync for Path

impl Unpin for Path

impl UnwindSafe for Path

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.