Previous topic

efl.evas.Image Class

Next topic

efl.evas.Polygon Class

efl.evas.Line Class

class efl.evas.Line

Bases: efl.evas.Object

A straight line.

Parameters:
  • canvas (efl.evas.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
  • start – Start coordinates
  • end (tuple of ints) – End coordinates
end

The end point of the line.

Type :(int x, int y)
start

The starting point of the line.

Type :(int x, int y)
xy

Two points of the line.

Type :(int x0, int y0, int x1, int y1)