File: basewindow.rst

package info (click to toggle)
python-moderngl-window 2.4.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 69,220 kB
  • sloc: python: 11,387; makefile: 21
file content (84 lines) | stat: -rw-r--r-- 3,053 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84

.. 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.show
.. automethod:: BaseWindow.hide
.. 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.backend
.. autoattribute:: BaseWindow.headless
.. autoattribute:: BaseWindow.fbo
.. autoattribute:: BaseWindow.title
.. autoattribute:: BaseWindow.visible
.. autoattribute:: BaseWindow.hidden
.. 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