Struct gio::Menu
[−]
pub struct Menu(_, _);
Methods
impl Menu[src]
fn new() -> Menu
fn append(&self, label: Option<&str>, detailed_action: Option<&str>)
fn append_item(&self, item: &MenuItem)
fn append_section<T: IsA<MenuModel>>(&self, label: Option<&str>, section: &T)
fn freeze(&self)
fn insert(&self,
position: i32,
label: Option<&str>,
detailed_action: Option<&str>)
position: i32,
label: Option<&str>,
detailed_action: Option<&str>)
fn insert_item(&self, position: i32, item: &MenuItem)
fn insert_section<T: IsA<MenuModel>>(&self,
position: i32,
label: Option<&str>,
section: &T)
position: i32,
label: Option<&str>,
section: &T)
fn prepend(&self, label: Option<&str>, detailed_action: Option<&str>)
fn prepend_item(&self, item: &MenuItem)
fn prepend_section<T: IsA<MenuModel>>(&self, label: Option<&str>, section: &T)
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 state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
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 !=.