Instance Method
drawBackground(forInactiveLayer:options:) drawBackgroundForInactiveLayer:options: drawBackgroundForInactiveLayer_options_
is called for each not active layer to draws the background for it
Declaration
optional func drawBackground(forInactiveLayer layer: GSLayer, options: [AnyHashable : Any]? = nil)Declaration
- (void) drawBackgroundForInactiveLayer:(GSLayer *) layer options:(NSDictionary *) options;Declaration
drawBackgroundForInactiveLayer_options_(layer: GSLayer, options: dict)Parameters
layerThe actual GSLayer instance.
optionsOptions
Discussion
This should be only additional items, as the actual glyph is drawn somewhere else. The drawing happened in font units scale (the view does the transformation). If you need to draw something in a definite size (text) you have to counter scale it.