Class Rectangle
Represents a drawable rectangle
Assembly: SlipeClient.dll
Syntax
public class Rectangle : Dx2DObject, IDrawable
Constructors
|
Improve this Doc
View Source
Rectangle(Vector2, Vector2)
Creates a white rectangle
Declaration
public Rectangle(Vector2 position, Vector2 dimensions)
Parameters
|
Improve this Doc
View Source
Rectangle(Vector2, Vector2, Color, Boolean, Boolean)
Declaration
public Rectangle(Vector2 position, Vector2 dimensions, Color color, bool postGUI = false, bool subPixelPositioning = false)
Parameters
Properties
|
Improve this Doc
View Source
Dimensions
The width and the height of this rectangle
Declaration
public Vector2 Dimensions { get; set; }
Property Value
|
Improve this Doc
View Source
SubPixelPositioning
A bool representing whether the rectangle can be positioned sub-pixel-ly.
Declaration
public bool SubPixelPositioning { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Draw(RootElement, OnRenderEventArgs)
Declaration
public bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
Returns
Implements