Protocols
The following protocols are available globally.
-
The
See moreContextProtocol
protocol exposes the methods and properties of an underlyingcairo_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeContext
. Alternatively, useContextRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol ContextProtocol
-
The
See moreDeviceProtocol
protocol exposes the methods and properties of an underlyingcairo_device_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeDevice
. Alternatively, useDeviceRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol DeviceProtocol
-
The
See moreFontOptionsProtocol
protocol exposes the methods and properties of an underlyingcairo_font_options_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeFontOptions
. Alternatively, useFontOptionsRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol FontOptionsProtocol
-
The
See moreFontFaceProtocol
protocol exposes the methods and properties of an underlyingcairo_font_face_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeFontFace
. Alternatively, useFontFaceRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol FontFaceProtocol
-
The
See moreMatrixProtocol
protocol exposes the methods and properties of an underlyingcairo_matrix_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeMatrix
. Alternatively, useMatrixRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol MatrixProtocol
-
The
See morePatternProtocol
protocol exposes the methods and properties of an underlyingcairo_pattern_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seePattern
. Alternatively, usePatternRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol PatternProtocol
-
The
See morePathProtocol
protocol exposes the methods and properties of an underlyingcairo_path_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seePath
. Alternatively, usePathRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol PathProtocol
-
The
See moreRegionProtocol
protocol exposes the methods and properties of an underlyingcairo_region_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeRegion
. Alternatively, useRegionRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol RegionProtocol
-
The
See moreRectangleProtocol
protocol exposes the methods and properties of an underlyingcairo_rectangle_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeRectangle
. Alternatively, useRectangleRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol RectangleProtocol
-
The
See moreRectangleIntProtocol
protocol exposes the methods and properties of an underlyingcairo_rectangle_int_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeRectangleInt
. Alternatively, useRectangleIntRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol RectangleIntProtocol
-
The
See moreSurfaceProtocol
protocol exposes the methods and properties of an underlyingcairo_surface_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeSurface
. Alternatively, useSurfaceRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol SurfaceProtocol
-
The
See moreScaledFontProtocol
protocol exposes the methods and properties of an underlyingcairo_scaled_font_t
instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeScaledFont
. Alternatively, useScaledFontRef
as a lighweight,unowned
reference if you already have an instance you just want to use.Declaration
Swift
public protocol ScaledFontProtocol