Structure

CGSize

A structure that contains width and height values.

Overview

A CGSize structure is sometimes used to represent a distance vector, rather than a physical size. As a vector, its values can be negative. To normalize a CGRect structure so that its size is represented by positive values, call the CGRectStandardize function.

Topics

Alternate Representations

CGSizeCreateDictionaryRepresentation

Returns a dictionary representation of the specified size.

Comparing Sizes

CGSizeEqualToSize

Returns whether two sizes are equal.

Instance Properties

height

A height value.

width

A width value.

See Also

Geometric Data Types

CGPoint

A structure that contains a point in a two-dimensional coordinate system.

CGRect

A structure that contains the location and dimensions of a rectangle.

CGVector

A structure that contains a two-dimensional vector.

CGAffineTransform

An affine transformation matrix for use in drawing 2D graphics.