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§
Sourcefn make_panel(
&self,
cfg: &DialogStyleConfig,
ctx: &mut BuildContext<'_>,
) -> WidgetId
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.
Sourcefn make_scrim(&self, ctx: &mut BuildContext<'_>) -> WidgetId
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".