Structures

The following structures are available globally.

  • The ContextRef type acts as a lightweight Swift reference to an underlying cairo_t instance. It exposes methods that can operate on this data type through ContextProtocol conformance. Use ContextRef only as an unowned reference to an existing cairo_t instance.

    See more

    Declaration

    Swift

    public struct ContextRef : ContextProtocol
  • The DeviceRef type acts as a lightweight Swift reference to an underlying cairo_device_t instance. It exposes methods that can operate on this data type through DeviceProtocol conformance. Use DeviceRef only as an unowned reference to an existing cairo_device_t instance.

    See more

    Declaration

    Swift

    public struct DeviceRef : DeviceProtocol
  • The SurfaceRef type acts as a lightweight Swift reference to an underlying cairo_surface_t instance. It exposes methods that can operate on this data type through SurfaceProtocol conformance. Use SurfaceRef only as an unowned reference to an existing cairo_surface_t instance.

    See more

    Declaration

    Swift

    public struct SurfaceRef : SurfaceProtocol
  • The MatrixRef type acts as a lightweight Swift reference to an underlying cairo_matrix_t instance. It exposes methods that can operate on this data type through MatrixProtocol conformance. Use MatrixRef only as an unowned reference to an existing cairo_matrix_t instance.

    See more

    Declaration

    Swift

    public struct MatrixRef : MatrixProtocol
  • The PatternRef type acts as a lightweight Swift reference to an underlying cairo_pattern_t instance. It exposes methods that can operate on this data type through PatternProtocol conformance. Use PatternRef only as an unowned reference to an existing cairo_pattern_t instance.

    See more

    Declaration

    Swift

    public struct PatternRef : PatternProtocol
  • The RegionRef type acts as a lightweight Swift reference to an underlying cairo_region_t instance. It exposes methods that can operate on this data type through RegionProtocol conformance. Use RegionRef only as an unowned reference to an existing cairo_region_t instance.

    See more

    Declaration

    Swift

    public struct RegionRef : RegionProtocol
  • The FontOptionsRef type acts as a lightweight Swift reference to an underlying cairo_font_options_t instance. It exposes methods that can operate on this data type through FontOptionsProtocol conformance. Use FontOptionsRef only as an unowned reference to an existing cairo_font_options_t instance.

    See more

    Declaration

    Swift

    public struct FontOptionsRef : FontOptionsProtocol
  • The FontFaceRef type acts as a lightweight Swift reference to an underlying cairo_font_face_t instance. It exposes methods that can operate on this data type through FontFaceProtocol conformance. Use FontFaceRef only as an unowned reference to an existing cairo_font_face_t instance.

    See more

    Declaration

    Swift

    public struct FontFaceRef : FontFaceProtocol
  • The ScaledFontRef type acts as a lightweight Swift reference to an underlying cairo_scaled_font_t instance. It exposes methods that can operate on this data type through ScaledFontProtocol conformance. Use ScaledFontRef only as an unowned reference to an existing cairo_scaled_font_t instance.

    See more

    Declaration

    Swift

    public struct ScaledFontRef : ScaledFontProtocol
  • The PathRef type acts as a lightweight Swift reference to an underlying cairo_path_t instance. It exposes methods that can operate on this data type through PathProtocol conformance. Use PathRef only as an unowned reference to an existing cairo_path_t instance.

    See more

    Declaration

    Swift

    public struct PathRef : PathProtocol
  • The RectangleRef type acts as a lightweight Swift reference to an underlying cairo_rectangle_t instance. It exposes methods that can operate on this data type through RectangleProtocol conformance. Use RectangleRef only as an unowned reference to an existing cairo_rectangle_t instance.

    See more

    Declaration

    Swift

    public struct RectangleRef : RectangleProtocol
  • The RectangleIntRef type acts as a lightweight Swift reference to an underlying cairo_rectangle_int_t instance. It exposes methods that can operate on this data type through RectangleIntProtocol conformance. Use RectangleIntRef only as an unowned reference to an existing cairo_rectangle_int_t instance.

    See more

    Declaration

    Swift

    public struct RectangleIntRef : RectangleIntProtocol