[−][src]Struct sciter::graphics::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]
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]
&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]
&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]
&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 Clone for Path
[src]
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_from(&mut self, source: &Self)
1.0.0[src]
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
.
fn from_value(v: &Value) -> Option<Path>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,