[]
Initializes a new instance of the RenderRectangle class. The location and size of the rectangle are set to those of the current RenderRectangle object.
public RenderRectangle()
Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle. The location of the rectangle is set to the location of the current RenderRectangle.
public RenderRectangle(Unit width, Unit height)
Type | Name | Description |
---|---|---|
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, and the LineDef used to draw it. The location of the rectangle is set to the location of the current RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine)
Type | Name | Description |
---|---|---|
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill color. The location of the rectangle is set to the location of the current RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Type | Name | Description |
---|---|---|
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Color | shapeFillColor | The color used to fill the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the width and height of the rectangle, the LineDef used to draw it, and the fill brush. The location of the rectangle is set to the location of the current RenderRectangle.
public RenderRectangle(Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Type | Name | Description |
---|---|---|
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Brush | shapeFillBrush | The brush used to fill the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height)
Type | Name | Description |
---|---|---|
Unit | x | The X coordinate of the rectangle, relative to the current object's location. |
Unit | y | The Y coordinate of the rectangle, relative to the current object's location. |
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, and the LineDef used to draw it.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine)
Type | Name | Description |
---|---|---|
Unit | x | The X coordinate of the rectangle, relative to the current object's location. |
Unit | y | The Y coordinate of the rectangle, relative to the current object's location. |
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill color.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Color shapeFillColor)
Type | Name | Description |
---|---|---|
Unit | x | The X coordinate of the rectangle, relative to the current object's location. |
Unit | y | The Y coordinate of the rectangle, relative to the current object's location. |
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Color | shapeFillColor | The color used to fill the rectangle. |
Initializes a new instance of the RenderRectangle class, assigning the location and the size of the rectangle, the LineDef used to draw it, and the fill brush.
public RenderRectangle(Unit x, Unit y, Unit width, Unit height, LineDef shapeLine, Brush shapeFillBrush)
Type | Name | Description |
---|---|---|
Unit | x | The X coordinate of the rectangle, relative to the current object's location. |
Unit | y | The Y coordinate of the rectangle, relative to the current object's location. |
Unit | width | The width of the rectangle. |
Unit | height | The height of the rectangle. |
LineDef | shapeLine | The LineDef used to draw the rectangle. |
Brush | shapeFillBrush | The brush used to fill the rectangle. |