Skip to main content

DialogStyle

Trait DialogStyle 

Source
pub trait DialogStyle: 'static {
    // Required methods
    fn make_panel(
        &self,
        cfg: &DialogStyleConfig,
        ctx: &mut BuildContext<'_>,
    ) -> WidgetId;
    fn make_scrim(&self, ctx: &mut BuildContext<'_>) -> WidgetId;
}

Required Methods§

Source

fn make_panel( &self, cfg: &DialogStyleConfig, ctx: &mut BuildContext<'_>, ) -> WidgetId

The modal panel surface that wraps content — rounded surface fill, border stroke, and the content-padding inset.

Source

fn make_scrim(&self, ctx: &mut BuildContext<'_>) -> WidgetId

The full-window scrim that dims the content behind the modal panel. Mounted by the modal-presentation pipeline, not by ModalContainer itself.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§