# `GSDrawSlice`

*Class*

## Declaration

```swift
class GSDrawSlice<PenType> where PenType : AnyObject
```

```objc
@interface GSDrawSlice : NSObject
```

```python
class GSDrawSlice(NSObject)
```

## Topics

### Instance Properties

- [`GSDrawSlice.attributes`](/Core/GlyphsCore/GSDrawSlice/attributes)
- [`GSDrawSlice.masks`](/Core/GlyphsCore/GSDrawSlice/masks) — Requires [`GSDrawStackFeature.GSDrawStackFeatureSubtractionMasks`](/Core/GlyphsCore/GSDrawStackFeature/GSDrawStackFeatureSubtractionMasks) or [`GSDrawStackFeature.GSDrawStackFeatureIntersectionMasks`](/Core/GlyphsCore/GSDrawStackFeature/GSDrawStackFeatureIntersectionMasks).
- [`GSDrawSlice.referenceRect`](/Core/GlyphsCore/GSDrawSlice/referenceRect) — The reference rect used to fill gradients and apply other effects that require bounds to be unaffected by masks, strokes, and other externalities.
- [`GSDrawSlice.transform`](/Core/GlyphsCore/GSDrawSlice/transform) — The transform to be applied to the slice as it is rendered.

### Instance Methods

- [`GSDrawSlice bounds`](/Core/GlyphsCore/GSDrawSlice/bounds) — The bounds of the slice.
- [`GSDrawSlice overestimatedBounds`](/Core/GlyphsCore/GSDrawSlice/overestimatedBounds) — A rectangle containing the bounds of the slice.

## Relationships

### Inherits From

- `NSObject`

### Inherited By

- [`GSDrawComponentSlice`](/Core/GlyphsCore/GSDrawComponentSlice)
- [`GSDrawErrorSlice`](/Core/GlyphsCore/GSDrawErrorSlice)
- [`GSDrawGroupSlice`](/Core/GlyphsCore/GSDrawGroupSlice)
- [`GSDrawImageSlice`](/Core/GlyphsCore/GSDrawImageSlice)
- [`GSDrawPenSlice`](/Core/GlyphsCore/GSDrawPenSlice)
- [`GSDrawTextSlice`](/Core/GlyphsCore/GSDrawTextSlice)

### Conforms To

- `NSCopying`

