Inherits from GSElement : GSShape : NSObject
Conforms to GSUserDataProtocol
Declared in GSGuide.h

Overview

The Guide object

Properties

angle

the Angle

@property (nonatomic) CGFloat angle

filter

a filter that allows to show the guide only in certain glyphs

@property (nonatomic, retain) NSPredicate *filter

handle

Alignment GSAlignmentLeft, GSAlignmentRight,

@property (nonatomic, strong) GSHandle *handle

intersections

the intersections with the outlien

@property (nonatomic, strong) NSArray *intersections

name

the name of the guide

@property (nonatomic, retain) NSString *name

showMeasurement

if active, the guides shows the distances between the intersection with the outline

@property (nonatomic, assign) BOOL showMeasurement

Instance Methods

calculateIntersectionsForLayer:

update the intersections list

- (void)calculateIntersectionsForLayer:(GSLayer *)layer

hitTest:inLayer:tolerance:

check if the aPoint is close enough to the guide

- (BOOL)hitTest:(NSPoint)aPoint inLayer:(GSLayer *)layer tolerance:(CGFloat)tolerance