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
GtkRequisition
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
requisition_ptr
Default implementationTyped pointer to the underlying
GtkRequisition
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkRequisition
instance.Declaration
Swift
var requisition_ptr: UnsafeMutablePointer<GtkRequisition>! { get }
-
Required Initialiser for types conforming to
RequisitionProtocol
Declaration
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()
-
width
Extension methodthe widget’s desired width
Declaration
Swift
@inlinable var width: gint { get set }
-
height
Extension methodthe widget’s desired height
Declaration
Swift
@inlinable var height: gint { get set }