Struct gio::MenuItem[][src]

pub struct MenuItem(_, _);

Implementations

impl MenuItem[src]

pub fn new<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
    label: P,
    detailed_action: Q
) -> MenuItem
[src]

pub fn new_from_model<P: IsA<MenuModel>>(model: &P, item_index: i32) -> MenuItem[src]

pub fn new_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
    label: P,
    section: &Q
) -> MenuItem
[src]

pub fn new_submenu<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
    label: P,
    submenu: &Q
) -> MenuItem
[src]

pub fn get_attribute_value<'a, P: Into<Option<&'a VariantTy>>>(
    &self,
    attribute: &str,
    expected_type: P
) -> Option<Variant>
[src]

pub fn set_action_and_target_value<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b Variant>>>(
    &self,
    action: P,
    target_value: Q
)
[src]

pub fn set_attribute_value<'a, P: Into<Option<&'a Variant>>>(
    &self,
    attribute: &str,
    value: P
)
[src]

pub fn set_detailed_action(&self, detailed_action: &str)[src]

pub fn set_icon<P: IsA<Icon>>(&self, icon: &P)[src]

pub fn set_label<'a, P: Into<Option<&'a str>>>(&self, label: P)[src]

pub fn set_section<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    section: Q
)
[src]

pub fn set_submenu<'a, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    submenu: Q
)
[src]

Trait Implementations

impl Clone for MenuItem[src]

impl Debug for MenuItem[src]

impl Display for MenuItem[src]

impl Eq for MenuItem[src]

impl Hash for MenuItem[src]

impl Ord for MenuItem[src]

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

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

impl StaticType for MenuItem[src]

Auto Trait Implementations

impl RefUnwindSafe for MenuItem

impl !Send for MenuItem

impl !Sync for MenuItem

impl Unpin for MenuItem

impl UnwindSafe for MenuItem

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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.