BinLayoutProtocol

public protocol BinLayoutProtocol : LayoutManagerProtocol

GtkBinLayout is a GtkLayoutManager subclass useful for create “bins” of widgets.

GtkBinLayout will stack each child of a widget on top of each other, using the [propertyGtk.Widget:hexpand], [propertyGtk.Widget:vexpand], [propertyGtk.Widget:halign], and [propertyGtk.Widget:valign] properties of each child to determine where they should be positioned.

The BinLayoutProtocol protocol exposes the methods and properties of an underlying GtkBinLayout instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see BinLayout. Alternatively, use BinLayoutRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkBinLayout instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • bin_layout_ptr Default implementation

    Typed pointer to the underlying GtkBinLayout instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkBinLayout instance.

    Declaration

    Swift

    var bin_layout_ptr: UnsafeMutablePointer<GtkBinLayout>! { get }
  • Required Initialiser for types conforming to BinLayoutProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)