Instance Methods

drawBackground

Draws some general things to the background of the edit view.

- (void)drawBackground

Discussion

This should be only additional items, as the actual glyph is drawn by the layer plugin.

See Also

drawBackgroundForLayer:

Draws the background for the Layer.

- (void)drawBackgroundForLayer:(GSLayer *)Layer

Parameters

Layer

The actual GSPlainGlyph instance.

Discussion

This should be only additional items, as the actual glyph is drawn somewhere else. The drawing happend in font units scale (the view does the transformation). If you need to draw something in a definit size (text) you have to counter scale it.

drawBackgroundForLayer:atPoint:asActive:

Draws the background for the Layer.

- (void)drawBackgroundForLayer:(GSLayer *)Layer atPoint:(NSPoint)Point asActive:(BOOL)Active

Parameters

Layer

the layer

Point

The current position in the edit view

Active

if the layer is currentyl active

drawForeground

Draws some general things to the foreground of the edit view.

- (void)drawForeground

Discussion

This should be only additional items, as the actual glyph is drawn by the layer plugin.

See Also

drawForegroundForLayer:

Draws the foreground for the Layer.

- (void)drawForegroundForLayer:(GSLayer *)Layer

Parameters

Layer

The Layer.

Discussion

This should be only additional items, as the actual glyph is drawn somewhere else. The drawing happend in font units scale (the view does the transformation). If you need to draw something in a definit size (text) you have to counter scale it.

drawLayer:atPoint:asActive:attributes:

Draws the foreground for the Layer.

- (void)drawLayer:(GSLayer *)Layer atPoint:(NSPoint)Point asActive:(BOOL)Active attributes:(NSDictionary *)Attributes

Parameters

Layer

the layer

Point

The current position in the edit view

Active

if the layer is currentyl active

Attributes

Some attributes

drawPreview:

Draw something is the preview

- (void)drawPreview:(NSView *)PreviewView

Parameters

PreviewView

The PreviewView to draw in

Discussion

If you implement this method, the default preview drawing will be deactivated

inspectorViewControllers

Return a list of NSViewControllers to place in the inpector box.

- (NSArray *)inspectorViewControllers

modifierChanged:

Informs the receiver that the user has released the left mouse button.

- (void)modifierChanged:(NSEvent *)theEvent

Parameters

theEvent

The event resulting from the user action.

willActivate

Is called when the tool becomes active

- (void)willActivate

Discussion

This might mean that the tool is clicked or the document window becomes active

See Also

willDeactivate

Is called when the tool becomes deactive

- (void)willDeactivate

Discussion

This might mean that the tool is clicked or the document window becomes active

See Also