RequestedSizeProtocol

public protocol RequestedSizeProtocol

Represents a request of a screen object in a given orientation. These are primarily used in container implementations when allocating a natural size for children calling. See gtk_distribute_natural_allocation().

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

  • ptr

    Untyped pointer to the underlying GtkRequestedSize instance.

    Declaration

    Swift

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

    Typed pointer to the underlying GtkRequestedSize instance.

    Default Implementation

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

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GtkRequestedSize>! { get }
  • Required Initialiser for types conforming to RequestedSizeProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

RequestedSize Record: RequestedSizeProtocol extension (methods and fields)

  • data Extension method

    A client pointer

    Declaration

    Swift

    @inlinable
    var data: gpointer! { get set }
  • minimumSize Extension method

    The minimum size needed for allocation in a given orientation

    Declaration

    Swift

    @inlinable
    var minimumSize: gint { get set }
  • naturalSize Extension method

    The natural size for allocation in a given orientation

    Declaration

    Swift

    @inlinable
    var naturalSize: gint { get set }