[]Struct gtk::MenuToolButton

pub struct MenuToolButton(_, _);

A MenuToolButton is a ToolItem that contains a button and a small additional button with an arrow. When clicked, the arrow button pops up a dropdown menu.

Use MenuToolButton::new to create a new MenuToolButton.

MenuToolButton as Buildable

The MenuToolButton implementation of the Buildable interface supports adding a menu by specifying “menu” as the “type” attribute of a <child> element.

An example for a UI definition fragment with menus:

<object class="GtkMenuToolButton">
  <child type="menu">
    <object class="GtkMenu"/>
  </child>
</object>

Implements

MenuToolButtonExt, ToolButtonExt, ToolItemExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, ActionableExt, WidgetExtManual, BuildableExtManual

Implementations

impl MenuToolButton[src]

pub fn new<P: IsA<Widget>>(
    icon_widget: Option<&P>,
    label: Option<&str>
) -> MenuToolButton
[src]

Creates a new MenuToolButton using icon_widget as icon and label as label.

icon_widget

a widget that will be used as icon widget, or None

label

a string that will be used as label, or None

Returns

the new MenuToolButton

Trait Implementations

impl Clone for MenuToolButton

impl Debug for MenuToolButton

impl Display for MenuToolButton[src]

impl Eq for MenuToolButton

impl Hash for MenuToolButton

impl IsA<Actionable> for MenuToolButton

impl IsA<Bin> for MenuToolButton

impl IsA<Buildable> for MenuToolButton

impl IsA<Container> for MenuToolButton

impl IsA<ToolButton> for MenuToolButton

impl IsA<ToolItem> for MenuToolButton

impl IsA<Widget> for MenuToolButton

impl Ord for MenuToolButton

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

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

impl StaticType for MenuToolButton

Auto Trait Implementations

impl RefUnwindSafe for MenuToolButton

impl !Send for MenuToolButton

impl !Sync for MenuToolButton

impl Unpin for MenuToolButton

impl UnwindSafe for MenuToolButton

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.