Class Line
return MTAClient.DxDrawLine((int)start.X, (int)start.Y, (int)end.X, (int)end.Y, color.Hex, width, postGui);
Implements
Inherited Members
Namespace: Slipe.Client.Dx
Assembly: SlipeClient.dll
Syntax
public class Line : Dx2DObject, IDrawable
Constructors
| Improve this Doc View SourceLine(Vector2, Vector2, Color, Single, Boolean)
Create a line instance
Declaration
public Line(Vector2 start, Vector2 end, Color color, float width = 1F, bool postGUI = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Vector2 | start | |
| Vector2 | end | |
| Color | color | |
| Single | width | |
| Boolean | postGUI |
Properties
| Improve this Doc View SourceEnd
Position of the end of the line
Declaration
public Vector2 End { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Width
Width of the line
Declaration
public float Width { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |
Methods
| Improve this Doc View SourceDraw(RootElement, OnRenderEventArgs)
Draw the line
Declaration
public bool Draw(RootElement source, OnRenderEventArgs eventArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| RootElement | source | |
| OnRenderEventArgs | eventArgs |
Returns
| Type | Description |
|---|---|
| Boolean |