Skip to main content

modal

Function modal 

Source
pub fn modal<'a, C: ContentCx<'a>>(
    cx: &mut C,
    id: impl Into<WidgetId>,
    rect: Rect,
    state: &mut ModalState,
    view: &mut ModalView<'_>,
    settings: &ModalSettings,
    kind: &ModalRenderKind,
)
Expand description

Register and draw a modal frame. state.position == (0, 0) keeps rect.