
.. py:module:: moderngl_window.context.base.window
.. py:currentmodule:: moderngl_window.context.base.window

base.BaseWindow
===============

Methods
-------

.. automethod:: BaseWindow.__init__
.. automethod:: BaseWindow.init_mgl_context
.. automethod:: BaseWindow.is_key_pressed
.. automethod:: BaseWindow.set_icon
.. automethod:: BaseWindow.close
.. automethod:: BaseWindow.use
.. automethod:: BaseWindow.clear
.. automethod:: BaseWindow.render
.. automethod:: BaseWindow.swap_buffers
.. automethod:: BaseWindow.resize
.. automethod:: BaseWindow.destroy
.. automethod:: BaseWindow.set_default_viewport
.. automethod:: BaseWindow.convert_window_coordinates
.. automethod:: BaseWindow.print_context_info

Attributes
----------

.. autoattribute:: BaseWindow.name
.. autoattribute:: BaseWindow.keys
   :annotation:
.. autoattribute:: BaseWindow.ctx
.. autoattribute:: BaseWindow.fbo
.. autoattribute:: BaseWindow.title
.. autoattribute:: BaseWindow.exit_key
.. autoattribute:: BaseWindow.fullscreen_key
.. autoattribute:: BaseWindow.gl_version
.. autoattribute:: BaseWindow.width
.. autoattribute:: BaseWindow.height
.. autoattribute:: BaseWindow.size
.. autoattribute:: BaseWindow.position
.. autoattribute:: BaseWindow.fullscreen
.. autoattribute:: BaseWindow.buffer_width
.. autoattribute:: BaseWindow.buffer_height
.. autoattribute:: BaseWindow.buffer_size
.. autoattribute:: BaseWindow.pixel_ratio
.. autoattribute:: BaseWindow.viewport
.. autoattribute:: BaseWindow.viewport_size
.. autoattribute:: BaseWindow.viewport_width
.. autoattribute:: BaseWindow.viewport_height
.. autoattribute:: BaseWindow.frames
.. autoattribute:: BaseWindow.resizable
.. autoattribute:: BaseWindow.fullscreen
.. autoattribute:: BaseWindow.config
.. autoattribute:: BaseWindow.vsync
.. autoattribute:: BaseWindow.aspect_ratio
.. autoattribute:: BaseWindow.fixed_aspect_ratio
.. autoattribute:: BaseWindow.samples
.. autoattribute:: BaseWindow.cursor
.. autoattribute:: BaseWindow.mouse_exclusivity
.. autoattribute:: BaseWindow.render_func
.. autoattribute:: BaseWindow.resize_func
.. autoattribute:: BaseWindow.close_func
.. autoattribute:: BaseWindow.iconify_func
.. autoattribute:: BaseWindow.key_event_func
.. autoattribute:: BaseWindow.on_generic_event_func
.. autoattribute:: BaseWindow.mouse_position_event_func
.. autoattribute:: BaseWindow.mouse_press_event_func
.. autoattribute:: BaseWindow.mouse_release_event_func
.. autoattribute:: BaseWindow.mouse_drag_event_func
.. autoattribute:: BaseWindow.mouse_scroll_event_func
.. autoattribute:: BaseWindow.unicode_char_entered_func
.. autoattribute:: BaseWindow.files_dropped_event_func
.. autoattribute:: BaseWindow.is_closing
.. autoattribute:: BaseWindow.mouse
.. autoattribute:: BaseWindow.mouse_states
.. autoattribute:: BaseWindow.modifiers
.. autoattribute:: BaseWindow.gl_version_code
