pub trait ContextMenuExt:
IsA<ContextMenu>
+ Sealed
+ 'static {
Show 14 methods
// Provided methods
fn append(&self, item: &impl IsA<ContextMenuItem>) { ... }
fn first(&self) -> Option<ContextMenuItem> { ... }
fn event(&self) -> Option<Event> { ... }
fn item_at_position(&self, position: u32) -> Option<ContextMenuItem> { ... }
fn items(&self) -> Vec<ContextMenuItem> { ... }
fn n_items(&self) -> u32 { ... }
fn user_data(&self) -> Option<Variant> { ... }
fn insert(&self, item: &impl IsA<ContextMenuItem>, position: i32) { ... }
fn last(&self) -> Option<ContextMenuItem> { ... }
fn move_item(&self, item: &impl IsA<ContextMenuItem>, position: i32) { ... }
fn prepend(&self, item: &impl IsA<ContextMenuItem>) { ... }
fn remove(&self, item: &impl IsA<ContextMenuItem>) { ... }
fn remove_all(&self) { ... }
fn set_user_data(&self, user_data: &Variant) { ... }
}
Provided Methods§
fn append(&self, item: &impl IsA<ContextMenuItem>)
fn first(&self) -> Option<ContextMenuItem>
fn event(&self) -> Option<Event>
Available on crate feature
v2_40
only.fn item_at_position(&self, position: u32) -> Option<ContextMenuItem>
fn items(&self) -> Vec<ContextMenuItem>
fn n_items(&self) -> u32
fn user_data(&self) -> Option<Variant>
Available on crate feature
v2_8
only.fn insert(&self, item: &impl IsA<ContextMenuItem>, position: i32)
fn last(&self) -> Option<ContextMenuItem>
fn move_item(&self, item: &impl IsA<ContextMenuItem>, position: i32)
fn prepend(&self, item: &impl IsA<ContextMenuItem>)
fn remove(&self, item: &impl IsA<ContextMenuItem>)
fn remove_all(&self)
fn set_user_data(&self, user_data: &Variant)
Available on crate feature
v2_8
only.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.