Struct ux::Canvas [−][src]
pub struct Canvas<'a> { /* fields omitted */ }Implementations
impl<'a> Canvas<'a>[src]
Trait Implementations
impl<'a> CanvasContext<Pattern> for Canvas<'a>[src]
pub fn get_direction(&self) -> Direction[src]
pub fn set_direction(&self, value: Direction) -> String[src]
pub fn set_fill_color(&self, value: Color)[src]
pub fn set_fill_gradient(&self, value: &Gradient)[src]
pub fn set_fill_pattern(&self, pattern: &Pattern)[src]
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[src]
pub fn set_shadow_color(&self, value: Color)[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)[src]
pub fn set_stroke_gradient(&self, value: &Gradient)[src]
pub fn set_stroke_pattern(&self, pattern: &Pattern)[src]
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> RefUnwindSafe for Canvas<'a>
impl<'a> !Send for Canvas<'a>
impl<'a> !Sync for Canvas<'a>
impl<'a> Unpin for Canvas<'a>
impl<'a> UnwindSafe for Canvas<'a>
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,
pub 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, 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.
pub 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>,