Trait cushy::widgets::layers::ModalTarget

source ·
pub trait ModalTarget: Send + 'static {
    // Required methods
    fn new_handle(&self) -> ModalHandle;
    fn layer(&self) -> &Modal;
}
Expand description

A target for a Modal session.

Required Methods§

source

fn new_handle(&self) -> ModalHandle

Returns a new handle that can be used to show a dialog above self.

source

fn layer(&self) -> &Modal

Returns a reference to the modal layer this target presents to.

Implementors§