[][src]Struct gio::MenuItem

pub struct MenuItem(_, _);

Implementations

impl MenuItem[src]

pub fn new(label: Option<&str>, detailed_action: Option<&str>) -> MenuItem[src]

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

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

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

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

pub fn set_action_and_target_value(
    &self,
    action: Option<&str>,
    target_value: Option<&Variant>
)
[src]

pub fn set_attribute_value(&self, attribute: &str, value: Option<&Variant>)[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(&self, label: Option<&str>)[src]

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

pub fn set_submenu<P: IsA<MenuModel>>(&self, submenu: Option<&P>)[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<'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.