# GSLayer Grid

*API Collection*

Setting for rounding coordinates on a layer.

## Overview

A layer uses the grid settings of its associated master. The grid determines how layer coordinates are rounded during editing and geometry operations.

Temporary rounding disablement lets an operation preserve exact coordinates while still using the same layer API.

## Topics

- [`GSGridSettings`](/Core/GlyphsCore/GSGridSettings) — Grid settings used to round coordinates.

### Grid

- [`GSLayer grid`](/Core/GlyphsCore/GSLayer/grid) — Current grid settings used for layer rounding.
- [`GSLayer gridMax:`](/Core/GlyphsCore/GSLayer/gridMax:) — Current grid settings, limiting horizontal rounding to a maximum grid length.
- [`GSLayer gridLengthHorizontal`](/Core/GlyphsCore/GSLayer/gridLengthHorizontal) — Horizontal grid length used for layer rounding.
- [`GSLayer gridLengthVertical`](/Core/GlyphsCore/GSLayer/gridLengthVertical) — Vertical grid length used for layer rounding.
- [`GSLayer.temporarilyDisableRounding`](/Core/GlyphsCore/GSLayer/temporarilyDisableRounding) — Temporarily disables grid rounding for layer operations.
- [`GSLayer alignPointToGrid:type:`](/Core/GlyphsCore/GSLayer/alignPointToGrid:type:) — A point aligned to the layer grid for a node type.

## See Also

- [GSLayer Kind](/Core/GlyphsCore/GSLayer-Kind) — The different roles that a layer can serve.
- [GSLayer Shapes](/Core/GlyphsCore/GSLayer-Shapes) — The paths and components that form the outline of a layer.
- [GSLayer Bounds](/Core/GlyphsCore/GSLayer-Bounds) — Bounding rectangles of outlines, selections, and metrics.
- [GSLayer Metrics](/Core/GlyphsCore/GSLayer-Metrics) — Side bearings, baseline offsets, layer box, and metrics keys.
- [GSLayer Background](/Core/GlyphsCore/GSLayer-Background) — Background content and reference images associated with a layer.
- [GSLayer Anchors](/Core/GlyphsCore/GSLayer-Anchors) — Named attachment points on a layer.
- [GSLayer Hints](/Core/GlyphsCore/GSLayer-Hints) — Manual and generated hint data on a layer.
- [GSLayer Guides](/Core/GlyphsCore/GSLayer-Guides) — Layer-local guides used while editing outlines.
- [GSLayer Kerning](/Core/GlyphsCore/GSLayer-Kerning) — Spacing adjustment between specific layers.
- [GSLayer Annotations](/Core/GlyphsCore/GSLayer-Annotations) — Layer-local notes displayed with a glyph.
- [GSLayer Interpolation](/Core/GlyphsCore/GSLayer-Interpolation) — Axis coordinates and rules that place layers in a design space.
- [GSLayer Color](/Core/GlyphsCore/GSLayer-Color) — Colors used to draw a layer.
- [GSLayer Attributes](/Core/GlyphsCore/GSLayer-Attributes) — Additional values stored for a layer.
- [GSLayer Inspection](/Core/GlyphsCore/GSLayer-Inspection) — Intersections between layer outlines and line segments.
- [GSLayer Editing](/Core/GlyphsCore/GSLayer-Editing) — Operations for modifying outlines and other layer content.

