Trait fractal::components::context_menu_bin::ContextMenuBinExt
source · 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§
Whether this widget has a context menu.
Set whether this widget has a context menu.
sourcefn popover(&self) -> Option<PopoverMenu>
fn popover(&self) -> Option<PopoverMenu>
Get the PopoverMenu
used in the context menu.
sourcefn set_popover(&self, popover: Option<PopoverMenu>)
fn set_popover(&self, popover: Option<PopoverMenu>)
Set the PopoverMenu
used in the context menu.
Called when the menu was requested to open but before the menu is shown.
Object Safety§
This trait is not object safe.