-
Cast constructor, converting any binary integer to a
ButtonBoxStyle
.Declaration
Swift
@inlinable init!<I>(_ raw: I) where I : BinaryInteger
Parameters
raw
The raw integer value to initialise the enum from
-
Buttons are evenly spread across the box.
Declaration
Swift
static let spread: GtkButtonBoxStyle
-
Buttons are placed at the edges of the box.
Declaration
Swift
static let edge: GtkButtonBoxStyle
-
Buttons are grouped towards the start of the box, (on the left for a HBox, or the top for a VBox).
Declaration
Swift
static let start: GtkButtonBoxStyle
-
Buttons are grouped towards the end of the box, (on the right for a HBox, or the bottom for a VBox).
Declaration
Swift
static let end: GtkButtonBoxStyle
-
Buttons are centered in the box. Since 2.12.
Declaration
Swift
static let center: GtkButtonBoxStyle
-
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
gtk_box_set_homogeneous()
andgtk_box_set_spacing()
manually). Since 3.12.Declaration
Swift
static let expand: GtkButtonBoxStyle