pub trait OptionMenuExt:
IsA<OptionMenu>
+ Sealed
+ 'static {
// Provided methods
fn activate_item(&self, index: u32) { ... }
fn close(&self) { ... }
fn event(&self) -> Option<Event> { ... }
fn item(&self, index: u32) -> Option<OptionMenuItem> { ... }
fn n_items(&self) -> u32 { ... }
fn select_item(&self, index: u32) { ... }
fn connect_close<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
}
Available on crate feature
v2_18
only.Provided Methods§
fn activate_item(&self, index: u32)
fn close(&self)
fn event(&self) -> Option<Event>
Available on crate feature
v2_40
only.fn item(&self, index: u32) -> Option<OptionMenuItem>
fn n_items(&self) -> u32
fn select_item(&self, index: u32)
fn connect_close<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.