]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/modules/ogl/ogl.i
More updates.
[wxWidgets.git] / utils / wxPython / modules / ogl / ogl.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: ogl.i
3 // Purpose: SWIG definitions for the wxWindows Object Graphics Library
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 30-June-1999
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module ogl
15
16 %{
17 #include "helpers.h"
18 #include "oglhelpers.h"
19 %}
20
21 //---------------------------------------------------------------------------
22
23 %include typemaps.i
24 %include my_typemaps.i
25
26 %extern wx.i
27 %import windows.i
28 %extern _defs.i
29 %extern misc.i
30 %extern gdi.i
31
32 %include _ogldefs.i
33
34 %import oglbasic.i
35 %import oglshapes.i
36 %import oglshapes2.i
37 %import oglcanvas.i
38
39
40 %{
41 #if defined(__WXMSW__)
42 wxString wxPyEmptyStr("");
43 wxPoint wxPyDefaultPosition(-1, -1);
44 wxSize wxPyDefaultSize(-1, -1);
45 #endif
46 %}
47
48 %pragma(python) code = "import wx"
49
50 //---------------------------------------------------------------------------
51
52
53 enum {
54 KEY_SHIFT,
55 KEY_CTRL,
56 ARROW_NONE,
57 ARROW_END,
58 ARROW_BOTH,
59 ARROW_MIDDLE,
60 ARROW_START,
61 ARROW_HOLLOW_CIRCLE,
62 ARROW_FILLED_CIRCLE,
63 ARROW_ARROW,
64 ARROW_SINGLE_OBLIQUE,
65 ARROW_DOUBLE_OBLIQUE,
66 ARROW_METAFILE,
67 ARROW_POSITION_END,
68 ARROW_POSITION_START,
69 CONTROL_POINT_VERTICAL,
70 CONTROL_POINT_HORIZONTAL,
71 CONTROL_POINT_DIAGONAL,
72 CONTROL_POINT_ENDPOINT_TO,
73 CONTROL_POINT_ENDPOINT_FROM,
74 CONTROL_POINT_LINE,
75 FORMAT_NONE,
76 FORMAT_CENTRE_HORIZ,
77 FORMAT_CENTRE_VERT,
78 FORMAT_SIZE_TO_CONTENTS,
79 LINE_ALIGNMENT_HORIZ,
80 LINE_ALIGNMENT_VERT,
81 LINE_ALIGNMENT_TO_NEXT_HANDLE,
82 LINE_ALIGNMENT_NONE,
83 SHADOW_NONE,
84 SHADOW_LEFT,
85 SHADOW_RIGHT,
86 // SHAPE_BASIC,
87 // SHAPE_RECTANGLE,
88 // SHAPE_ELLIPSE,
89 // SHAPE_POLYGON,
90 // SHAPE_CIRCLE,
91 // SHAPE_LINE,
92 // SHAPE_DIVIDED_RECTANGLE,
93 // SHAPE_COMPOSITE,
94 // SHAPE_CONTROL_POINT,
95 // SHAPE_DRAWN,
96 // SHAPE_DIVISION,
97 // SHAPE_LABEL_OBJECT,
98 // SHAPE_BITMAP,
99 // SHAPE_DIVIDED_OBJECT_CONTROL_POINT,
100 // OBJECT_REGION,
101 OP_CLICK_LEFT,
102 OP_CLICK_RIGHT,
103 OP_DRAG_LEFT,
104 OP_DRAG_RIGHT,
105 OP_ALL,
106 ATTACHMENT_MODE_NONE,
107 ATTACHMENT_MODE_EDGE,
108 ATTACHMENT_MODE_BRANCHING,
109 BRANCHING_ATTACHMENT_NORMAL,
110 BRANCHING_ATTACHMENT_BLOB,
111
112 gyCONSTRAINT_CENTRED_VERTICALLY,
113 gyCONSTRAINT_CENTRED_HORIZONTALLY,
114 gyCONSTRAINT_CENTRED_BOTH,
115 gyCONSTRAINT_LEFT_OF,
116 gyCONSTRAINT_RIGHT_OF,
117 gyCONSTRAINT_ABOVE,
118 gyCONSTRAINT_BELOW,
119 gyCONSTRAINT_ALIGNED_TOP,
120 gyCONSTRAINT_ALIGNED_BOTTOM,
121 gyCONSTRAINT_ALIGNED_LEFT,
122 gyCONSTRAINT_ALIGNED_RIGHT,
123 gyCONSTRAINT_MIDALIGNED_TOP,
124 gyCONSTRAINT_MIDALIGNED_BOTTOM,
125 gyCONSTRAINT_MIDALIGNED_LEFT,
126 gyCONSTRAINT_MIDALIGNED_RIGHT,
127
128 DIVISION_SIDE_NONE,
129 DIVISION_SIDE_LEFT,
130 DIVISION_SIDE_TOP,
131 DIVISION_SIDE_RIGHT,
132 DIVISION_SIDE_BOTTOM,
133
134 };
135
136
137
138 //---------------------------------------------------------------------------
139
140 void wxOGLInitialize();
141 void wxOGLCleanUp();
142
143
144 //---------------------------------------------------------------------------
145 //---------------------------------------------------------------------------
146 //---------------------------------------------------------------------------
147 %{
148 extern "C" SWIGEXPORT(void) initoglbasicc();
149 extern "C" SWIGEXPORT(void) initoglshapesc();
150 extern "C" SWIGEXPORT(void) initoglshapes2c();
151 extern "C" SWIGEXPORT(void) initoglcanvasc();
152 %}
153
154
155 %init %{
156
157 initoglbasicc();
158 initoglshapesc();
159 initoglshapes2c();
160 initoglcanvasc();
161
162
163 wxClassInfo::CleanUpClasses();
164 wxClassInfo::InitializeClasses();
165
166 %}
167
168 //----------------------------------------------------------------------
169 // And this gets appended to the shadow class file.
170 //----------------------------------------------------------------------
171
172 %pragma(python) include="_extras.py";
173
174 //---------------------------------------------------------------------------
175 //---------------------------------------------------------------------------