test-kivy-app/kivy_venv/lib/python3.11/site-packages/kivy/input/shape.py

28 lines
537 B
Python
Raw Normal View History

2024-09-15 12:12:16 +00:00
'''
Motion Event Shape
==================
Represent the shape of the :class:`~kivy.input.motionevent.MotionEvent`
'''
__all__ = ('Shape', 'ShapeRect')
class Shape(object):
'''Abstract class for all implementations of a shape'''
pass
class ShapeRect(Shape):
'''Class for the representation of a rectangle.'''
__slots__ = ('width', 'height')
def __init__(self):
super(ShapeRect, self).__init__()
#: Width of the rect
self.width = 0
#: Height of the rect
self.height = 0