Interface ILayerBrushService
A service that allows you to register and retrieve layer brushes
Namespace: Artemis.Core.Services
Assembly: Artemis.Core.dll
Syntax
public interface ILayerBrushService
Methods
ApplyDefaultBrush(Layer)
Applies the configured default brush to the provided layer
.
Declaration
void ApplyDefaultBrush(Layer layer)
Parameters
Type | Name | Description |
---|---|---|
Layer | layer | The layer to apply the default brush to. |
GetDefaultLayerBrush()
Returns the descriptor of the default layer brush
Declaration
LayerBrushDescriptor? GetDefaultLayerBrush()
Returns
Type | Description |
---|---|
LayerBrushDescriptor |
GetLayerBrushes()
Returns a list of all registered layer brush descriptors
Declaration
List<LayerBrushDescriptor> GetLayerBrushes()
Returns
Type | Description |
---|---|
List<LayerBrushDescriptor> |
RegisterLayerBrush(LayerBrushDescriptor)
Add a layer brush descriptor so that it is available to layers
Declaration
LayerBrushRegistration RegisterLayerBrush(LayerBrushDescriptor descriptor)
Parameters
Type | Name | Description |
---|---|---|
LayerBrushDescriptor | descriptor |
Returns
Type | Description |
---|---|
LayerBrushRegistration |
RemoveLayerBrush(LayerBrushRegistration)
Remove a previously added layer brush descriptor so that it is no longer available
Declaration
void RemoveLayerBrush(LayerBrushRegistration registration)
Parameters
Type | Name | Description |
---|---|---|
LayerBrushRegistration | registration |