[]Struct gtk::Toolbar

pub struct Toolbar(_, _);

A toolbar is created with a call to Toolbar::new.

A toolbar can contain instances of a subclass of ToolItem. To add a ToolItem to the a toolbar, use ToolbarExt::insert. To remove an item from the toolbar use ContainerExt::remove. To add a button to the toolbar, add an instance of ToolButton.

Toolbar items can be visually grouped by adding instances of SeparatorToolItem to the toolbar. If the Toolbar child property “expand” is true and the property SeparatorToolItem:draw is set to false, the effect is to force all following items to the end of the toolbar.

By default, a toolbar can be shrunk, upon which it will add an arrow button to show an overflow menu offering access to any ToolItem child that has a proxy menu item. To disable this and request enough size for all children, call ToolbarExt::set_show_arrow to set Toolbar:show-arrow to false.

Creating a context menu for the toolbar can be done by connecting to the Toolbar::popup-context-menu signal.

CSS nodes

Toolbar has a single CSS node with name toolbar.

Implements

ToolbarExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, OrientableExt, ToolShellExt, WidgetExtManual, BuildableExtManual

Implementations

impl Toolbar[src]

pub fn new() -> Toolbar[src]

Creates a new toolbar.

Returns

the newly-created toolbar.

Trait Implementations

impl Clone for Toolbar

impl Debug for Toolbar

impl Default for Toolbar[src]

impl Display for Toolbar[src]

impl Eq for Toolbar

impl Hash for Toolbar

impl IsA<Buildable> for Toolbar

impl IsA<Container> for Toolbar

impl IsA<Orientable> for Toolbar

impl IsA<ToolShell> for Toolbar

impl IsA<Widget> for Toolbar

impl Ord for Toolbar

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

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

impl StaticType for Toolbar

Auto Trait Implementations

impl RefUnwindSafe for Toolbar

impl !Send for Toolbar

impl !Sync for Toolbar

impl Unpin for Toolbar

impl UnwindSafe for Toolbar

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.