ColoredRectangle Constructor (Color, NullableColor, Int32, NullableVector2, Anchor, NullableVector2) |
Create the rectangle with outline and fill color + outline width.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public ColoredRectangle(
Color fillColor,
Nullable<Color> outlineColor = null,
int outlineWidth = 1,
Nullable<Vector2> size = null,
Anchor anchor = Anchor.Auto,
Nullable<Vector2> offset = null
)
Parameters
- fillColor
- Type: Color
Rectangle fill color. - outlineColor (Optional)
- Type: SystemNullableColor
Rectangle outline color. - outlineWidth (Optional)
- Type: SystemInt32
Rectangle outline width (0 for no outline). - size (Optional)
- Type: SystemNullableVector2
Rectangle size in pixels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from position anchor.
See Also