Trait webkit2gtk::ContextMenuExt
source · 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 item_at_position(&self, position: u32) -> Option<ContextMenuItem>
fn items(&self) -> Vec<ContextMenuItem>
fn n_items(&self) -> u32
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)
sourcefn set_user_data(&self, user_data: &Variant)
fn set_user_data(&self, user_data: &Variant)
Available on crate feature
v2_8
only.Object Safety§
This trait is not object safe.