
    \
j                     V   d Z ddlZddlZ eed          oej        Z ej                    Z	 d Zerddl	m
Z
mZmZmZ dS ddlmZmZ ed         rddlmZ
 dd	lmZ dd
lmZ dS edk    rddlmZ
 ddlmZ ddlmZ dS edv rddlmZ
 ddlmZ ddlmZ dS ddlmZ
 ddlmZ ddlm Z dS )a  Display and screen management.

Rendering is performed on a :class:`Canvas`, which conceptually could be an
off-screen buffer, the content area of a :class:`pyglet.window.Window`, or an
entire screen. Currently, canvases can only be created with windows (though
windows can be set fullscreen).

Windows and canvases must belong to a :class:`Display`. On Windows and Mac OS X
there is only one display, which can be obtained with :func:`get_display`.
Linux supports multiple displays, corresponding to discrete X11 display
connections and screens.  :func:`get_display` on Linux returns the default
display and screen 0 (``localhost:0.0``); if a particular screen or display is
required then :class:`Display` can be instantiated directly.

Within a display one or more screens are attached.  A :class:`Screen` often
corresponds to a physical attached monitor, however a monitor or projector set
up to clone another screen will not be listed.  Use :meth:`Display.get_screens`
to get a list of the attached screens; these can then be queried for their
sizes and virtual positions on the desktop.

The size of a screen is determined by its current mode, which can be changed
by the application; see the documentation for :class:`Screen`.

.. versionadded:: 1.2
    Nis_pyglet_doc_runc                  8    t           D ]} | c S t                      S )aE  Get the default display device.

    If there is already a :class:`Display` connection, that display will be
    returned. Otherwise, a default :class:`Display` is created and returned.
    If multiple display connections are active, an arbitrary one is returned.

    .. versionadded:: 1.2

    :rtype: :class:`Display`
    )	_displaysDisplay)displays    P/DATA/AppData/hermes/venv/lib/python3.11/site-packages/pyglet/canvas/__init__.pyget_displayr	   N   s(        99    )r   ScreenCanvas
ScreenMode)compat_platformoptionsheadless)HeadlessDisplay)HeadlessScreen)HeadlessCanvasdarwin)CocoaDisplay)CocoaScreen)CocoaCanvas)win32cygwin)Win32Display)Win32Screen)Win32Canvas)XlibDisplay)
XlibScreen)
XlibCanvas)!__doc__sysweakrefhasattrr   _is_pyglet_doc_runWeakSetr   r	   pyglet.canvas.baser   r   r   r   pygletr   r   pyglet.canvas.headlessr   r   r   pyglet.canvas.cocoar   r   r   pyglet.canvas.win32r   r   r   pyglet.canvas.xlibr   r   r    r
   r   <module>r-      s  H 4 


  WS"566P3;P  GO	  &  <FFFFFFFFFFFFFF////////z <EEEEEECCCCCCCCCCCCCC	H	$	$??????==============	/	/	/??????====================;;;;;;;;;;;;;;r
   