# `GSGradientKnob`

*Class*

## Declaration

```swift
class GSGradientKnob
```

```objc
@interface GSGradientKnob : NSObject
```

```python
class GSGradientKnob(NSObject)
```

## Topics

### Instance Properties

- [`GSGradientKnob.colorStopIndex`](/Core/GlyphsCore/GSGradientKnob/colorStopIndex) — `-1` if the knob is not about a color stop
- [`GSGradientKnob.gradient`](/Core/GlyphsCore/GSGradientKnob/gradient)
- [`GSGradientKnob.isEnd`](/Core/GlyphsCore/GSGradientKnob/isEnd)
- [`GSGradientKnob.snappingToAlignment`](/Core/GlyphsCore/GSGradientKnob/snappingToAlignment)
- [`GSGradientKnob.isStart`](/Core/GlyphsCore/GSGradientKnob/isStart)
- [`GSGradientKnob.knobLine`](/Core/GlyphsCore/GSGradientKnob/knobLine) — All related knobs, including the knob itself. The order is not consistent; consult `colorStopIndex` of the members to get a knob for a specific color stop. `nil` if the knob is not about a color stop or the knob is not selected.
- [`GSGradientKnob.parent`](/Core/GlyphsCore/GSGradientKnob/parent)
- [`GSGradientKnob.shadowGradient`](/Core/GlyphsCore/GSGradientKnob/shadowGradient)
- [`GSGradientKnob.sliceBounds`](/Core/GlyphsCore/GSGradientKnob/sliceBounds) — Union of the bounds of all paths of the gradients of the color stops. (A ‘slice’ is an element of a draw stack.)
- [`GSGradientKnob.type`](/Core/GlyphsCore/GSGradientKnob/type)

### Instance Methods

- [`GSGradientKnob performColorStopModificationWithBlock:`](/Core/GlyphsCore/GSGradientKnob/performColorStopModificationWithBlock:)
- [`GSGradientKnob performGradientModificationWithBlock:`](/Core/GlyphsCore/GSGradientKnob/performGradientModificationWithBlock:)

### Type Methods

- [`GSGradientKnob knobAt:parent:type:forGradient:`](/Core/GlyphsCore/GSGradientKnob/knobAt:parent:type:forGradient:)
- [`GSGradientKnob knobAt:parent:type:forGradient:colorStopIndex:`](/Core/GlyphsCore/GSGradientKnob/knobAt:parent:type:forGradient:colorStopIndex:)

## Relationships

### Inherits From

- `NSObject`

### Conforms To

- [`GSSelectableElementProtocol`](/Core/GlyphsCore/GSSelectableElementProtocol)

