pub trait MenuShellExt:
IsA<MenuShell>
+ Sealed
+ 'static {
Show 27 methods
// Provided methods
fn activate_item(
&self,
menu_item: &impl IsA<Widget>,
force_deactivate: bool,
) { ... }
fn append(&self, child: &impl IsA<MenuItem>) { ... }
fn bind_model(
&self,
model: Option<&impl IsA<MenuModel>>,
action_namespace: Option<&str>,
with_separators: bool,
) { ... }
fn cancel(&self) { ... }
fn deactivate(&self) { ... }
fn deselect(&self) { ... }
fn parent_shell(&self) -> Option<Widget> { ... }
fn selected_item(&self) -> Option<Widget> { ... }
fn takes_focus(&self) -> bool { ... }
fn insert(&self, child: &impl IsA<Widget>, position: i32) { ... }
fn prepend(&self, child: &impl IsA<Widget>) { ... }
fn select_first(&self, search_sensitive: bool) { ... }
fn select_item(&self, menu_item: &impl IsA<Widget>) { ... }
fn set_take_focus(&self, take_focus: bool) { ... }
fn connect_activate_current<F: Fn(&Self, bool) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_activate_current(&self, force_hide: bool) { ... }
fn connect_cancel<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
fn emit_cancel(&self) { ... }
fn connect_cycle_focus<F: Fn(&Self, DirectionType) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_cycle_focus(&self, direction: DirectionType) { ... }
fn connect_deactivate<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_insert<F: Fn(&Self, &Widget, i32) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_move_current<F: Fn(&Self, MenuDirectionType) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn emit_move_current(&self, direction: MenuDirectionType) { ... }
fn connect_move_selected<F: Fn(&Self, i32) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_selection_done<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_take_focus_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Provided Methods§
fn activate_item(&self, menu_item: &impl IsA<Widget>, force_deactivate: bool)
fn append(&self, child: &impl IsA<MenuItem>)
fn bind_model( &self, model: Option<&impl IsA<MenuModel>>, action_namespace: Option<&str>, with_separators: bool, )
fn cancel(&self)
fn deactivate(&self)
fn deselect(&self)
fn parent_shell(&self) -> Option<Widget>
fn selected_item(&self) -> Option<Widget>
fn takes_focus(&self) -> bool
fn insert(&self, child: &impl IsA<Widget>, position: i32)
fn prepend(&self, child: &impl IsA<Widget>)
fn select_first(&self, search_sensitive: bool)
fn select_item(&self, menu_item: &impl IsA<Widget>)
fn set_take_focus(&self, take_focus: bool)
fn connect_activate_current<F: Fn(&Self, bool) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_activate_current(&self, force_hide: bool)
fn connect_cancel<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn emit_cancel(&self)
fn connect_cycle_focus<F: Fn(&Self, DirectionType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_cycle_focus(&self, direction: DirectionType)
fn connect_deactivate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_insert<F: Fn(&Self, &Widget, i32) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_move_current<F: Fn(&Self, MenuDirectionType) + 'static>( &self, f: F, ) -> SignalHandlerId
fn emit_move_current(&self, direction: MenuDirectionType)
fn connect_move_selected<F: Fn(&Self, i32) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_selection_done<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_take_focus_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.