[][src]Enum gtk::ButtonBoxStyle

#[non_exhaustive]pub enum ButtonBoxStyle {
    Spread,
    Edge,
    Start,
    End,
    Center,
    Expand,
    // 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.
Spread

Buttons are evenly spread across the box.

Edge

Buttons are placed at the edges of the box.

Start

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

End

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

Center

Buttons are centered in the box. Since 2.12.

Expand

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

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
[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.