CustomLayoutProtocol

public protocol CustomLayoutProtocol : LayoutManagerProtocol

GtkCustomLayout uses closures for size negotiation.

A GtkCustomLayoutuses closures matching to the old GtkWidget virtual functions for size negotiation, as a convenience API to ease the porting towards the corresponding `GtkLayoutManager virtual functions.

The CustomLayoutProtocol protocol exposes the methods and properties of an underlying GtkCustomLayout 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 CustomLayout. Alternatively, use CustomLayoutRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkCustomLayout instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkCustomLayout instance.

    Default Implementation

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

    Declaration

    Swift

    var custom_layout_ptr: UnsafeMutablePointer<GtkCustomLayout>! { get }
  • Required Initialiser for types conforming to CustomLayoutProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)