[][src]Struct arwa::html::HtmlCanvasElement

pub struct HtmlCanvasElement { /* fields omitted */ }

Methods

impl HtmlCanvasElement[src]

pub fn width(&self) -> u32[src]

pub fn set_width(&self, width: u32)[src]

pub fn height(&self) -> u32[src]

pub fn set_height(&self, height: u32)[src]

pub fn to_data_url(
    &self,
    mime_type: &str,
    quality: ImageQuality
) -> Result<String, SecurityError>
[src]

Trait Implementations

impl AsRef<Element> for HtmlCanvasElement[src]

impl AsRef<EventTarget> for HtmlCanvasElement[src]

impl AsRef<HtmlCanvasElement> for HtmlCanvasElement[src]

impl AsRef<HtmlElement> for HtmlCanvasElement[src]

impl AsRef<Node> for HtmlCanvasElement[src]

impl Clone for HtmlCanvasElement[src]

impl Element for HtmlCanvasElement[src]

impl From<HtmlCanvasElement> for HtmlCanvasElement[src]

impl From<HtmlCanvasElement> for GenericHtmlElement[src]

impl From<HtmlCanvasElement> for GenericElement[src]

impl From<HtmlCanvasElement> for GenericNode[src]

impl GlobalEventHandlers for HtmlCanvasElement[src]

impl HtmlElement for HtmlCanvasElement[src]

impl Node for HtmlCanvasElement[src]

impl TryFrom<GenericElement> for HtmlCanvasElement[src]

type Error = InvalidCast<GenericElement>

The type returned in the event of a conversion error.

impl TryFrom<GenericHtmlElement> for HtmlCanvasElement[src]

type Error = InvalidCast<GenericHtmlElement>

The type returned in the event of a conversion error.

impl TryFrom<GenericNode> for HtmlCanvasElement[src]

type Error = InvalidCast<GenericNode>

The type returned in the event of a conversion error.

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.