.. a7 Breakout documentation file. .. _rect-label: Rectangular Shapes ================== These classes provide the basic geometry functionality for drawing solid, rectangular shapes. All these shapes have attributes ``x`` and ``y`` identifying the center of the shape, and attributes ``width`` and ``height`` defining the size. To draw a shape, simply call ``draw`` method providing and instance of :ref:`GView <gview-label>`. Since these shapes are all solid, they also provide primitive collision detection via the ``contains`` method. This method takes a :class:`Point2` object from the :mod:`cornell` module. .. toctree:: :maxdepth: 1 grectangle gellipse gimage glabel gsprite :ref:`Return to top level <top-label>`