Indexes available brushes. Provides /Brush command, a way to register new brushes, a way to look up existing brushes by name.
More...
Indexes available brushes. Provides /Brush command, a way to register new brushes, a way to look up existing brushes by name.
| static IBrushFactory fCraft.Drawing.BrushManager.GetBrushFactory |
( |
[NotNull] string |
brushName | ) |
|
|
static |
Finds IBrushFactory for given brush name or alias. Case-insensitive. Does not autocomplete names.
- Parameters
-
- Returns
- IBrushFactory if brush was found; otherwise null.
- Exceptions
-
| ArgumentNullException | brushName is null. |
| static void fCraft.Drawing.BrushManager.RegisterBrush |
( |
[NotNull] IBrushFactory |
factory | ) |
|
|
static |
Registers a new brush.
- Parameters
-
| factory | IBrushFactory that will be used to create new instances of the brush. |
- Exceptions
-
| ArgumentNullException | factory is null. |
| ArgumentException | brush with the same name or alias already exists. |
Provides a list of all registered IBrushFactories.
The documentation for this class was generated from the following file: