Protocol
GlyphsToolEvent
Protocol for the Event handling parts of the tool API.
Declaration
@MainActor protocol GlyphsToolEvent : GlyphsToolAuxiliaryDrawingDeclaration
@protocol GlyphsToolEvent <GlyphsToolAuxiliaryDrawing>Declaration
GlyphsToolEventOverview
All plugins should conform to this protocol. Additionally it could conform the GlyphsToolDraw it it needs to draw.
The tool can implement all methods that are defined by NSResponder
Topics
Instance Properties
The position where the dragging action started.
Set to YES while the mouse is down and dragging.
The interface version.
The trigger (key mask) to select the tool temporarily
Instance Methods
returns all layers that are currently active. That is mostly used for the ‘Select All Layers’ tool.
Callback to allow to add something to the context menu
return true if the current selection state might show a “Info for Selection” dialog.
Copy’n’Past Support
Draws the active selection. The default is a colored drag rect.
returns the view to place on the left of the normal inspector
returns the view to place in the inspector
Informs the receiver that the user has pressed or released a modifier key (Shift, Control, and so on).
Copy’n’Past Support
actually show the info for Selection dialog
Return a NSMenu object that should be displayed if the user presses/holds the mouse on the icon
Is called when the tool is activated.
Is called when the tool is deactivated.
A callback to let the tool know that a temp tool will be selected (by pressing a modifier key). You can return NO to prevent that.
Relationships
Inherits From
- GlyphsToolAuxiliaryDrawing
ObjectiveC.NSObjectProtocol