[]Struct gtk::CheckMenuItem

pub struct CheckMenuItem(_, _);

A CheckMenuItem is a menu item that maintains the state of a boolean value in addition to a MenuItem usual role in activating application code.

A check box indicating the state of the boolean value is displayed at the left side of the MenuItem. Activating the MenuItem toggles the value.

CSS nodes

menuitem
├── check.left
╰── <child>

CheckMenuItem has a main CSS node with name menuitem, and a subnode with name check, which gets the .left or .right style class.

Implements

CheckMenuItemExt, GtkMenuItemExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, ActionableExt, WidgetExtManual, BuildableExtManual

Implementations

impl CheckMenuItem[src]

pub fn new() -> CheckMenuItem[src]

Creates a new CheckMenuItem.

Returns

a new CheckMenuItem.

pub fn with_label(label: &str) -> CheckMenuItem[src]

pub fn with_mnemonic(label: &str) -> CheckMenuItem[src]

Trait Implementations

impl Clone for CheckMenuItem

impl Debug for CheckMenuItem

impl Default for CheckMenuItem[src]

impl Display for CheckMenuItem[src]

impl Eq for CheckMenuItem

impl Hash for CheckMenuItem

impl IsA<Actionable> for CheckMenuItem

impl IsA<Bin> for CheckMenuItem

impl IsA<Buildable> for CheckMenuItem

impl IsA<CheckMenuItem> for RadioMenuItem

impl IsA<Container> for CheckMenuItem

impl IsA<MenuItem> for CheckMenuItem

impl IsA<Widget> for CheckMenuItem

impl Ord for CheckMenuItem

impl<T: ObjectType> PartialEq<T> for CheckMenuItem

impl<T: ObjectType> PartialOrd<T> for CheckMenuItem

impl StaticType for CheckMenuItem

Auto Trait Implementations

impl RefUnwindSafe for CheckMenuItem

impl !Send for CheckMenuItem

impl !Sync for CheckMenuItem

impl Unpin for CheckMenuItem

impl UnwindSafe for CheckMenuItem

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>, 

impl<T> Cast for T where
    T: ObjectType, 

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, 

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

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.