SKUPositionObject

Conforms to:
NSCopying
Superclass:
NSObject
Declared In:

Introduction

For easy passing of struct data through mediums that only accept objects, like NSArrays or performSelectors that only accept passing of objects.



Groups

Initialization

Group members:

 

Conversion and retrieval


Methods

+position:
+rect:
+size:
+vector:

position:


+(SKUPositionObject*)position:(CGPoint)location; 
Parameters
location

CGPoint value

Return Value

SKUPositionObject with input position data

Discussion

Creates and returns an SKUPositionObject from a CGPoint parameter. This becomes the origin in the bundled CGRect.


rect:


+(SKUPositionObject*)rect:(CGRect)rect; 
Parameters
rect

CGRect value

Return Value

SKUPositionObject with input rect data

Discussion

Creates and returns an SKUPositionObject from a CGRect parameter. This sets the position property from the origin and the size property from the size.


size:


+(SKUPositionObject*)size:(CGSize)size; 
Parameters
size

CGSize value

Return Value

SKUPositionObject with input size data

Discussion

Creates and returns an SKUPositionObject from a CGSize parameter. This becomes the size in the bundled CGRect.


vector:


+(SKUPositionObject*)vector:(CGVector)vector; 
Parameters
vector

CGVector value

Return Value

SKUPositionObject with input vector data

Discussion

Creates and returns an SKUPositionObject from a CGVector parameter. This becomes the origin in the bundled CGRect.


Properties

position
rect
size
vector

position


@property (nonatomic) CGPoint position; 
Discussion

CGPoint representation of data.


rect


@property (nonatomic) CGRect rect; 
Discussion

CGRect representation of data.


size


@property (nonatomic) CGSize size; 
Discussion

CGSize representation of data.


vector


@property (nonatomic) CGVector vector; 
Discussion

CGVector representation of data.