Trait GtkMenuItemExt

Source
pub trait GtkMenuItemExt: 'static {
Show 27 methods // Required methods fn deselect(&self); fn get_accel_path(&self) -> Option<GString>; fn get_label(&self) -> Option<GString>; fn get_reserve_indicator(&self) -> bool; fn get_submenu(&self) -> Option<Widget>; fn get_use_underline(&self) -> bool; fn select(&self); fn set_accel_path(&self, accel_path: Option<&str>); fn set_label(&self, label: &str); fn set_reserve_indicator(&self, reserve: bool); fn set_submenu<P: IsA<Menu>>(&self, submenu: Option<&P>); fn set_use_underline(&self, setting: bool); fn toggle_size_allocate(&self, allocation: i32); fn toggle_size_request(&self, requisition: &mut i32); fn get_property_right_justified(&self) -> bool; fn set_property_right_justified(&self, right_justified: bool); fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn emit_activate(&self); fn connect_activate_item<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_deselect<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_select<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_toggle_size_allocate<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_accel_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_label_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_right_justified_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_submenu_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_use_underline_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn deselect(&self)

Source

fn get_accel_path(&self) -> Option<GString>

Source

fn get_label(&self) -> Option<GString>

Source

fn get_reserve_indicator(&self) -> bool

Source

fn get_submenu(&self) -> Option<Widget>

Source

fn get_use_underline(&self) -> bool

Source

fn select(&self)

Source

fn set_accel_path(&self, accel_path: Option<&str>)

Source

fn set_label(&self, label: &str)

Source

fn set_reserve_indicator(&self, reserve: bool)

Source

fn set_submenu<P: IsA<Menu>>(&self, submenu: Option<&P>)

Source

fn set_use_underline(&self, setting: bool)

Source

fn toggle_size_allocate(&self, allocation: i32)

Source

fn toggle_size_request(&self, requisition: &mut i32)

Source

fn get_property_right_justified(&self) -> bool

Source

fn set_property_right_justified(&self, right_justified: bool)

Source

fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn emit_activate(&self)

Source

fn connect_activate_item<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_deselect<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_select<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Source

fn connect_toggle_size_allocate<F: Fn(&Self, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_accel_path_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_label_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_right_justified_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_submenu_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_property_use_underline_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.

Implementors§