Trait AbstractDialog

Source
pub trait AbstractDialog {
    // Required methods
    fn update(
        &mut self,
        ctx: &Context,
        dctx: &DialogContext,
    ) -> Option<Box<dyn Any>>;
    fn mask(&self) -> Option<Color32>;
    fn id(&self) -> Option<Id>;
}
Expand description

Abstraction over dialog details with different reply types.

Required Methods§

Source

fn update( &mut self, ctx: &Context, dctx: &DialogContext, ) -> Option<Box<dyn Any>>

Paint the current frame and return whether the dialog has been replied.

Source

fn mask(&self) -> Option<Color32>

Return the mask color if there is one.

Source

fn id(&self) -> Option<Id>

Return the dialog’s id if there is one.

Implementors§

Source§

impl<'a, R> AbstractDialog for DialogDetails<'a, R>
where R: Any,