[]Struct gtk::ToolItem

pub struct ToolItem(_, _);

GtkToolItems are widgets that can appear on a toolbar. To create a toolbar item that contain something else than a button, use ToolItem::new. Use ContainerExt::add to add a child widget to the tool item.

For toolbar items that contain buttons, see the ToolButton, ToggleToolButton and RadioToolButton classes.

See the Toolbar class for a description of the toolbar widget, and ToolShell for a description of the tool shell interface.

Implements

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

Implementations

impl ToolItem[src]

pub fn new() -> ToolItem[src]

Creates a new ToolItem

Returns

the new ToolItem

Trait Implementations

impl Clone for ToolItem

impl Debug for ToolItem

impl Default for ToolItem[src]

impl Display for ToolItem[src]

impl Eq for ToolItem

impl Hash for ToolItem

impl IsA<Bin> for ToolItem

impl IsA<Buildable> for ToolItem

impl IsA<Container> for ToolItem

impl IsA<ToolItem> for MenuToolButton

impl IsA<ToolItem> for RadioToolButton

impl IsA<ToolItem> for SeparatorToolItem

impl IsA<ToolItem> for ToggleToolButton

impl IsA<ToolItem> for ToolButton

impl IsA<Widget> for ToolItem

impl Ord for ToolItem

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

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

impl StaticType for ToolItem

Auto Trait Implementations

impl RefUnwindSafe for ToolItem

impl !Send for ToolItem

impl !Sync for ToolItem

impl Unpin for ToolItem

impl UnwindSafe for ToolItem

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.