Previous topic

efl.evas.Rectangle Class

Next topic

efl.evas.Polygon Class

efl.evas.Line Class

class efl.evas.Line

Bases: efl.evas.Object

A straight line.

Parameters:
  • canvas (Canvas) – Evas canvas for this object
  • start (tuple of ints) – Start coordinates (x, y)
  • end (tuple of ints) – End coordinates (x, y)
  • geometry (tuple of ints) – Geometry of the line (x, y, w, h)
  • size (tuple of ints) – Size of the line (w, h)
  • pos (tuple of ints) – Position of the line (x, y)
  • **kwargs – All the remaining keyword arguments are interpreted as properties of the instance
end None

The end point of the line.

Type:(int x, int y)
end_get()
end_set(x2, y2)
start None

The starting point of the line.

Type:(int x, int y)
start_get()
start_set(x1, y1)
xy None

Two points of the line.

Type:(int x0, int y0, int x1, int y1)
xy_get()
xy_set(x1, y1, x2, y2)