]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/contrib/ogl/ogl.i
Beginning of bitmap updates
[wxWidgets.git] / wxPython / contrib / ogl / ogl.i
... / ...
CommitLineData
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%pragma(python) code = "import wx"
41
42//---------------------------------------------------------------------------
43
44
45enum {
46 KEY_SHIFT,
47 KEY_CTRL,
48 ARROW_NONE,
49 ARROW_END,
50 ARROW_BOTH,
51 ARROW_MIDDLE,
52 ARROW_START,
53 ARROW_HOLLOW_CIRCLE,
54 ARROW_FILLED_CIRCLE,
55 ARROW_ARROW,
56 ARROW_SINGLE_OBLIQUE,
57 ARROW_DOUBLE_OBLIQUE,
58 ARROW_METAFILE,
59 ARROW_POSITION_END,
60 ARROW_POSITION_START,
61 CONTROL_POINT_VERTICAL,
62 CONTROL_POINT_HORIZONTAL,
63 CONTROL_POINT_DIAGONAL,
64 CONTROL_POINT_ENDPOINT_TO,
65 CONTROL_POINT_ENDPOINT_FROM,
66 CONTROL_POINT_LINE,
67 FORMAT_NONE,
68 FORMAT_CENTRE_HORIZ,
69 FORMAT_CENTRE_VERT,
70 FORMAT_SIZE_TO_CONTENTS,
71 LINE_ALIGNMENT_HORIZ,
72 LINE_ALIGNMENT_VERT,
73 LINE_ALIGNMENT_TO_NEXT_HANDLE,
74 LINE_ALIGNMENT_NONE,
75 SHADOW_NONE,
76 SHADOW_LEFT,
77 SHADOW_RIGHT,
78// SHAPE_BASIC,
79// SHAPE_RECTANGLE,
80// SHAPE_ELLIPSE,
81// SHAPE_POLYGON,
82// SHAPE_CIRCLE,
83// SHAPE_LINE,
84// SHAPE_DIVIDED_RECTANGLE,
85// SHAPE_COMPOSITE,
86// SHAPE_CONTROL_POINT,
87// SHAPE_DRAWN,
88// SHAPE_DIVISION,
89// SHAPE_LABEL_OBJECT,
90// SHAPE_BITMAP,
91// SHAPE_DIVIDED_OBJECT_CONTROL_POINT,
92// OBJECT_REGION,
93 OP_CLICK_LEFT,
94 OP_CLICK_RIGHT,
95 OP_DRAG_LEFT,
96 OP_DRAG_RIGHT,
97 OP_ALL,
98 ATTACHMENT_MODE_NONE,
99 ATTACHMENT_MODE_EDGE,
100 ATTACHMENT_MODE_BRANCHING,
101 BRANCHING_ATTACHMENT_NORMAL,
102 BRANCHING_ATTACHMENT_BLOB,
103
104 gyCONSTRAINT_CENTRED_VERTICALLY,
105 gyCONSTRAINT_CENTRED_HORIZONTALLY,
106 gyCONSTRAINT_CENTRED_BOTH,
107 gyCONSTRAINT_LEFT_OF,
108 gyCONSTRAINT_RIGHT_OF,
109 gyCONSTRAINT_ABOVE,
110 gyCONSTRAINT_BELOW,
111 gyCONSTRAINT_ALIGNED_TOP,
112 gyCONSTRAINT_ALIGNED_BOTTOM,
113 gyCONSTRAINT_ALIGNED_LEFT,
114 gyCONSTRAINT_ALIGNED_RIGHT,
115 gyCONSTRAINT_MIDALIGNED_TOP,
116 gyCONSTRAINT_MIDALIGNED_BOTTOM,
117 gyCONSTRAINT_MIDALIGNED_LEFT,
118 gyCONSTRAINT_MIDALIGNED_RIGHT,
119
120 DIVISION_SIDE_NONE,
121 DIVISION_SIDE_LEFT,
122 DIVISION_SIDE_TOP,
123 DIVISION_SIDE_RIGHT,
124 DIVISION_SIDE_BOTTOM,
125
126};
127
128
129
130//---------------------------------------------------------------------------
131
132void wxOGLInitialize();
133void wxOGLCleanUp();
134
135
136//---------------------------------------------------------------------------
137//---------------------------------------------------------------------------
138//---------------------------------------------------------------------------
139%{
140extern "C" SWIGEXPORT(void) initoglbasicc();
141extern "C" SWIGEXPORT(void) initoglshapesc();
142extern "C" SWIGEXPORT(void) initoglshapes2c();
143extern "C" SWIGEXPORT(void) initoglcanvasc();
144%}
145
146
147%init %{
148
149 initoglbasicc();
150 initoglshapesc();
151 initoglshapes2c();
152 initoglcanvasc();
153
154
155 wxClassInfo::CleanUpClasses();
156 wxClassInfo::InitializeClasses();
157
158%}
159
160//----------------------------------------------------------------------
161// And this gets appended to the shadow class file.
162//----------------------------------------------------------------------
163
164%pragma(python) include="_oglextras.py";
165
166//---------------------------------------------------------------------------
167//---------------------------------------------------------------------------