Struct gio::Menu
[−]
pub struct Menu(_, _);
Methods
impl Menu[src]
fn new() -> Menu
fn append<'a, 'b, T: Into<Option<&'a str>>, U: Into<Option<&'b str>>>(&self,
label: T,
detailed_action: U)
label: T,
detailed_action: U)
fn append_item(&self, item: &MenuItem)
fn append_section<'a, T: Into<Option<&'a str>>, U: IsA<MenuModel>>(&self,
label: T,
section: &U)
label: T,
section: &U)
fn freeze(&self)
fn insert<'a, 'b, T: Into<Option<&'a str>>, U: Into<Option<&'b str>>>(&self,
position: i32,
label: T,
detailed_action: U)
position: i32,
label: T,
detailed_action: U)
fn insert_item(&self, position: i32, item: &MenuItem)
fn insert_section<'a, T: Into<Option<&'a str>>, U: IsA<MenuModel>>(&self,
position: i32,
label: T,
section: &U)
position: i32,
label: T,
section: &U)
fn prepend<'a, 'b, T: Into<Option<&'a str>>, U: Into<Option<&'b str>>>(&self,
label: T,
detailed_action: U)
label: T,
detailed_action: U)
fn prepend_item(&self, item: &MenuItem)
fn prepend_section<'a, T: Into<Option<&'a str>>, U: IsA<MenuModel>>(&self,
label: T,
section: &U)
label: T,
section: &U)
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 !=.