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.
-
Untyped pointer to the underlying
GtkRequestedSize
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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)
-
data
Extension methodA client pointer
Declaration
Swift
@inlinable var data: gpointer! { get set }
-
minimumSize
Extension methodThe minimum size needed for allocation in a given orientation
Declaration
Swift
@inlinable var minimumSize: gint { get set }
-
naturalSize
Extension methodThe natural size for allocation in a given orientation
Declaration
Swift
@inlinable var naturalSize: gint { get set }