Trait dui::callback::callbacks::MapCb [] [src]

pub trait MapCb where
    Self: Element + 'static, 
{ fn set_map_cb<F>(&mut self, cb: F) -> Self
    where
        F: Callback<(Self,)>
, { ... }
fn remove_map_cb(&mut self) -> Option<Box<Callback<(Self,)>>> { ... } }

Called right after an element is mapped and its attributes updated in Widget::map.

When the element is a dialog, it is called after the layout is updated. For all other elements is called before the layout is updated, so the element current size will still be 0x0 during MAP_CB.

Provided Methods

Implementors