Struct ux::RoughGenerator[][src]

pub struct RoughGenerator {
    pub config: RoughConfig,
    pub default_options: RoughOptions,
}

Fields

config: RoughConfigdefault_options: RoughOptions

Implementations

impl RoughGenerator[src]

pub fn new(config: RoughConfig) -> RoughGenerator[src]

pub fn new_seed(&self) -> u64[src]

pub fn line(
    &self,
    x1: f64,
    y1: f64,
    x2: f64,
    y2: f64,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn rectangle(
    &self,
    x: f64,
    y: f64,
    width: f64,
    height: f64,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn ellipse(
    &self,
    x: f64,
    y: f64,
    width: f64,
    height: f64,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn circle(
    &self,
    x: f64,
    y: f64,
    diameter: f64,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn linear_path(
    &self,
    points: &Vec<Point2D<f64, UnknownUnit>, Global>,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn arc(
    &self,
    x: f64,
    y: f64,
    width: f64,
    height: f64,
    start: f64,
    stop: f64,
    closed: bool,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn curve(
    &self,
    points: &Vec<Point2D<f64, UnknownUnit>, Global>,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn polygon(
    &self,
    points: &Vec<Point2D<f64, UnknownUnit>, Global>,
    options: &'a RoughOptions
) -> Drawable<'a>
[src]

pub fn path(&self, d: &str, options: &'a RoughOptions) -> Drawable<'a>[src]

pub fn ops_to_path(&self, drawing: &OpSet) -> String[src]

pub fn to_paths(&self, drawable: Drawable<'_>) -> Vec<PathInfo, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

pub fn fill_sketch(&self, drawing: &OpSet, options: &RoughOptions) -> PathInfo[src]

Auto Trait Implementations

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<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,