# `GSLineCapStyle`

*Enumeration*

The construction used at an open stroke endpoint.

## Declaration

```swift
enum GSLineCapStyle
```

```objc
enum GSLineCapStyle : uint8_t;
```

```python
GSLineCapStyle
```

## Topics

### Enumeration Cases

- [`GSLineCapStyle.GSLineCapStyleAlignToAxis`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleAlignToAxis) — Aligns the cap to the nearest coordinate axis.
- [`GSLineCapStyle.GSLineCapStyleAlignToAxisX`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleAlignToAxisX) — Aligns the cap to the x-axis.
- [`GSLineCapStyle.GSLineCapStyleAlignToAxisY`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleAlignToAxisY) — Aligns the cap to the y-axis.
- [`GSLineCapStyle.GSLineCapStyleButt`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleButt) — Ends the stroke at the path endpoint.
- [`GSLineCapStyle.GSLineCapStyleRound`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleRound) — Extends the stroke with a semicircular cap.
- [`GSLineCapStyle.GSLineCapStyleRoundInset`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleRoundInset) — Ends the stroke with an inset semicircular cap.
- [`GSLineCapStyle.GSLineCapStyleSquare`](/Core/GlyphsCore/GSLineCapStyle/GSLineCapStyleSquare) — Extends the stroke with a square cap.

## See Also

### Stroke Style

- [`GSShape.strokeWidth`](/Core/GlyphsCore/GSShape/strokeWidth) — The horizontal size expression used to expand the path into a stroke.
- [`GSShape.strokeHeight`](/Core/GlyphsCore/GSShape/strokeHeight) — The vertical size expression used to expand the path into a stroke.
- [`GSShape.strokePosition`](/Core/GlyphsCore/GSShape/strokePosition) — The stroke position from `-1` on the left to `1` on the right of the path direction.
- [`GSShape.lineCapStart`](/Core/GlyphsCore/GSShape/lineCapStart) — The cap at the start of an open path.
- [`GSShape.lineCapEnd`](/Core/GlyphsCore/GSShape/lineCapEnd) — The cap at the end of an open path.
- [`GSLineJoinStyle`](/Core/GlyphsCore/GSLineJoinStyle) — The construction used to connect consecutive stroke segments.
- [`GSShape.lineJoin`](/Core/GlyphsCore/GSShape/lineJoin) — The construction used to connect consecutive stroke segments.
- [`GSShape.filled`](/Core/GlyphsCore/GSShape/filled) — Whether the path remains filled when it has a stroke.
- [`GSShape getStrokeSettingsWidth:height:pos:capStart:capEnd:join:fill:maskType:`](/Core/GlyphsCore/GSShape/getStrokeSettingsWidth:height:pos:capStart:capEnd:join:fill:maskType:) — Reads the shape’s stroke style into optional output parameters.

