# `GSLayer widthMetricsKeyState:`

*Instance Method*

Display string for the width metrics key and its state.

## Declaration

```swift
func widthMetricsKeyState(_ state: UnsafeMutablePointer<GSMetricsKeysUI>?) -> String
```

```objc
- (NSString *) widthMetricsKeyState:(GSMetricsKeysUI *) state;
```

```python
widthMetricsKeyState_(state: GSMetricsKeysUI) -> str
```

## Parameters

- `state` — On return, the state flags for the displayed key.

## See Also

### Horizontal Metrics Keys UI

- [`GSLayer.leftMetricsKeyUI`](/Core/GlyphsCore/GSLayer/leftMetricsKeyUI) — Display and editing string for the left metrics key.
- [`GSLayer leftMetricsKeyState`](/Core/GlyphsCore/GSLayer/leftMetricsKeyState) — State flags for the left metrics key.
- [`GSLayer leftMetricsKeyState:`](/Core/GlyphsCore/GSLayer/leftMetricsKeyState:) — Display string for the left metrics key and its state.
- [`GSLayer leftPlainMetricsKey`](/Core/GlyphsCore/GSLayer/leftPlainMetricsKey) — Plain effective metrics key for the left side bearing.
- [`GSLayer.widthMetricsKeyUI`](/Core/GlyphsCore/GSLayer/widthMetricsKeyUI) — Display and editing string for the width metrics key.
- [`GSLayer widthMetricsKeyUIFast`](/Core/GlyphsCore/GSLayer/widthMetricsKeyUIFast) — Fast display string for the width metrics key.
- [`GSLayer widthMetricsKeyState`](/Core/GlyphsCore/GSLayer/widthMetricsKeyState) — State flags for the width metrics key.
- [`GSLayer widthPlainMetricsKey`](/Core/GlyphsCore/GSLayer/widthPlainMetricsKey) — Plain effective metrics key for the advance width.
- [`GSLayer.rightMetricsKeyUI`](/Core/GlyphsCore/GSLayer/rightMetricsKeyUI) — Display and editing string for the right metrics key.
- [`GSLayer rightMetricsKeyState`](/Core/GlyphsCore/GSLayer/rightMetricsKeyState) — State flags for the right metrics key.
- [`GSLayer rightMetricsKeyState:`](/Core/GlyphsCore/GSLayer/rightMetricsKeyState:) — Display string for the right metrics key and its state.
- [`GSLayer rightPlainMetricsKey`](/Core/GlyphsCore/GSLayer/rightPlainMetricsKey) — Plain effective metrics key for the right side bearing.

