Struct gio::MenuItem
[−]
pub struct MenuItem(_, _);
Methods
impl MenuItem
[src]
fn new<'a, 'b, T: Into<Option<&'a str>>, U: Into<Option<&'b str>>>(label: T,
detailed_action: U)
-> MenuItem
detailed_action: U)
-> MenuItem
fn new_section<'a, T: Into<Option<&'a str>>, U: IsA<MenuModel>>(label: T,
section: &U)
-> MenuItem
section: &U)
-> MenuItem
fn set_action_and_target_value<'a, T: Into<Option<&'a str>>>(&self,
action: T,
target_value: Option<&Variant>)
action: T,
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<'a, T: Into<Option<&'a str>>>(&self, label: T)
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 !=
.