GeonBit.UI Documentation
ColoredRectangle Constructor (Color, Color, Int32, Vector2, 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)

C#
public ColoredRectangle( Color fillColor, Color outlineColor, int outlineWidth, Vector2 size, Anchor anchor = Anchor.Auto, Nullable<Vector2> offset = null )
Parameters
- fillColor
- Type: Color
Rectangle fill color. - outlineColor
- Type: Color
Rectangle outline color. - outlineWidth
- Type: SystemInt32
Rectangle outline width (0 for no outline). - size
- Type: Vector2
Rectangle size in pixels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from position anchor.
