Skip to content

Commit

Permalink
Missing window events in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Nov 19, 2019
1 parent d9bc54b commit dded03f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/guide/basic_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,17 @@ See code for :py:func:`moderngl_window.parse_args` for more details.
Window events
-------------

Implement the ``resize`` method to customize window resize handling.

.. code:: python
def resize(self, width: int, height: int):
print("Window was resized. buffer size is {} x {}".format(width, height))
def close(self):
print("The window is closing")
def iconify(self, iconify: bool):
print("Window was iconified:", iconify)
Keyboard input
--------------

Expand Down

0 comments on commit dded03f

Please sign in to comment.