pub trait ContextMenuItemExt: IsA<ContextMenuItem> + Sealed + 'static {
    // Provided methods
    fn gaction(&self) -> Option<Action> { ... }
    fn stock_action(&self) -> ContextMenuAction { ... }
    fn submenu(&self) -> Option<ContextMenu> { ... }
    fn is_separator(&self) -> bool { ... }
    fn set_submenu(&self, submenu: Option<&impl IsA<ContextMenu>>) { ... }
}

Provided Methods§

source

fn gaction(&self) -> Option<Action>

Available on crate feature v2_18 only.
source

fn stock_action(&self) -> ContextMenuAction

source

fn submenu(&self) -> Option<ContextMenu>

source

fn is_separator(&self) -> bool

source

fn set_submenu(&self, submenu: Option<&impl IsA<ContextMenu>>)

Object Safety§

This trait is not object safe.

Implementors§