Trait OptionMenuExt

Source
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§

Source

fn activate_item(&self, index: u32)

Source

fn close(&self)

Source

fn event(&self) -> Option<Event>

Available on crate feature v2_40 only.
Source

fn item(&self, index: u32) -> Option<OptionMenuItem>

Source

fn n_items(&self) -> u32

Source

fn select_item(&self, index: u32)

Source

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.

Implementors§