Skip to main content

edit_context_menu

Function edit_context_menu 

Source
pub fn edit_context_menu<Msg, F>(
    anchor: (f32, f32),
    viewport: (f32, f32),
    theme: &Theme,
    flags: EditFlags,
    on_action: F,
    on_dismiss: Msg,
) -> ContextMenuSpec<Msg>
where Msg: Clone + 'static, F: Fn(EditAction) -> Msg + Send + Sync + 'static,
Expand description

Arma el ContextMenuSpec del menú de edición listo para context_menu_view. on_action rebota cada pick en un Msg de la app; on_dismiss cierra al click-fuera o Esc.