.. a7 GView class .. _gview-label: Class GView =========== This is the class that you will use to draw shapes to the screen. Simply pass an instance of this class to the ``draw`` method in :ref:`GObject <gobject-label>`. You must do this every animation frame, as the game is constantly clearing the window. **You should never construct an object of this class**. Creating a new instance of this class will not properly display it on the screen. Instead, you should only use the one provided in the ``input`` attribute of :ref:`GameApp <game-label>`. See that class for more information. Constructor ----------- .. autoclass:: game2d.GView Methods ------- .. currentmodule:: game2d .. automethod:: GView.draw .. automethod:: GView.clear :ref:`Return to top level <top-label>`