root / trunk / pysoy / include / soy._core.pxd

Revision 1241, 4.8 kB (checked in by ArcRiley, 6 months ago)

No Ticket :

  • renaming include/soy/*.pxd to include/soy.*.pxd
  • this restores Pyrex compatibility which was broken by [1239]
  • Property svn:keywords set to Id
Line 
1# PySoy Core Declarations (for X11-based systems)
2#
3# Copyright (C) 2006,2007,2008 PySoy Group
4#
5#  This program is free software; you can redistribute it and/or modify
6#  it under the terms of the GNU Affero General Public License as published
7#  by the Free Software Foundation, either version 3 of the License, or
8#  (at your option) any later version.
9#
10#  This program is distributed in the hope that it will be useful,
11#  but WITHOUT ANY WARRANTY; without even the implied warranty of
12#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13#  GNU Affero General Public License for more details.
14#
15#  You should have received a copy of the GNU Affero General Public License
16#  along with this program; if not, see http://www.gnu.org/licenses
17#
18# $Id$
19
20cimport gl
21cimport glib
22cimport ode
23cimport ogg
24cimport py
25cimport stdio
26cimport soy._internals
27cimport soy.colors
28
29IF UNAME_SYSNAME == "Windows" :
30  cimport windows
31ELIF UNAME_SYSNAME == "Darwin" :
32  cimport carbon
33ELSE:
34  cimport glx
35
36cdef class Screen :
37  cdef int                         _screenID
38  cdef object                      _fullScreen
39  cdef void                        _events(self)
40  # OpenGL Support
41  cdef int                         _glVersion
42  cdef void                        _coreGlewInit(self)
43  IF UNAME_SYSNAME != "Windows" :
44    # X11 Support
45    cdef glx.Screen               *_screen
46    cdef glx.Atom                  _wmDelWin
47    cdef glx.XF86VidModeModeInfo   _deskMode
48    cdef glx.XVisualInfo          *_xVisualInfo
49
50
51cdef class Window :
52  cdef soy._internals.Children     _controllers
53  cdef soy._internals.Children     _widgets
54  cdef Screen                      _screen
55  cdef object                      _title
56  cdef soy.colors.Color            _background
57  cdef int                         _x
58  cdef int                         _y
59  cdef int                         _width
60  cdef int                         _height
61  cdef int                         _savedWidth
62  cdef int                         _savedHeight
63  cdef int                         _opened
64  cdef int                         _splash
65  IF UNAME_SYSNAME == "Windows" :
66    cdef int                       _windowID
67    cdef object                    _icon
68    cdef int                       _request
69    cdef windows.HGLRC             _glRenderContext
70    cdef windows.HDC               _deviceContext
71    cdef windows.HWND              _window
72    cdef windows.HINSTANCE         _hInst
73    cdef void                      _set_title(self)
74    cdef void                      _request_create(self, int, int, int, int)
75    cdef void                      _request_destroy(self)
76    cdef void                      _registerClass(self)
77    cdef void                      _unregisterClass(self)
78    cdef int                       _minimized
79  ELSE :
80    # X11/GLX platform
81    cdef glx.Window                _windowID
82    cdef glx.Pixmap                _iconPixmap
83    cdef object                    _iconCanvas
84    cdef void                      _openedWait          ( self, int )
85    cdef void                      _setProperties       ( self )
86    cdef void                      _coreEventKeyDown    ( self, glx.Time,
87                                                          glx.KeyCode,
88                                                          glx.KeySym )
89    cdef void                      _coreEventKeyUp      ( self, glx.Time,
90                                                         glx.KeyCode,
91                                                         glx.KeySym )
92    cdef void                      _coreEventButtonDown ( self, glx.Time,
93                                                          unsigned int,
94                                                          int, int )
95    cdef void                      _coreEventButtonUp   ( self, glx.Time,
96                                                          unsigned int,
97                                                          int, int )
98    cdef void                      _coreEventMotion     ( self, glx.Time,
99                                                          int, int )
100    cdef void                      _coreEventWinClose   ( self )
101    cdef void                      _coreEventConfigure  ( self,
102                                                          int, int, int, int )
103    cdef void                      _coreEventCreate     ( self )
104    cdef void                      _coreEventDestroy    ( self )
105    cdef void                      _coreEventMap        ( self )
106    cdef void                      _coreEventUnmap      ( self )
107    cdef void                      _coreCreate          ( self )
108  cdef void                        _create(self, int, int, int, int)
109  cdef void                        _destroy(self)
110  cdef void                        _resize(self, int _width, int _height)
111  cdef void                        _render(self)
Note: See TracBrowser for help on using the browser.