File: display.rst.txt

package info (click to toggle)
pygame 2.1.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,416 kB
  • sloc: ansic: 66,042; python: 46,176; javascript: 9,214; objc: 273; sh: 78; makefile: 56; cpp: 25
file content (41 lines) | stat: -rw-r--r-- 1,193 bytes parent folder | download | duplicates (2)
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
.. include:: ../common.txt

.. highlight:: c

**********************************
  API exported by pygame.display
**********************************

src_c/display.c
===============

This is the :py:mod:`pygame.display` extension module.

Header file: src_c/include/pygame.h


.. c:type:: pgVidInfoObject

   A pygame object that wraps an SDL_VideoInfo struct.
   The object returned by :py:func:`pgyame.display.Info()`.

.. c:var:: PyTypeObject *pgVidInfo_Type

   The pgVidInfoObject object Python type.

.. c:function:: SDL_VideoInfo pgVidInfo_AsVidInfo(PyObject *obj)

   Return the SDL_VideoInfo field of *obj*, a :c:data:`pgVidInfo_Type` instance.
   This macro does not check that *obj* is not ``NULL`` or an actual :c:type:`pgVidInfoObject` object.

.. c:function:: PyObject* pgVidInfo_New(SDL_VideoInfo *i)

   Return a new :c:type:`pgVidInfoObject` object for the SDL_VideoInfo *i*.
   On failure, raise a Python exception and return ``NULL``.

.. c:function:: int pgVidInfo_Check(PyObject *x)

   Return true if *x* is a :c:data:`pgVidInfo_Type` instance

   Will return false if *x* is a subclass of :c:data:`pgVidInfo_Type`.
   This macro does not check that *x* is not ``NULL``.