Declared in GSWindowControllerProtocol.h

Tasks

Properties

AltKey

if the alt/option key is currently pressed

@property (nonatomic) BOOL AltKey

CommandKey

if the Command key is currently pressed

@property (nonatomic) BOOL CommandKey

CtrlKey

if the Ctrl key is currently pressed

@property (nonatomic) BOOL CtrlKey

ShiftKey

if the Shift key is currently pressed

@property (nonatomic) BOOL ShiftKey

SpaceKey

if the Space key is currently pressed

@property (nonatomic) BOOL SpaceKey

lastSelectToolIndex

The index of the tool that was active before the current.

@property (nonatomic) NSUInteger lastSelectToolIndex

selectedToolIndex

The index of the currently active tool

@property (nonatomic) NSUInteger selectedToolIndex

toolDrawDelegate

The tool that is currently handling events

@property (unsafe_unretained, nonatomic) NSResponder<GlyphsToolDraw> *toolDrawDelegate

Instance Methods

activeEditViewController

The active editView controller or nil if the font view is active

- (NSViewController<GSGlyphEditViewControllerProtocol> *)activeEditViewController

Return Value

the active editview controller

activeLayer

the currently active layer of the window

- (GSLayer *)activeLayer

Return Value

the active layer.

Discussion

This is only valid if one layer has direct focus. If more than one are selected, this returns nil.

masterIndex

The index of the active master

- (NSUInteger)masterIndex

Return Value

The index of the active master

setToolForClass:

The activate a tool based on its class

- (void)setToolForClass:(Class)aClass

Parameters

aClass

the class of the tool that sould be acivated.

showFontInfoWindowWithTabSelected:

Show the font info window

- (void)showFontInfoWindowWithTabSelected:(NSUInteger)tabIndex

Parameters

tabIndex

the index of the tab that should be activated