
.. py:module:: demosys.context.pyglet
.. py:currentmodule:: demosys.context.pyglet

demosys.context.pyglet.Window
=============================

.. autodata:: Window
   :annotation:

.. autodata:: Keys
   :annotation:

Methods
-------

.. automethod:: Window.__init__
.. automethod:: Window.on_key_press
.. automethod:: Window.on_key_release
.. automethod:: Window.on_mouse_motion
.. automethod:: Window.on_resize
.. automethod:: Window.use
.. automethod:: Window.swap_buffers
.. automethod:: Window.should_close
.. automethod:: Window.close
.. automethod:: Window.terminate
.. automethod:: Window.resize

Other Inherited Methods
-----------------------

.. automethod:: Window.draw
.. automethod:: Window.clear
.. automethod:: Window.clear_values
.. automethod:: Window.keyboard_event
.. automethod:: Window.cursor_event
.. automethod:: Window.print_context_info
.. automethod:: Window.set_default_viewport

Attributes
----------

.. autoattribute:: Window.size
.. autoattribute:: Window.buffer_size
.. autoattribute:: Window.keys
