[][src]Enum gtk::ButtonBoxStyle

#[non_exhaustive]pub enum ButtonBoxStyle {
    // some variants omitted

Used to dictate the style that a ButtonBox uses to layout the buttons it contains.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Buttons are evenly spread across the box.


Buttons are placed at the edges of the box.


Buttons are grouped towards the start of the box, (on the left for a HBox, or the top for a VBox).


Buttons are grouped towards the end of the box, (on the right for a HBox, or the bottom for a VBox).


Buttons are centered in the box. Since 2.12.


Buttons expand to fill the box. This entails giving buttons a "linked" appearance, making button sizes homogeneous, and setting spacing to 0 (same as calling BoxExt::set_homogeneous and BoxExt::set_spacing manually). Since 3.12.

Trait Implementations

impl Clone for ButtonBoxStyle[src]

impl Copy for ButtonBoxStyle[src]

impl Debug for ButtonBoxStyle[src]

impl Display for ButtonBoxStyle[src]

impl Eq for ButtonBoxStyle[src]

impl<'a> FromValue<'a> for ButtonBoxStyle[src]

impl<'a> FromValueOptional<'a> for ButtonBoxStyle[src]

impl Hash for ButtonBoxStyle[src]

impl Ord for ButtonBoxStyle[src]

impl PartialEq<ButtonBoxStyle> for ButtonBoxStyle[src]

impl PartialOrd<ButtonBoxStyle> for ButtonBoxStyle[src]

impl SetValue for ButtonBoxStyle[src]

impl StaticType for ButtonBoxStyle[src]

impl StructuralEq for ButtonBoxStyle[src]

impl StructuralPartialEq for ButtonBoxStyle[src]

Auto Trait Implementations

impl RefUnwindSafe for ButtonBoxStyle

impl Send for ButtonBoxStyle

impl Sync for ButtonBoxStyle

impl Unpin for ButtonBoxStyle

impl UnwindSafe for ButtonBoxStyle

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.