[−][src]Struct iced_glow::widget::canvas::path::Builder
feature="canvas"
only.Implementations
impl Builder
[src]
pub fn new() -> Builder
[src]
feature="canvas"
only.Creates a new Builder
.
pub fn move_to(&mut self, point: Point)
[src]
feature="canvas"
only.Moves the starting point of a new sub-path to the given Point
.
pub fn line_to(&mut self, point: Point)
[src]
feature="canvas"
only.Connects the last point in the Path
to the given Point
with a
straight line.
pub fn arc(&mut self, arc: Arc)
[src]
feature="canvas"
only.pub fn arc_to(&mut self, a: Point, b: Point, radius: f32)
[src]
feature="canvas"
only.Adds a circular arc to the Path
with the given control points and
radius.
The arc is connected to the previous point by a straight line, if necessary.
pub fn ellipse(&mut self, arc: Elliptical)
[src]
feature="canvas"
only.pub fn bezier_curve_to(&mut self, control_a: Point, control_b: Point, to: Point)
[src]
feature="canvas"
only.Adds a cubic Bézier curve to the Path
given its two control points
and its end point.
pub fn quadratic_curve_to(&mut self, control: Point, to: Point)
[src]
feature="canvas"
only.Adds a quadratic Bézier curve to the Path
given its control point
and its end point.
pub fn rectangle(&mut self, top_left: Point, size: Size<f32>)
[src]
feature="canvas"
only.Adds a rectangle to the Path
given its top-left corner coordinate
and its Size
.
pub fn circle(&mut self, center: Point, radius: f32)
[src]
feature="canvas"
only.Adds a circle to the Path
given its center coordinate and its
radius.
pub fn close(&mut self)
[src]
feature="canvas"
only.Closes the current sub-path in the Path
with a straight line to
the starting point.
pub fn build(self) -> Path
[src]
feature="canvas"
only.Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
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, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,