Trait gtk::MenuItemExt
[−]
[src]
pub trait MenuItemExt { fn deselect(&self); fn get_accel_path(&self) -> Option<String>; fn get_label(&self) -> Option<String>; 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<'a, P: Into<Option<&'a str>>>(&self, accel_path: P); fn set_label(&self, label: &str); fn set_reserve_indicator(&self, reserve: bool); fn set_submenu<'a, P: IsA<Menu> + 'a, Q: Into<Option<&'a P>>>(
&self,
submenu: Q
); 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
fn deselect(&self)
fn get_accel_path(&self) -> Option<String>
fn get_label(&self) -> Option<String>
fn get_reserve_indicator(&self) -> bool
fn get_use_underline(&self) -> bool
fn select(&self)
fn set_accel_path<'a, P: Into<Option<&'a str>>>(&self, accel_path: P)
fn set_label(&self, label: &str)
fn set_reserve_indicator(&self, reserve: bool)
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
&self,
f: F
) -> SignalHandlerId
fn connect_property_accel_path_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_right_justified_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_underline_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId