# `GSGlyphViewControllerProtocol`

*Protocol*

This protocol defines the API for the main view controllers. This is implemented by the font view controller and the edit view controller.

## Declaration

```swift
protocol GSGlyphViewControllerProtocol
```

```objc
@protocol GSGlyphViewControllerProtocol
```

```python
GSGlyphViewControllerProtocol
```

## Topics

### Instance Properties

- [`GSGlyphViewControllerProtocol.activeLayer`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/activeLayer) — The active layer
- [`GSGlyphViewControllerProtocol.allLayers`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/allLayers)
- [`GSGlyphViewControllerProtocol.contentView`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/contentView)
- [`GSGlyphViewControllerProtocol.displayMasters`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/displayMasters) — Elements of either `GSFontMaster *` or `GSAxisMasterGroup *`.
- [`GSGlyphViewControllerProtocol.displayMastersPivotAxisId`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/displayMastersPivotAxisId) — The ID of the axis by which masters are grouped. A `nil` value indicates no grouping.
- [`GSGlyphViewControllerProtocol.displayMastersSearchString`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/displayMastersSearchString) — The search query used to filter the masters list. An empty string indicates no filtering.
- [`GSGlyphViewControllerProtocol.masterIndex`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/masterIndex) — The index of the active master
- [`GSGlyphViewControllerProtocol.representedObject`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/representedObject)
- [`GSGlyphViewControllerProtocol.scale`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/scale)
- [`GSGlyphViewControllerProtocol.selectedGlyphs`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/selectedGlyphs)
- [`GSGlyphViewControllerProtocol.selectedLayers`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/selectedLayers) — The selected layers
- [`GSGlyphViewControllerProtocol.selectedLayersFast`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/selectedLayersFast) — The selected layers  but without triggering notifications and such
- [`GSGlyphViewControllerProtocol.shadowLayer`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/shadowLayer) — This is a copy of the layer while and drag operation or a filter dialog is active.

### Instance Methods

- [`GSGlyphViewControllerProtocol canShowInfoForSelection`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/canShowInfoForSelection) — is called to determine if the “Show Info for Selection” menu item should be activated
- [`GSGlyphViewControllerProtocol didGetSelected`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/didGetSelected)
- [`GSGlyphViewControllerProtocol printDocument:`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/printDocument:)
- [`GSGlyphViewControllerProtocol redraw`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/redraw)
- [`GSGlyphViewControllerProtocol reflow`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/reflow)
- [`GSGlyphViewControllerProtocol selectGlyphs:`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/selectGlyphs:)
- [`GSGlyphViewControllerProtocol setBackgroundTintColor:`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/setBackgroundTintColor:)
- [`GSGlyphViewControllerProtocol showInfoForSelection:`](/Core/GlyphsApp/GSGlyphViewControllerProtocol/showInfoForSelection:) — This is the action for the “Show Info for Selection” menu item.

## Relationships

### Conforming Types

- [`GSGlyphViewController`](/Core/GlyphsApp/GSGlyphViewController)

