Class Polygon
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The Polygon is a widget that is used to draw a polygon (filled).
[Obsolete("This has been deprecated in API12")]
public class Polygon : EvasObject
- Inheritance
Constructors
View SourcePolygon(EvasObject)
Creates and initializes a new instance of the Polygon class.
The EvasObject to which the new Polygon will be attached as a child.Declaration
[Obsolete("This has been deprecated in API12")]
public Polygon(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent |
Methods
View SourceAddPoint(Point)
Adds a new vertex to the polygon.
The coordinates of the new vertex.Declaration
[Obsolete("This has been deprecated in API12")]
public void AddPoint(Point p)
Parameters
Type | Name | Description |
---|---|---|
Point | p |
AddPoint(int, int)
Adds a new vertex to the polygon.
The X-coordinate of the new vertex. The Y-coordinate of the new vertex.Declaration
[Obsolete("This has been deprecated in API12")]
public void AddPoint(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
int | x | |
int | y |
ClearPoints()
Removes all the vertices of the polygon, making it empty.
Declaration
[Obsolete("This has been deprecated in API12")]
public void ClearPoints()
CreateHandle(EvasObject)
Creates a widget handle.
Declaration
[Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |