efl.evas.Line
Class¶
- class efl.evas.Line(Canvas canvas, start=None, end=None, geometry=None, size=None, pos=None, **kwargs)¶
Bases:
efl.evas.Object
A straight line.
- Parameters
canvas (
Canvas
) – Evas canvas for this objectstart (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¶
The end point of the line.
- Type
(int x, int y)
- end_get()¶
- end_set(x2, y2)¶
- start¶
The starting point of the line.
- Type
(int x, int y)
- start_get()¶
- start_set(x1, y1)¶
- xy¶
Two points of the line.
- Type
(int x0, int y0, int x1, int y1)
- xy_get()¶
- xy_set(x1, y1, x2, y2)¶