Previous topic

efl.evas.Line Class

Next topic

efl.evas.Text Class

efl.evas.Polygon Class

class efl.evas.Polygon

Bases: efl.evas.Object

A polygon.

Parameters:
  • canvas (Canvas) – Evas canvas for this object
  • size (tuple of ints) – Width and height
  • pos (tuple of ints) – X and Y
  • geometry (tuple of ints) – X, Y, width, height
  • color (tuple of ints) – R, G, B, A
  • name (string) – Object name
  • points (tuple of x, y int pairs) – Points of the polygon
point_add()

Add a new point to the polygon

Parameters:
  • x
  • y
points_clear()

Remove all the points from the polygon