Interface ILayerBrushService
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
layerLayerThe layer to apply the default brush to.
GetDefaultLayerBrush()
Returns the descriptor of the default layer brush
LayerBrushDescriptor? GetDefaultLayerBrush()
Returns
GetLayerBrushes()
Returns a list of all registered layer brush descriptors
List<LayerBrushDescriptor> GetLayerBrushes()
Returns
RegisterLayerBrush(LayerBrushDescriptor)
Add a layer brush descriptor so that it is available to layers
LayerBrushRegistration RegisterLayerBrush(LayerBrushDescriptor descriptor)
Parameters
descriptorLayerBrushDescriptor
Returns
RemoveLayerBrush(LayerBrushRegistration)
Remove a previously added layer brush descriptor so that it is no longer available
void RemoveLayerBrush(LayerBrushRegistration registration)
Parameters
registrationLayerBrushRegistration