Structures

The following structures are available globally.

Context Record

  • 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

Device Record

  • 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

FontOptions Record

  • 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

FontFace Record

  • 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

Matrix Record

  • 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

Pattern Record

  • 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

Path Record

  • 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

Region Record

  • 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

Rectangle Record

  • 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

RectangleInt Record

  • 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

Surface Record

  • 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

ScaledFont Record

  • 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