[][src]Struct mika::dom::Canvas

pub struct Canvas { /* fields omitted */ }

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas

Methods

impl Canvas[src]

pub fn new() -> Self[src]

pub fn child<T: Attachable + Into<Node> + Element>(self, child: T) -> Self[src]

Trait Implementations

impl Element for Canvas[src]

impl EmbeddedContent for Canvas[src]

impl FlowContent for Canvas[src]

fn update_websys_node_signal<S, T, F>(self, signal: S, updater: F) -> Self where
    S: Signal<Item = T> + 'static,
    T: Clone + 'static,
    F: Fn(T, &Element) + 'static, 
[src]

impl PhrasingContent for Canvas[src]

impl FlowNonInteractiveContent for Canvas[src]

impl PhrasingNonInteractiveContent for Canvas[src]

impl HasChildren for Canvas[src]

fn push_child<T>(self, child: T) -> Self where
    T: Attachable + Into<Node>, 
[src]

This is primarily for internal use only

fn list_signal<S, T, F, N>(self, signal: S, render_item: F) -> Self where
    T: Clone + 'static,
    S: SignalVec<Item = T> + 'static,
    F: Fn(T) -> N + 'static,
    N: Element + Into<Node>, 
[src]

Create children for self from a SignalVec. You should not add any child via .child on the element you invoke this method. Read more

impl From<Canvas> for Node[src]

impl Default for Canvas[src]

Auto Trait Implementations

impl !Send for Canvas

impl !Sync for Canvas

Blanket Implementations

impl<T> Attachable for T where
    T: Element
[src]

impl<T> GlobalAttributes for T where
    T: Element
[src]

fn id(self, value: &str) -> Self[src]

fn focus_signal<S>(self, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 
[src]

fn class(self, space_separated_classes: &str) -> Self[src]

fn class_signal<S>(self, class_name: &str, signal: S) -> Self where
    S: Signal<Item = bool> + 'static, 
[src]

fn on_blur<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 
[src]

fn on_focus<F>(self, hanlder: F) -> Self where
    F: Fn(FocusEvent) + 'static, 
[src]

fn on_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 
[src]

fn on_double_click<F>(self, hanlder: F) -> Self where
    F: Fn(MouseEvent) + 'static, 
[src]

fn on_change<F>(self, hanlder: F) -> Self where
    F: Fn(Event) + 'static, 
[src]

fn on_key_press<F>(self, hanlder: F) -> Self where
    F: Fn(KeyboardEvent) + 'static, 
[src]

impl<T> TextContent for T where
    T: FlowContent
[src]

fn text(self, text: &str) -> Self[src]

fn text_signal<S, T>(self, signal: S) -> Self where
    T: ToString + 'static,
    S: Signal<Item = T> + 'static, 
[src]

impl<T> ChildOfA for T where
    T: FlowNonInteractiveContent
[src]

impl<T> ChildOfDataList for T where
    T: PhrasingContent
[src]

impl<T> ChildOfDetails for T where
    T: FlowContent
[src]

impl<T> ChildOfFieldSet for T where
    T: FlowContent
[src]

impl<T> ChildOfFigure for T where
    T: FlowContent
[src]

impl<T> ChildOfRtc for T where
    T: PhrasingContent
[src]

impl<T> ChildOfSummary for T where
    T: PhrasingContent
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]