pub fn wrap(view: T) -> Self {
        Canvas::new(view)
            .with_draw(T::draw)
            .with_on_event(T::on_event)
            .with_required_size(T::required_size)
            .with_layout(T::layout)
            .with_take_focus(T::take_focus)
            .with_needs_relayout(T::needs_relayout)
    }
/// Creates a new Canvas around the given view.
///
/// By default, forwards all calls to the inner view.
Creates a new Canvas around the given view.
By default, forwards all calls to the inner view.
Creates a new Canvas around the given view . By default forwards all calls to the inner view .
pub fn wrap(view: T) -> Self {
        Canvas::new(view)
            .with_draw(T::draw)
            .with_on_event(T::on_event)
            .with_required_size(T::required_size)
            .with_layout(T::layout)
            .with_take_focus(T::take_focus)
            .with_needs_relayout(T::needs_relayout)
    }
pub fn wrap ( view : T ) -> Self { Canvas :: new ( view ) . with_draw ( T :: draw ) . with_on_event ( T :: on_event ) . with_required_size ( T :: required_size ) . with_layout ( T :: layout ) . with_take_focus ( T :: take_focus ) . with_needs_relayout ( T :: needs_relayout ) }
Creates a new Canvas around the given view.
Creates a new Canvas around the given view .
view
T
view
T