Interface IBorderFactory
A factory for creating borders (IBorderStyle).
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IBorderFactory
Methods
| Improve this Doc View SourceGradient(FourCorners<Color>, FourCorners<Boolean>, Single)
Creates a gradient border (you can give a different color for each of the corners, and the border color will interpolate between them).
Declaration
IBorderStyle Gradient(FourCorners<Color> color, FourCorners<bool> hasRoundCorners, float lineWidth = 10F)
Parameters
Type | Name | Description |
---|---|---|
FourCorners<Color> | color | Color. |
FourCorners<System.Boolean> | hasRoundCorners | For each corner you can select whether it is a round corner or a square corner. |
System.Single | lineWidth | Line width. |
Returns
Type | Description |
---|---|
IBorderStyle | The border. |
Gradient(FourCorners<Color>, Single, Boolean)
Creates a gradient border (you can give a different color for each of the corners, and the border color will interpolate between them).
Declaration
IBorderStyle Gradient(FourCorners<Color> color, float lineWidth = 10F, bool hasRoundCorners = false)
Parameters
Type | Name | Description |
---|---|---|
FourCorners<Color> | color | Color. |
System.Single | lineWidth | Line width. |
System.Boolean | hasRoundCorners | If set to |
Returns
Type | Description |
---|---|
IBorderStyle | The border. |
Multiple(IBorderStyle[])
Combines multiple borders into a single border.
Declaration
IBorderStyle Multiple(params IBorderStyle[] borders)
Parameters
Type | Name | Description |
---|---|---|
IBorderStyle[] | borders | Borders. |
Returns
Type | Description |
---|---|
IBorderStyle | The border. |
SolidColor(Color, Single, Boolean)
Creates a solid color border.
Declaration
IBorderStyle SolidColor(Color color, float lineWidth = 10F, bool hasRoundCorners = false)
Parameters
Type | Name | Description |
---|---|---|
Color | color | Color. |
System.Single | lineWidth | Line width. |
System.Boolean | hasRoundCorners | If set to |
Returns
Type | Description |
---|---|
IBorderStyle | The border. |