Struct gio::MenuItem
[−]
pub struct MenuItem(_, _);
Methods
impl MenuItem
[src]
fn new(label: Option<&str>, detailed_action: Option<&str>) -> MenuItem
fn new_section<T: IsA<MenuModel>>(label: Option<&str>, section: &T) -> MenuItem
fn set_action_and_target_value(&self,
action: Option<&str>,
target_value: Option<&Variant>)
action: Option<&str>,
target_value: Option<&Variant>)
fn set_attribute_value(&self, attribute: &str, value: Option<&Variant>)
fn set_detailed_action(&self, detailed_action: &str)
fn set_label(&self, label: Option<&str>)
fn set_link<T: IsA<MenuModel>>(&self, link: &str, model: Option<&T>)
fn set_section<T: IsA<MenuModel>>(&self, section: Option<&T>)
Trait Implementations
impl Clone for MenuItem
fn clone(&self) -> MenuItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for MenuItem
impl Hash for MenuItem
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for MenuItem
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for MenuItem
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.