Inherits from GSShape : NSObject
Declared in GSElement.h

Overview

GSElement: The base class for Layer elements.

The base class for Layer elements.

Instance Methods

initWithDict:format:

initialises a element with a dictionary loaded from a pList.

- (instancetype)initWithDict:(NSDictionary *)dict format:(GSFormatVersion)formatVersion

Parameters

dict

The property list representation

formatVersion

the version of the property list

Return Value

a element object

Discussion

Inits with a dict.

roundToGrid:

rounds the position of the element to grid

- (void)roundToGrid:(CGFloat)grid

Parameters

grid

the grid to round to.