Struct gio::MenuItem
[−]
pub struct MenuItem(_, _);
Methods
impl MenuItem[src]
fn new<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
label: P,
detailed_action: Q
) -> MenuItem
label: P,
detailed_action: Q
) -> MenuItem
fn new_from_model<P: IsA<MenuModel>>(model: &P, item_index: i32) -> MenuItem
fn new_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
label: P,
section: &Q
) -> MenuItem
label: P,
section: &Q
) -> MenuItem
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 given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
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) -> bool1.0.0
This method tests for !=.