Initializer

init(cgSize:)

Creates a new value object containing the specified CoreGraphics size structure.

Declaration

init(cgSize size: CGSize)

Parameters

size

The value for the new object.

Return Value

A new value object that contains the size information.

See Also

Working with CoreGraphics Geometry Values

init(cgPoint: CGPoint)

Creates a new value object containing the specified CoreGraphics point structure.

init(cgVector: CGVector)

Creates a new value object containing the specified CoreGraphics vector structure.

init(cgRect: CGRect)

Creates a new value object containing the specified CoreGraphics rectangle structure.

init(cgAffineTransform: CGAffineTransform)

Creates a new value object containing the specified CoreGraphics affine transform structure.

var cgPointValue: CGPoint

Returns the CoreGraphics point structure representation of the value.

var cgVectorValue: CGVector

Returns the CoreGraphics vector structure representation of the value.

var cgSizeValue: CGSize

Returns the CoreGraphics size structure representation of the value.

var cgRectValue: CGRect

Returns the CoreGraphics rectangle structure representation of the value.

var cgAffineTransformValue: CGAffineTransform

Returns the CoreGraphics affine transform representation of the value.