LayerDecoration Essential

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

Methods

::destroy()

Destroys the decoration.

::isDestroyed()

Determine whether this decoration is destroyed.

Return values

Returns a Boolean.

::getProperties()

Get this decoration’s properties.

Return values

Returns an Object.

::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.