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.
-
Untyped pointer to the underlying
GtkCustomLayoutinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
custom_layout_ptrDefault implementationTyped pointer to the underlying
GtkCustomLayoutinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkCustomLayoutinstance.Declaration
Swift
var custom_layout_ptr: UnsafeMutablePointer<GtkCustomLayout>! { get } -
Required Initialiser for types conforming to
CustomLayoutProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
View on GitHub
Install in Dash
CustomLayoutProtocol Protocol Reference