[][src]Struct gio::Menu

pub struct Menu(_, _);

Implementations

impl Menu[src]

pub fn new() -> Menu[src]

pub fn append(&self, label: Option<&str>, detailed_action: Option<&str>)[src]

pub fn append_item(&self, item: &MenuItem)[src]

pub fn append_section<P: IsA<MenuModel>>(
    &self,
    label: Option<&str>,
    section: &P
)
[src]

pub fn append_submenu<P: IsA<MenuModel>>(
    &self,
    label: Option<&str>,
    submenu: &P
)
[src]

pub fn freeze(&self)[src]

pub fn insert(
    &self,
    position: i32,
    label: Option<&str>,
    detailed_action: Option<&str>
)
[src]

pub fn insert_item(&self, position: i32, item: &MenuItem)[src]

pub fn insert_section<P: IsA<MenuModel>>(
    &self,
    position: i32,
    label: Option<&str>,
    section: &P
)
[src]

pub fn insert_submenu<P: IsA<MenuModel>>(
    &self,
    position: i32,
    label: Option<&str>,
    submenu: &P
)
[src]

pub fn prepend(&self, label: Option<&str>, detailed_action: Option<&str>)[src]

pub fn prepend_item(&self, item: &MenuItem)[src]

pub fn prepend_section<P: IsA<MenuModel>>(
    &self,
    label: Option<&str>,
    section: &P
)
[src]

pub fn prepend_submenu<P: IsA<MenuModel>>(
    &self,
    label: Option<&str>,
    submenu: &P
)
[src]

pub fn remove(&self, position: i32)[src]

pub fn remove_all(&self)[src]

Trait Implementations

impl Clone for Menu[src]

impl Debug for Menu[src]

impl Default for Menu[src]

impl Display for Menu[src]

impl Eq for Menu[src]

impl Hash for Menu[src]

impl IsA<MenuModel> for Menu[src]

impl Ord for Menu[src]

impl<T: ObjectType> PartialEq<T> for Menu[src]

impl<T: ObjectType> PartialOrd<T> for Menu[src]

impl StaticType for Menu[src]

Auto Trait Implementations

impl RefUnwindSafe for Menu

impl !Send for Menu

impl !Sync for Menu

impl Unpin for Menu

impl UnwindSafe for Menu

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.