BoxLayoutRef
public struct BoxLayoutRef : BoxLayoutProtocol, GWeakCapturing
GtkBoxLayout
is a layout manager that arranges children in a single
row or column.
Whether it is a row or column depends on the value of its
[propertyGtk.Orientable:orientation
] property. Within the other dimension
all children all allocated the same size. The GtkBoxLayout
will respect
the [propertyGtk.Widget:halign
] and [propertyGtk.Widget:valign
]
properties of each child widget.
If you want all children to be assigned the same size, you can use
the [propertyGtk.BoxLayout:homogeneous
] property.
If you want to specify the amount of space placed between each child,
you can use the [propertyGtk.BoxLayout:spacing
] property.
The BoxLayoutRef
type acts as a lightweight Swift reference to an underlying GtkBoxLayout
instance.
It exposes methods that can operate on this data type through BoxLayoutProtocol
conformance.
Use BoxLayoutRef
only as an unowned
reference to an existing GtkBoxLayout
instance.
-
Untyped pointer to the underlying `GtkBoxLayout` instance.
For type-safe access, use the generated, typed pointer
box_layout_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkBoxLayout>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkBoxLayout>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkBoxLayout>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkBoxLayout>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
BoxLayoutProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : BoxLayoutProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> BoxLayoutRef where T : BoxLayoutProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BoxLayoutProtocol
.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>)
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BoxLayoutProtocol
.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BoxLayoutProtocol
.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BoxLayoutProtocol
.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
BoxLayoutProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a new
GtkBoxLayout
.Declaration
Swift
@inlinable init(orientation: GtkOrientation)