Struct gio::Menu
[−]
pub struct Menu(_, _);
Methods
impl Menu[src]
fn new() -> Menu
fn append<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
label: P,
detailed_action: Q
)
&self,
label: P,
detailed_action: Q
)
fn append_item(&self, item: &MenuItem)
fn append_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
&self,
label: P,
section: &Q
)
&self,
label: P,
section: &Q
)
fn freeze(&self)
fn insert<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
position: i32,
label: P,
detailed_action: Q
)
&self,
position: i32,
label: P,
detailed_action: Q
)
fn insert_item(&self, position: i32, item: &MenuItem)
fn insert_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
&self,
position: i32,
label: P,
section: &Q
)
&self,
position: i32,
label: P,
section: &Q
)
fn prepend<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
label: P,
detailed_action: Q
)
&self,
label: P,
detailed_action: Q
)
fn prepend_item(&self, item: &MenuItem)
fn prepend_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
&self,
label: P,
section: &Q
)
&self,
label: P,
section: &Q
)
fn remove(&self, position: i32)
Trait Implementations
impl Clone for Menu
fn clone(&self) -> Menu
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 Menu
impl Hash for Menu
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 Menu
fn static_type() -> Type
Returns the type identifier of Self.
impl<T: IsA<Object>> PartialEq<T> for Menu
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 !=.