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.

  • ptr

    Untyped pointer to the underlying GtkRequisition instance.

    Declaration

    Swift

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

    Typed 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)

Requisition Record: RequisitionProtocol extension (methods and fields)

  • copy() Extension method

    Copies a GtkRequisition.

    Declaration

    Swift

    @inlinable
    func copy() -> RequisitionRef!
  • free() Extension method

    Frees a GtkRequisition.

    Declaration

    Swift

    @inlinable
    func free()
  • width Extension method

    the widget’s desired width

    Declaration

    Swift

    @inlinable
    var width: gint { get set }
  • height Extension method

    the widget’s desired height

    Declaration

    Swift

    @inlinable
    var height: gint { get set }