Struct canvas::WebCanvas
[−]
[src]
pub struct WebCanvas { /* fields omitted */ }
Methods
impl WebCanvas
[src]
fn start(http_addr: SocketAddr) -> WebCanvas
Trait Implementations
impl Canvas for WebCanvas
[src]
fn clearRect(&mut self, x: f64, y: f64, width: f64, height: f64)
fn fillRect(&mut self, x: f64, y: f64, width: f64, height: f64)
fn strokeRect(&mut self, x: f64, y: f64, width: f64, height: f64)
fn fillText(&mut self, text: &str, x: f64, y: f64)
fn strokeText(&mut self, text: &str, x: f64, y: f64)
fn measureText(&mut self, text: &str) -> TextMetrics
fn lineWidth(&mut self, width: f64)
fn lineCap(&mut self, lineCap: LineCap)
fn miterLimit(&mut self, limit: f64)
fn setLineDash(&mut self, dash: &Vec<f64>)
fn lineDashOffset(&mut self, offset: f64)
fn font(&mut self, font: &str)
fn textAlign(&mut self, align: TextAlignment)
fn textBaseline(&mut self, baseline: TextBaseline)
fn direction(&mut self, direction: TextDirection)
fn fillStyle(&mut self, style: &str)
fn strokeStyle(&mut self, style: &str)
fn beginPath(&mut self)
fn closePath(&mut self)
fn moveTo(&mut self, x: f64, y: f64)
fn lineTo(&mut self, x: f64, y: f64)
fn bezierCurveTo(
&mut self,
cp1x: f64,
cp1y: f64,
cp2x: f64,
cp2y: f64,
x: f64,
y: f64
)
&mut self,
cp1x: f64,
cp1y: f64,
cp2x: f64,
cp2y: f64,
x: f64,
y: f64
)
fn quadraticCurveTo(&mut self, cpx: f64, cpy: f64, x: f64, y: f64)
fn arc(
&mut self,
x: f64,
y: f64,
radius: f64,
startAngle: f64,
endAngle: f64,
anticlockwise: bool
)
&mut self,
x: f64,
y: f64,
radius: f64,
startAngle: f64,
endAngle: f64,
anticlockwise: bool
)