[]Struct gtk::ToolButton

pub struct ToolButton(_, _);

GtkToolButtons are GtkToolItems containing buttons.

Use ToolButton::new to create a new ToolButton.

The label of a ToolButton is determined by the properties ToolButton:label-widget, ToolButton:label, and ToolButton:stock-id. If ToolButton:label-widget is non-None, then that widget is used as the label. Otherwise, if ToolButton:label is non-None, that string is used as the label. Otherwise, if ToolButton:stock-id is non-None, the label is determined by the stock item. Otherwise, the button does not have a label.

The icon of a ToolButton is determined by the properties ToolButton:icon-widget and ToolButton:stock-id. If ToolButton:icon-widget is non-None, then that widget is used as the icon. Otherwise, if ToolButton:stock-id is non-None, the icon is determined by the stock item. Otherwise, the button does not have a icon.

CSS nodes

ToolButton has a single CSS node with name toolbutton.

Implements

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

Implementations

impl ToolButton[src]

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

Creates a new ToolButton using icon_widget as contents and label as label.

icon_widget

a widget that will be used as the button contents, or None

label

a string that will be used as label, or None

Returns

A new ToolButton

Trait Implementations

impl Clone for ToolButton

impl Debug for ToolButton

impl Display for ToolButton[src]

impl Eq for ToolButton

impl Hash for ToolButton

impl IsA<Actionable> for ToolButton

impl IsA<Bin> for ToolButton

impl IsA<Buildable> for ToolButton

impl IsA<Container> for ToolButton

impl IsA<ToolButton> for MenuToolButton

impl IsA<ToolButton> for RadioToolButton

impl IsA<ToolButton> for ToggleToolButton

impl IsA<ToolItem> for ToolButton

impl IsA<Widget> for ToolButton

impl Ord for ToolButton

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

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

impl StaticType for ToolButton

Auto Trait Implementations

impl RefUnwindSafe for ToolButton

impl !Send for ToolButton

impl !Sync for ToolButton

impl Unpin for ToolButton

impl UnwindSafe for ToolButton

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.