Trait gtk::prelude::GtkMenuItemExt
source · [−]pub trait GtkMenuItemExt: 'static {
Show 27 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 get_accel_path(&self) -> Option<GString>
source
fn get_reserve_indicator(&self) -> bool
source
fn get_use_underline(&self) -> bool
source
fn set_accel_path(&self, accel_path: Option<&str>)
source
fn set_reserve_indicator(&self, reserve: bool)
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
sourcefn connect_toggle_size_allocate<F: Fn(&Self, i32) + 'static>(
fn connect_toggle_size_allocate<F: Fn(&Self, i32) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_accel_path_notify<F: Fn(&Self) + 'static>(
fn connect_property_accel_path_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_label_notify<F: Fn(&Self) + 'static>(
fn connect_property_label_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_right_justified_notify<F: Fn(&Self) + 'static>(
fn connect_property_right_justified_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_use_underline_notify<F: Fn(&Self) + 'static>(