Protocols
The following protocols are available globally.
-
The
See moreContextProtocolprotocol exposes the methods and properties of an underlyingcairo_tinstance. 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, useContextRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol ContextProtocol
-
The
See moreDeviceProtocolprotocol exposes the methods and properties of an underlyingcairo_device_tinstance. 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, useDeviceRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol DeviceProtocol
-
The
See moreFontOptionsProtocolprotocol exposes the methods and properties of an underlyingcairo_font_options_tinstance. 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, useFontOptionsRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol FontOptionsProtocol
-
The
See moreFontFaceProtocolprotocol exposes the methods and properties of an underlyingcairo_font_face_tinstance. 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, useFontFaceRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol FontFaceProtocol
-
The
See moreMatrixProtocolprotocol exposes the methods and properties of an underlyingcairo_matrix_tinstance. 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, useMatrixRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol MatrixProtocol
-
The
See morePatternProtocolprotocol exposes the methods and properties of an underlyingcairo_pattern_tinstance. 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, usePatternRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol PatternProtocol
-
The
See morePathProtocolprotocol exposes the methods and properties of an underlyingcairo_path_tinstance. 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, usePathRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol PathProtocol
-
The
See moreRegionProtocolprotocol exposes the methods and properties of an underlyingcairo_region_tinstance. 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, useRegionRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol RegionProtocol
-
The
See moreRectangleProtocolprotocol exposes the methods and properties of an underlyingcairo_rectangle_tinstance. 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, useRectangleRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol RectangleProtocol
-
The
See moreRectangleIntProtocolprotocol exposes the methods and properties of an underlyingcairo_rectangle_int_tinstance. 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, useRectangleIntRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol RectangleIntProtocol
-
The
See moreSurfaceProtocolprotocol exposes the methods and properties of an underlyingcairo_surface_tinstance. 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, useSurfaceRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol SurfaceProtocol
-
The
See moreScaledFontProtocolprotocol exposes the methods and properties of an underlyingcairo_scaled_font_tinstance. 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, useScaledFontRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol ScaledFontProtocol
View on GitHub
Install in Dash
Protocols Reference