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)

  • Distributes extra_space to child sizes by bringing smaller children up to natural size first.

    The remaining space will be added to the minimum_size member of the GtkRequestedSize struct. If all sizes reach their natural size then the remaining space is returned.

    Declaration

    Swift

    @inlinable
    func distributeNaturalAllocation(extraSpace: Int, nRequestedSizes: Int) -> Int
  • 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 }