LayerDecoration

Description

Represents a decoration that applies to every marker on a given layer. Created via TextEditor::decorateMarkerLayer.

API documentation

All methods

::destroy()

Destroys the decoration.

::isDestroyed()

Determine whether this decoration is destroyed.

Return values

::getProperties()

Get this decoration's properties.

Return values

::setProperties(newProperties)

Set this decoration's properties.

Argument Description
newProperties

See TextEditor::decorateMarker for more information on the properties. The type of gutter and overlay are not supported on layer decorations.

::setPropertiesForMarker(marker, properties)

Override the decoration properties for a specific marker.

Argument Description
marker

The DisplayMarker or Marker for which to override properties.

properties

An Object containing properties to apply to this marker. Pass null to clear the override.