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.

  • ptr

    Untyped pointer to the underlying GdkPoint instance.

    Declaration

    Swift

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

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

Point Record: PointProtocol extension (methods and fields)

  • x Extension method

    the x coordinate of the point.

    Declaration

    Swift

    @inlinable
    var x: gint { get set }
  • y Extension method

    the y coordinate of the point.

    Declaration

    Swift

    @inlinable
    var y: gint { get set }