GlyphsPathPlugin Class Reference
Inherits from | GSToolPlugin : NSResponder |
Conforms to | GlyphsToolDraw GlyphsToolEvent NSMenuDelegate NSTextViewDelegate |
Overview
A base class for all path editing tools. It handles drawing and basic path interaction
Subclass it for custom tool plugins
Tasks
-
toolBarIcon
property -
dragging
property -
draggStart
property -
interfaceScale
property -
– insertNewline:
-
– drawBegin:isSelected:atPoint:
-
– drawHandle:atIndex:isSelected:atPoint:simple:
-
– getHandleRect:isSelected:atPoint:
Properties
Instance Methods
drawBegin:isSelected:atPoint:
Draws the starting node of an open path
- (void)drawBegin:(GSNode *)node isSelected:(BOOL)sel atPoint:(NSPoint)Point
Parameters
- node
the start or end node
- sel
If the node is selected or not
- Point
The origin point of the current layer
drawHandle:atIndex:isSelected:atPoint:simple:
Draws a node
- (void)drawHandle:(GSPath *)Path atIndex:(NSUInteger)Index isSelected:(BOOL)selected atPoint:(NSPoint)Point simple:(BOOL)simple
Parameters
- Path
The path that contains the node
- Index
The index of the node
- selected
If the node is selected or not
- Point
The origin point of the current layer