logo
pub struct Path(_);
Expand description

Graphics path object.

Implementations

Create a new empty path.

👎 Deprecated:

Use Path::create() instead.

Create a new empty path.

Close the current path/figure.

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.

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.

Draw an arc.

Draw a quadratic Bézier curve.

If is_relative is true then the specified coordinates are interpreted as deltas from the current path position.

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

Copies path object.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Destroy pointed path object.

Executes the destructor for this type. Read more

Store the Path object as a Value.

Performs the conversion.

Get a Path object contained in the Value.

Converts value to specified type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.