PointProtocol
public protocol PointProtocol
The PointProtocol
protocol exposes the methods and properties of an underlying GdkPoint
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 Point
.
Alternatively, use PointRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
Defines the x and y coordinates of a point.
-
Untyped pointer to the underlying
GdkPoint
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
GdkPoint
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkPoint
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkPoint>! { get }
-
Required Initialiser for types conforming to
PointProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)