pub trait ContextMenuBinExt: 'static {
    // Required methods
    fn has_context_menu(&self) -> bool;
    fn set_has_context_menu(&self, has_context_menu: bool);
    fn popover(&self) -> Option<PopoverMenu>;
    fn set_popover(&self, popover: Option<PopoverMenu>);
    fn child(&self) -> Option<Widget>;
    fn set_child(&self, child: Option<&impl IsA<Widget>>);
    fn menu_opened(&self);
}

Required Methods§

source

fn has_context_menu(&self) -> bool

Whether this widget has a context menu.

source

fn set_has_context_menu(&self, has_context_menu: bool)

Set whether this widget has a context menu.

source

fn popover(&self) -> Option<PopoverMenu>

Get the PopoverMenu used in the context menu.

source

fn set_popover(&self, popover: Option<PopoverMenu>)

Set the PopoverMenu used in the context menu.

source

fn child(&self) -> Option<Widget>

Get the child widget.

source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Set the child widget.

source

fn menu_opened(&self)

Called when the menu was requested to open but before the menu is shown.

Object Safety§

This trait is not object safe.

Implementors§