Struct components::RoughCanvas [−][src]
pub struct RoughCanvas<'a, C> where
C: CanvasContext, { /* fields omitted */ }Implementations
impl<'a, C> RoughCanvas<'a, C> where
C: CanvasContext, [src]
impl<'a, C> RoughCanvas<'a, C> where
C: CanvasContext, [src]pub fn new(ctx: &'a C, config: RoughConfig) -> RoughCanvas<'a, C>[src]
pub fn draw(&self, drawable: Drawable<'a>) -> Drawable<'a>[src]
pub fn get_generator(&self) -> &RoughGenerator[src]
pub fn get_default_options(&self) -> &RoughOptions[src]
pub fn circle(
&self,
x: f64,
y: f64,
diameter: f64,
options: &'a RoughOptions
) -> Drawable<'a>[src]
&self,
x: f64,
y: f64,
diameter: f64,
options: &'a RoughOptions
) -> Drawable<'a>
pub fn linear_path(
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>[src]
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>
pub fn polygon(
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>[src]
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>
pub fn curve(
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>[src]
&self,
points: &Vec<Point2D<f64, UnknownUnit>, Global>,
options: &'a RoughOptions
) -> Drawable<'a>
pub fn path(&self, d: &str, options: &'a RoughOptions) -> Drawable<'a>[src]
Trait Implementations
impl<'a, C> CanvasContext for RoughCanvas<'a, C> where
C: CanvasContext<Pattern = Pattern>, [src]
impl<'a, C> CanvasContext for RoughCanvas<'a, C> where
C: CanvasContext<Pattern = Pattern>, [src]type Pattern = Pattern
pub fn get_direction(&self) -> Direction[src]
pub fn set_direction(&self, value: Direction) -> String[src]
pub fn set_fill_color(&self, value: Color<f64>)[src]
pub fn set_fill_gradient(&self, value: &Gradient)[src]
pub fn set_fill_pattern(
&self,
pattern: &<RoughCanvas<'a, C> as CanvasContext>::Pattern
)[src]
&self,
pattern: &<RoughCanvas<'a, C> as CanvasContext>::Pattern
)
pub fn get_filter(&self) -> String[src]
pub fn set_filter(&self, value: &str)[src]
pub fn get_font(&self) -> String[src]
pub fn set_font(
&self,
family: &str,
style: TextStyle,
weight: TextWeight,
size: f64
)[src]
&self,
family: &str,
style: TextStyle,
weight: TextWeight,
size: f64
)
pub fn get_global_alpha(&self) -> f64[src]
pub fn set_global_alpha(&self, value: f64)[src]
pub fn get_global_composite_operation(&self) -> String[src]
pub fn set_global_composite_operation(&self, value: &str)[src]
pub fn is_image_smoothing_enabled(&self) -> bool[src]
pub fn set_image_smoothing(&self, value: bool)[src]
pub fn get_line_cap(&self) -> LineCap[src]
pub fn set_line_cap(&self, value: LineCap)[src]
pub fn get_line_dash_offset(&self) -> f64[src]
pub fn set_line_dash_offset(&self, value: f64)[src]
pub fn get_line_join(&self) -> LineJoin[src]
pub fn set_line_join(&self, value: LineJoin)[src]
pub fn get_line_width(&self) -> f64[src]
pub fn set_line_width(&self, value: f64)[src]
pub fn get_miter_limit(&self) -> f64[src]
pub fn set_miter_limit(&self, value: f64)[src]
pub fn get_shadow_blur(&self) -> f64[src]
pub fn set_shadow_blur(&self, value: f64)[src]
pub fn get_shadow_color(&self) -> Color<f64>[src]
pub fn set_shadow_color(&self, value: Color<f64>)[src]
pub fn get_shadow_offset_x(&self) -> f64[src]
pub fn set_shadow_offset_x(&self, value: f64)[src]
pub fn get_shadow_offset_y(&self) -> f64[src]
pub fn set_shadow_offset_y(&self, value: f64)[src]
pub fn set_stroke_color(&self, value: Color<f64>)[src]
pub fn set_stroke_gradient(&self, value: &Gradient)[src]
pub fn set_stroke_pattern(
&self,
pattern: &<RoughCanvas<'a, C> as CanvasContext>::Pattern
)[src]
&self,
pattern: &<RoughCanvas<'a, C> as CanvasContext>::Pattern
)
pub fn get_text_align(&self) -> TextAlign[src]
pub fn set_text_align(&self, value: TextAlign)[src]
pub fn get_text_baseline(&self) -> BaseLine[src]
pub fn set_text_baseline(&self, value: BaseLine)[src]
pub fn arc(
&self,
x: f64,
y: f64,
radius: f64,
start_angle: f64,
end_angle: f64,
anticlockwise: bool
)[src]
&self,
x: f64,
y: f64,
radius: f64,
start_angle: f64,
end_angle: f64,
anticlockwise: bool
)
pub fn arc_to(&self, x1: f64, y1: f64, x2: f64, y2: f64, radius: f64)[src]
pub fn begin_path(&self)[src]
pub fn bezier_curve_to(
&self,
cp1x: f64,
cp1y: f64,
cp2x: f64,
cp2y: f64,
x: f64,
y: f64
)[src]
&self,
cp1x: f64,
cp1y: f64,
cp2x: f64,
cp2y: f64,
x: f64,
y: f64
)
pub fn clear_rect(&self, x: f64, y: f64, width: f64, height: f64)[src]
pub fn close_path(&self)[src]
pub fn ellipse(
&self,
x: f64,
y: f64,
radius_x: f64,
radius_y: f64,
rotation: f64,
start_angle: f64,
end_angle: f64,
anticlockwise: bool
)[src]
&self,
x: f64,
y: f64,
radius_x: f64,
radius_y: f64,
rotation: f64,
start_angle: f64,
end_angle: f64,
anticlockwise: bool
)
pub fn fill(&self)[src]
pub fn fill_rect(&self, x: f64, y: f64, width: f64, height: f64)[src]
pub fn fill_text(&self, text: &str, x: f64, y: f64)[src]
pub fn get_line_dash(&self) -> Vec<f64, Global>ⓘ[src]
pub fn line_to(&self, x: f64, y: f64)[src]
pub fn measure_text(&self, text: &str) -> TextMetrics[src]
pub fn move_to(&self, x: f64, y: f64)[src]
pub fn quadratic_curve_to(&self, cpx: f64, cpy: f64, x: f64, y: f64)[src]
pub fn rect(&self, x: f64, y: f64, width: f64, height: f64)[src]
pub fn reset_transform(&self)[src]
pub fn restore(&self)[src]
pub fn rotate(&self, angle: f64)[src]
pub fn save(&self)[src]
pub fn scale(&self, x: f64, y: f64)[src]
pub fn set_line_dash(&self, dash: &Vec<f64, Global>)[src]
pub fn set_transform(&self, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64)[src]
pub fn stroke(&self)[src]
pub fn stroke_rect(&self, x: f64, y: f64, width: f64, height: f64)[src]
pub fn stroke_text(&self, text: &str, x: f64, y: f64)[src]
pub fn transform(&self, a: f64, b: f64, c: f64, d: f64, e: f64, f: f64)[src]
pub fn translate(&self, x: f64, y: f64)[src]
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for RoughCanvas<'a, C>
impl<'a, C> !RefUnwindSafe for RoughCanvas<'a, C>impl<'a, C> Send for RoughCanvas<'a, C> where
C: Sync,
impl<'a, C> Send for RoughCanvas<'a, C> where
C: Sync, impl<'a, C> !Sync for RoughCanvas<'a, C>
impl<'a, C> !Sync for RoughCanvas<'a, C>impl<'a, C> Unpin for RoughCanvas<'a, C>
impl<'a, C> Unpin for RoughCanvas<'a, C>impl<'a, C> UnwindSafe for RoughCanvas<'a, C> where
C: RefUnwindSafe,
impl<'a, C> UnwindSafe for RoughCanvas<'a, C> where
C: RefUnwindSafe, Blanket Implementations
impl<O> AdvancedShapesExt for O where
O: CanvasContext, [src]
impl<O> AdvancedShapesExt for O where
O: CanvasContext, [src]impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>, pub fn into_color(self) -> To
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,