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