Table of Contents

Interface ILayerBrushService

Namespace
Artemis.Core.Services
Assembly
Artemis.Core.dll

A service that allows you to register and retrieve layer brushes

public interface ILayerBrushService

Methods

ApplyDefaultBrush(Layer)

Applies the configured default brush to the provided layer.

void ApplyDefaultBrush(Layer layer)

Parameters

layer Layer

The layer to apply the default brush to.

GetDefaultLayerBrush()

Returns the descriptor of the default layer brush

LayerBrushDescriptor? GetDefaultLayerBrush()

Returns

LayerBrushDescriptor

GetLayerBrushes()

Returns a list of all registered layer brush descriptors

List<LayerBrushDescriptor> GetLayerBrushes()

Returns

List<LayerBrushDescriptor>

RegisterLayerBrush(LayerBrushDescriptor)

Add a layer brush descriptor so that it is available to layers

LayerBrushRegistration RegisterLayerBrush(LayerBrushDescriptor descriptor)

Parameters

descriptor LayerBrushDescriptor

Returns

LayerBrushRegistration

RemoveLayerBrush(LayerBrushRegistration)

Remove a previously added layer brush descriptor so that it is no longer available

void RemoveLayerBrush(LayerBrushRegistration registration)

Parameters

registration LayerBrushRegistration