efl.evas.Rect
Class¶efl.evas.
Rect
(*args, **kargs)¶This class provides the description of a rectangle and means to access and modify its properties in an easy way.
Usage example:
>>> r1 = Rect(10, 20, 30, 40)
>>> r2 = Rect((0, 0), (100, 100))
>>> r1
Rect(x=10, y=20, w=30, h=40)
>>> r2
Rect(x=0, y=0, w=100, h=100)
>>> r1.contains(r2)
False
>>> r2.contains(r1)
True
>>> r1 in r2 # same as r2.contains(r1)
True
>>> r1.intercepts(r2)
True
Attention
This is not a graphical object! Do not confuse with
efl.evas.Rectangle
.