CGSize
A structure that contains width and height values.
Static Method Summary
Static Public Methods | ||
public static |
sizeWithDictionaryRepresentation(dict: Map): void 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 |
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 |
|
|
public |
sub(size2: *): * |
|
public |
zero(): * |
Static Public Methods
public static sizeWithDictionaryRepresentation(dict: Map): void source
Creates a size from a canonical dictionary representation.
Params:
Name | Type | Attribute | Description |
dict | Map | A dictionary containing width and height values for the size to create, in the format used by the dictionaryRepresentation property. |
Return:
void |
Public Constructors
Public Members
public get customMirror: Mirror source
public get customPlaygroundQuickLook: PlaygroundQuickLook source
public height: * source
public width: * source
Public Methods
public applying(t: CGAffineTransform): CGSize source
Returns the height and width resulting from a transformation of an existing height and width.
Params:
Name | Type | Attribute | Description |
t | CGAffineTransform | The affine transform to apply. |
public equalTo(size2: CGSize): boolean source
Returns whether two sizes are equal.
Params:
Name | Type | Attribute | Description |
size2 | CGSize |