File: window.rst

package info (click to toggle)
pyglet 2.0.17%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,560 kB
  • sloc: python: 80,579; xml: 50,988; ansic: 171; makefile: 146
file content (159 lines) | stat: -rw-r--r-- 4,040 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
pyglet.window
=============

.. rubric:: Submodules

.. toctree::
   :maxdepth: 1

   window_key
   window_mouse

.. rubric:: Details

.. automodule:: pyglet.window

Classes
-------

.. autoclass:: Window
  :show-inheritance:

  .. rubric:: Methods

  .. automethod:: activate
  .. automethod:: clear
  .. automethod:: close
  .. automethod:: dispatch_event
  .. automethod:: dispatch_events
  .. automethod:: draw_mouse_cursor
  .. automethod:: flip
  .. automethod:: get_framebuffer_size
  .. automethod:: get_location
  .. automethod:: get_pixel_ratio
  .. automethod:: get_size
  .. automethod:: get_system_mouse_cursor
  .. automethod:: maximize
  .. automethod:: minimize
  .. automethod:: set_caption
  .. automethod:: set_exclusive_keyboard
  .. automethod:: set_exclusive_mouse
  .. automethod:: set_fullscreen
  .. automethod:: set_icon
  .. automethod:: set_location
  .. automethod:: set_maximum_size
  .. automethod:: set_minimum_size
  .. automethod:: set_mouse_cursor
  .. automethod:: set_mouse_platform_visible
  .. automethod:: set_mouse_visible
  .. automethod:: set_size
  .. automethod:: set_visible
  .. automethod:: switch_to

  .. rubric:: Events

  .. automethod:: on_activate
  .. automethod:: on_close
  .. automethod:: on_context_lost
  .. automethod:: on_context_state_lost
  .. automethod:: on_deactivate
  .. automethod:: on_draw
  .. automethod:: on_expose
  .. automethod:: on_file_drop
  .. automethod:: on_hide
  .. automethod:: on_key_press
  .. automethod:: on_key_release
  .. automethod:: on_mouse_drag
  .. automethod:: on_mouse_enter
  .. automethod:: on_mouse_leave
  .. automethod:: on_mouse_motion
  .. automethod:: on_mouse_press
  .. automethod:: on_mouse_release
  .. automethod:: on_mouse_scroll
  .. automethod:: on_move
  .. automethod:: on_refresh
  .. automethod:: on_resize
  .. automethod:: on_show
  .. automethod:: on_text
  .. automethod:: on_text_motion
  .. automethod:: on_text_motion_select

  .. rubric:: Attributes

  .. autoattribute:: aspect_ratio
  .. autoattribute:: caption
  .. autoattribute:: config
  .. autoattribute:: context
  .. autoattribute:: display
  .. autoattribute:: fullscreen
  .. autoattribute:: has_exit
  .. autoattribute:: height
  .. autoattribute:: invalid
  .. autoattribute:: projection
  .. autoattribute:: resizeable
  .. autoattribute:: screen
  .. autoattribute:: size
  .. autoattribute:: style
  .. autoattribute:: view
  .. autoattribute:: viewport
  .. autoattribute:: visible
  .. autoattribute:: vsync
  .. autoattribute:: width

  .. rubric:: Class attributes: cursor names

  .. autoattribute:: CURSOR_CROSSHAIR
  .. autoattribute:: CURSOR_DEFAULT
  .. autoattribute:: CURSOR_HAND
  .. autoattribute:: CURSOR_HELP
  .. autoattribute:: CURSOR_NO
  .. autoattribute:: CURSOR_SIZE
  .. autoattribute:: CURSOR_SIZE_DOWN
  .. autoattribute:: CURSOR_SIZE_DOWN_LEFT
  .. autoattribute:: CURSOR_SIZE_DOWN_RIGHT
  .. autoattribute:: CURSOR_SIZE_LEFT
  .. autoattribute:: CURSOR_SIZE_LEFT_RIGHT
  .. autoattribute:: CURSOR_SIZE_RIGHT
  .. autoattribute:: CURSOR_SIZE_UP
  .. autoattribute:: CURSOR_SIZE_UP_DOWN
  .. autoattribute:: CURSOR_SIZE_UP_LEFT
  .. autoattribute:: CURSOR_SIZE_UP_RIGHT
  .. autoattribute:: CURSOR_TEXT
  .. autoattribute:: CURSOR_WAIT
  .. autoattribute:: CURSOR_WAIT_ARROW

  .. rubric:: Class attributes: window styles

  .. autoattribute:: WINDOW_STYLE_BORDERLESS
  .. autoattribute:: WINDOW_STYLE_DEFAULT
  .. autoattribute:: WINDOW_STYLE_DIALOG
  .. autoattribute:: WINDOW_STYLE_OVERLAY
  .. autoattribute:: WINDOW_STYLE_TOOL
  .. autoattribute:: WINDOW_STYLE_TRANSPARENT


.. autoclass:: FPSDisplay
  :members:
  :undoc-members:
  :show-inheritance:

.. autoclass:: MouseCursor
  :members:
  :undoc-members:

.. autoclass:: DefaultMouseCursor
  :show-inheritance:

.. autoclass:: ImageMouseCursor
  :members:
  :undoc-members:
  :show-inheritance:


Exceptions
----------

.. autoclass:: MouseCursorException
.. autoclass:: NoSuchConfigException
.. autoclass:: NoSuchDisplayException
.. autoclass:: WindowException