Home Reference Source Repository
public class | source

CGSize

A structure that contains width and height values.

See:

Static Member Summary

Static Public Members
public static get

Static Method Summary

Static Public Methods
public static

Creates a size from a canonical dictionary representation.

Constructor Summary

Public Constructor
public

constructor(width: number, height: number)

Creates a size with dimensions specified as floating-point values.

Member Summary

Public Members
public get

customMirror: Mirror

public get

customPlaygroundQuickLook: PlaygroundQuickLook

public get
public get
public

height: *

public

width: *

Method Summary

Public Methods
public

add(size2: *): *

public

applying(t: CGAffineTransform): CGSize

Returns the height and width resulting from a transformation of an existing height and width.

public

copy(): *

public

Returns whether two sizes are equal.

public

lerp(s: CGSize, rate: number): CGSize

public

sub(size2: *): *

public

zero(): *

Static Public Members

Static Public Methods

public static sizeWithDictionaryRepresentation(dict: Map): void source

Creates a size from a canonical dictionary representation.

Params:

NameTypeAttributeDescription
dict Map

A dictionary containing width and height values for the size to create, in the format used by the dictionaryRepresentation property.

Return:

void

See:

Public Constructors

public constructor(width: number, height: number) source

Creates a size with dimensions specified as floating-point values.

Params:

NameTypeAttributeDescription
width number
height number

See:

Public Members

public height: * source

public width: * source

Public Methods

public add(size2: *): * source

Params:

NameTypeAttributeDescription
size2 *

Return:

*

public applying(t: CGAffineTransform): CGSize source

Returns the height and width resulting from a transformation of an existing height and width.

Params:

NameTypeAttributeDescription
t CGAffineTransform

The affine transform to apply.

Return:

CGSize

See:

public copy(): * source

Return:

*

public equalTo(size2: CGSize): boolean source

Returns whether two sizes are equal.

Params:

NameTypeAttributeDescription
size2 CGSize

Return:

boolean

See:

public lerp(s: CGSize, rate: number): CGSize source

Params:

NameTypeAttributeDescription
s CGSize
rate number

Return:

CGSize

public sub(size2: *): * source

Params:

NameTypeAttributeDescription
size2 *

Return:

*

public zero(): * source

Return:

*