the GlyphsCore framework exposes this method for tool plugins, from Headers/GlyphsToolDrawProtocol.h:68
/** Draws the foreground for the Layer.
@param Layer the layer
@param Point The current position in the edit view
@param Active if the layer is currentyl active
@param Attributes Some attributes
*/
- (void)drawLayer:(GSLayer*)Layer atPoint:(NSPoint)Point asActive:(BOOL)Active attributes:(NSDictionary*)Attributes;
By default it draws filled paths (without any nodes, anchors, notes, etc), which is totally fine. I can’t seem to implement the standard edit view, though, the one that displays nodes, anchors, notes, etc, as seen in the Select, Draw, and Erase tools. Any advice on how to display these elements within a tool plugin?
And what are the attributes that go in the Attributes
param of that drawLayer
method?