Trait web::Canvas2dApi[][src]

pub trait Canvas2dApi {
    fn set_fill_color(&self, color: &str);
fn fill_rect(
        &self,
        x: impl Into<f64>,
        y: impl Into<f64>,
        w: impl Into<f64>,
        h: impl Into<f64>
    );
fn clear_rect(
        &self,
        x: impl Into<f64>,
        y: impl Into<f64>,
        w: impl Into<f64>,
        h: impl Into<f64>
    ); }

Required methods

fn set_fill_color(&self, color: &str)[src]

fn fill_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)
[src]

fn clear_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)
[src]

Loading content...

Implementors

impl Canvas2dApi for CanvasContext[src]

pub fn set_fill_color(&self, color: &str)[src]

pub fn fill_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)
[src]

pub fn clear_rect(
    &self,
    x: impl Into<f64>,
    y: impl Into<f64>,
    w: impl Into<f64>,
    h: impl Into<f64>
)
[src]

Loading content...