RectangleProtocol

public protocol RectangleProtocol

A data structure for holding a rectangle. Those coordinates are relative to the component top-level parent.

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

  • ptr

    Untyped pointer to the underlying AtkRectangle instance.

    Declaration

    Swift

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

    Typed pointer to the underlying AtkRectangle instance.

    Default Implementation

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

    Declaration

    Swift

    var rectangle_ptr: UnsafeMutablePointer<AtkRectangle>! { get }
  • Required Initialiser for types conforming to RectangleProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Rectangle Record: RectangleProtocol extension (methods and fields)

  • x Extension method

    X coordinate of the left side of the rectangle.

    Declaration

    Swift

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

    Y coordinate of the top side of the rectangle.

    Declaration

    Swift

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

    width of the rectangle.

    Declaration

    Swift

    @inlinable
    var width: gint { get set }
  • height Extension method

    height of the rectangle.

    Declaration

    Swift

    @inlinable
    var height: gint { get set }