RequisitionProtocol
public protocol RequisitionProtocol
A GtkRequisition represents the desired size of a widget. See
GtkWidget’s geometry management section for
more information.
The RequisitionProtocol protocol exposes the methods and properties of an underlying GtkRequisition 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 Requisition.
Alternatively, use RequisitionRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkRequisitioninstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
requisition_ptrDefault implementationTyped pointer to the underlying
GtkRequisitioninstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRequisitioninstance.Declaration
Swift
var requisition_ptr: UnsafeMutablePointer<GtkRequisition>! { get } -
Required Initialiser for types conforming to
RequisitionProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCopies a
GtkRequisition.Declaration
Swift
@inlinable func copy() -> RequisitionRef! -
free()Extension methodFrees a
GtkRequisition.Declaration
Swift
@inlinable func free() -
widthExtension methodthe widget’s desired width
Declaration
Swift
@inlinable var width: gint { get set } -
heightExtension methodthe widget’s desired height
Declaration
Swift
@inlinable var height: gint { get set }
View on GitHub
Install in Dash
RequisitionProtocol Protocol Reference