Class Circle
Represents a drawable circle
Implements
Inherited Members
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Circle : Dx2DObject, IDrawable
Constructors
| Improve this Doc View SourceCircle(Vector2, Single)
Creates a white circle
Declaration
public Circle(Vector2 position, float radius)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | |
| Single | radius |
Circle(Vector2, Single, Color)
Creates a circle where the centercolor is the same as the outer color
Declaration
public Circle(Vector2 position, float radius, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | |
| Single | radius | |
| Color | color |
Circle(Vector2, Single, Color, Color, Single, Single, Int32, Int32, Boolean)
Create a circle
Declaration
public Circle(Vector2 position, float radius, Color color, Color centerColor, float startAngle = 0F, float stopAngle = 360F, int segments = 32, int ratio = 1, bool postGUI = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | position | |
| Single | radius | |
| Color | color | |
| Color | centerColor | |
| Single | startAngle | |
| Single | stopAngle | |
| Int32 | segments | |
| Int32 | ratio | |
| Boolean | postGUI |
Properties
| Improve this Doc View SourceCenterColor
The color that the center of this circle has
Declaration
public Color CenterColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Radius
The radius of this circle
Declaration
public float Radius { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
| Improve this Doc View SourceDraw(RootElement, OnRenderEventArgs)
Draw this circle
Declaration
public bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| RootElement | source | |
| OnRenderEventArgs | eventArgs |
Returns
| Type | Description |
|---|---|
| Boolean |