GSNode Class Reference
Inherits from | GSElement : GSShape : NSObject |
Conforms to | GSUserDataProtocol NSCoding NSCopying |
Declared in | GSNode.h |
Properties
parentPath
More specifically typed convenience getter for the generic
parent
property declared by GSShape
.
@property (weak, nonatomic, nullable, readonly) GSPath
*parentPath
Instance Methods
checkConnection
automatically set the connection for handle depending on the angle
- (void)checkConnection
initWithPosition:type:connection:
convenient init
- (instancetype)initWithPosition:(NSPoint)position
type:(GSNodeType)type
connection:(GSNodeType)connection
Parameters
- position
-
the position
- type
-
the type of the node (LINE, CURVE, QCURVE)
- connection
-
the connection (SMOOTH, SHARP)
toggleConnection:
toggles the connection type between SHARP and SMOOTH
- (void)toggleConnection:(BOOL)makeSmooth