| 1 |
pyglet.window |
| 2 |
============= |
| 3 |
|
| 4 |
.. rubric:: Submodules |
| 5 |
|
| 6 |
.. toctree:: |
| 7 |
:maxdepth: 1 |
| 8 |
|
| 9 |
window_key |
| 10 |
window_mouse |
| 11 |
|
| 12 |
.. rubric:: Details |
| 13 |
|
| 14 |
.. automodule:: pyglet.window |
| 15 |
|
| 16 |
Classes |
| 17 |
------- |
| 18 |
|
| 19 |
.. autoclass:: Window |
| 20 |
:show-inheritance: |
| 21 |
|
| 22 |
.. rubric:: Methods |
| 23 |
|
| 24 |
.. automethod:: activate |
| 25 |
.. automethod:: clear |
| 26 |
.. automethod:: close |
| 27 |
.. automethod:: dispatch_event |
| 28 |
.. automethod:: dispatch_events |
| 29 |
.. automethod:: draw_mouse_cursor |
| 30 |
.. automethod:: flip |
| 31 |
.. automethod:: get_framebuffer_size |
| 32 |
.. automethod:: get_location |
| 33 |
.. automethod:: get_pixel_ratio |
| 34 |
.. automethod:: get_size |
| 35 |
.. automethod:: get_system_mouse_cursor |
| 36 |
.. automethod:: maximize |
| 37 |
.. automethod:: minimize |
| 38 |
.. automethod:: set_caption |
| 39 |
.. automethod:: set_exclusive_keyboard |
| 40 |
.. automethod:: set_exclusive_mouse |
| 41 |
.. automethod:: set_fullscreen |
| 42 |
.. automethod:: set_icon |
| 43 |
.. automethod:: set_location |
| 44 |
.. automethod:: set_maximum_size |
| 45 |
.. automethod:: set_minimum_size |
| 46 |
.. automethod:: set_mouse_cursor |
| 47 |
.. automethod:: set_mouse_platform_visible |
| 48 |
.. automethod:: set_mouse_visible |
| 49 |
.. automethod:: set_size |
| 50 |
.. automethod:: set_visible |
| 51 |
.. automethod:: switch_to |
| 52 |
|
| 53 |
.. rubric:: Events |
| 54 |
|
| 55 |
.. automethod:: on_activate |
| 56 |
.. automethod:: on_close |
| 57 |
.. automethod:: on_context_lost |
| 58 |
.. automethod:: on_context_state_lost |
| 59 |
.. automethod:: on_deactivate |
| 60 |
.. automethod:: on_draw |
| 61 |
.. automethod:: on_expose |
| 62 |
.. automethod:: on_file_drop |
| 63 |
.. automethod:: on_hide |
| 64 |
.. automethod:: on_key_press |
| 65 |
.. automethod:: on_key_release |
| 66 |
.. automethod:: on_mouse_drag |
| 67 |
.. automethod:: on_mouse_enter |
| 68 |
.. automethod:: on_mouse_leave |
| 69 |
.. automethod:: on_mouse_motion |
| 70 |
.. automethod:: on_mouse_press |
| 71 |
.. automethod:: on_mouse_release |
| 72 |
.. automethod:: on_mouse_scroll |
| 73 |
.. automethod:: on_move |
| 74 |
.. automethod:: on_refresh |
| 75 |
.. automethod:: on_resize |
| 76 |
.. automethod:: on_show |
| 77 |
.. automethod:: on_text |
| 78 |
.. automethod:: on_text_motion |
| 79 |
.. automethod:: on_text_motion_select |
| 80 |
|
| 81 |
.. rubric:: Attributes |
| 82 |
|
| 83 |
.. autoattribute:: aspect_ratio |
| 84 |
.. autoattribute:: caption |
| 85 |
.. autoattribute:: config |
| 86 |
.. autoattribute:: context |
| 87 |
.. autoattribute:: display |
| 88 |
.. autoattribute:: dpi |
| 89 |
.. autoattribute:: fullscreen |
| 90 |
.. autoattribute:: has_exit |
| 91 |
.. autoattribute:: height |
| 92 |
.. autoattribute:: invalid |
| 93 |
.. autoattribute:: projection |
| 94 |
.. autoattribute:: resizeable |
| 95 |
.. autoattribute:: scale |
| 96 |
.. autoattribute:: screen |
| 97 |
.. autoattribute:: size |
| 98 |
.. autoattribute:: style |
| 99 |
.. autoattribute:: view |
| 100 |
.. autoattribute:: viewport |
| 101 |
.. autoattribute:: visible |
| 102 |
.. autoattribute:: vsync |
| 103 |
.. autoattribute:: width |
| 104 |
|
| 105 |
.. rubric:: Class attributes: cursor names |
| 106 |
|
| 107 |
.. autoattribute:: CURSOR_CROSSHAIR |
| 108 |
.. autoattribute:: CURSOR_DEFAULT |
| 109 |
.. autoattribute:: CURSOR_HAND |
| 110 |
.. autoattribute:: CURSOR_HELP |
| 111 |
.. autoattribute:: CURSOR_NO |
| 112 |
.. autoattribute:: CURSOR_SIZE |
| 113 |
.. autoattribute:: CURSOR_SIZE_DOWN |
| 114 |
.. autoattribute:: CURSOR_SIZE_DOWN_LEFT |
| 115 |
.. autoattribute:: CURSOR_SIZE_DOWN_RIGHT |
| 116 |
.. autoattribute:: CURSOR_SIZE_LEFT |
| 117 |
.. autoattribute:: CURSOR_SIZE_LEFT_RIGHT |
| 118 |
.. autoattribute:: CURSOR_SIZE_RIGHT |
| 119 |
.. autoattribute:: CURSOR_SIZE_UP |
| 120 |
.. autoattribute:: CURSOR_SIZE_UP_DOWN |
| 121 |
.. autoattribute:: CURSOR_SIZE_UP_LEFT |
| 122 |
.. autoattribute:: CURSOR_SIZE_UP_RIGHT |
| 123 |
.. autoattribute:: CURSOR_TEXT |
| 124 |
.. autoattribute:: CURSOR_WAIT |
| 125 |
.. autoattribute:: CURSOR_WAIT_ARROW |
| 126 |
|
| 127 |
.. rubric:: Class attributes: window styles |
| 128 |
|
| 129 |
.. autoattribute:: WINDOW_STYLE_BORDERLESS |
| 130 |
.. autoattribute:: WINDOW_STYLE_DEFAULT |
| 131 |
.. autoattribute:: WINDOW_STYLE_DIALOG |
| 132 |
.. autoattribute:: WINDOW_STYLE_OVERLAY |
| 133 |
.. autoattribute:: WINDOW_STYLE_TOOL |
| 134 |
.. autoattribute:: WINDOW_STYLE_TRANSPARENT |
| 135 |
|
| 136 |
|
| 137 |
.. autoclass:: FPSDisplay |
| 138 |
:members: |
| 139 |
:undoc-members: |
| 140 |
:show-inheritance: |
| 141 |
|
| 142 |
.. autoclass:: MouseCursor |
| 143 |
:members: |
| 144 |
:undoc-members: |
| 145 |
|
| 146 |
.. autoclass:: DefaultMouseCursor |
| 147 |
:show-inheritance: |
| 148 |
|
| 149 |
.. autoclass:: ImageMouseCursor |
| 150 |
:members: |
| 151 |
:undoc-members: |
| 152 |
:show-inheritance: |
| 153 |
|
| 154 |
|
| 155 |
Exceptions |
| 156 |
---------- |
| 157 |
|
| 158 |
.. autoclass:: MouseCursorException |
| 159 |
.. autoclass:: NoSuchConfigException |
| 160 |
.. autoclass:: NoSuchDisplayException |
| 161 |
.. autoclass:: WindowException |