Class
GSGlyphEditView
The view showing the edit area.
Declaration
class GSGlyphEditViewDeclaration
@interface GSGlyphEditView : NSViewDeclaration
class GSGlyphEditView(NSView)Topics
Instance Properties
The index of the character of the active layer in the string.
The active glyphs layer. Returns the selected layer if it is the only one selected, otherwise returns nil. In the edit view, this is the layer that has a gray info box.
The position of the activeLayer. This is in scaled view coordinates.
Number of layers in the view. This might be different than the number of characters in the string after the features are applied.
The currently active cursor.
Set if kerning is active.
Set if spacing is active.
Deprecated, use ‘foregroundStrokeColor’ instead.
The design space location (axis ID to coordinate) at which Edit View shows a non-editable interpolation preview, or
nilwhen it shows the real, editable layer.While an interpolation preview is shown, the layer ID of the key layer whose design space location the preview has most recently passed over.
Whether Edit View currently shows an interpolation preview.
The scale of the view.
The layer selection range after features have been applied.
The selection range in characters as in the original string. Just like the
markedRangeproperty, its location contains the character index from the text beginning.Marks the starting point of the selection.
While
YES,scrollViewDidScroll:no longer reconstructsdrawOriginfrom the clip view geometry.
Instance Methods
Attempts to add a background image from the pasteboard to the active glyph layer. If the pasteboard contains file paths instead, attempts to import outlines from the referenced files.
Returns the cached layer at the given index.
Returns the cached position at a layer index.
Draws the background image of the given glyph layer into the receiver’s background CA layer. The CA layer is created if necessary.
Translates the view coordinate from the event into glyph coordinates of the active layer.
Converts the given graphical position to a layer index.
Converts the given graphical position to a layer index, preferring a layer whose drawn outline contains the point.
Returns to the real, editable layer by clearing
interpolationAxisLocation.Sets
drawOrigindirectly (with re-display and info box repositioning), bypassing the clip view geometry reconstruction done byupdateBoundsFromFrameView.Shows a non-editable interpolation preview at
axisLocation(axis ID to coordinate).Switches to the layer with the given layer id for the given range of characters as in the original string.
Zooms to fit the given rect and scrolls it into the center of the frame.
Type Methods
Relationships
Inherits From
NSView
Conforms To
AppKit.NSAccessibilityElementProtocolAppKit.NSAccessibilityProtocolAppKit.NSAnimatablePropertyContainerAppKit.NSAppearanceCustomizationAppKit.NSDraggingDestinationNSMenuItemValidationAppKit.NSStandardKeyBindingRespondingNSTextInputClientAppKit.NSTouchBarProviderAppKit.NSUserActivityRestoringAppKit.NSUserInterfaceItemIdentificationFoundation.NSCodingObjectiveC.NSObjectProtocolSwift.CVarArgSwift.CopyableSwift.CustomDebugStringConvertibleSwift.CustomStringConvertibleSwift.EquatableSwift.EscapableSwift.HashableSwift.SendableSwift.SendableMetatype
Relationships
Inherits From
NSView
Conforms To
NSMenuItemValidationNSTextInputClient