]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import miscc | |
3 | class wxSizePtr : | |
4 | def __init__(self,this): | |
5 | self.this = this | |
6 | self.thisown = 0 | |
1d99702e | 7 | def __del__(self,miscc=miscc): |
8ab979d7 | 8 | if self.thisown == 1 : |
1d99702e RD |
9 | miscc.delete_wxSize(self) |
10 | def Set(self, *_args, **_kwargs): | |
11 | val = apply(miscc.wxSize_Set,(self,) + _args, _kwargs) | |
8ab979d7 | 12 | return val |
1d99702e RD |
13 | def GetX(self, *_args, **_kwargs): |
14 | val = apply(miscc.wxSize_GetX,(self,) + _args, _kwargs) | |
af309447 | 15 | return val |
1d99702e RD |
16 | def GetY(self, *_args, **_kwargs): |
17 | val = apply(miscc.wxSize_GetY,(self,) + _args, _kwargs) | |
af309447 | 18 | return val |
1d99702e RD |
19 | def GetWidth(self, *_args, **_kwargs): |
20 | val = apply(miscc.wxSize_GetWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 21 | return val |
1d99702e RD |
22 | def GetHeight(self, *_args, **_kwargs): |
23 | val = apply(miscc.wxSize_GetHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 24 | return val |
1d99702e RD |
25 | def SetWidth(self, *_args, **_kwargs): |
26 | val = apply(miscc.wxSize_SetWidth,(self,) + _args, _kwargs) | |
bb0054cd | 27 | return val |
1d99702e RD |
28 | def SetHeight(self, *_args, **_kwargs): |
29 | val = apply(miscc.wxSize_SetHeight,(self,) + _args, _kwargs) | |
bb0054cd | 30 | return val |
1d99702e RD |
31 | def asTuple(self, *_args, **_kwargs): |
32 | val = apply(miscc.wxSize_asTuple,(self,) + _args, _kwargs) | |
8ab979d7 RD |
33 | return val |
34 | def __setattr__(self,name,value): | |
af309447 | 35 | if name == "x" : |
1d99702e | 36 | miscc.wxSize_x_set(self,value) |
af309447 RD |
37 | return |
38 | if name == "y" : | |
1d99702e | 39 | miscc.wxSize_y_set(self,value) |
af309447 | 40 | return |
8ab979d7 | 41 | if name == "width" : |
1d99702e | 42 | miscc.wxSize_width_set(self,value) |
8ab979d7 RD |
43 | return |
44 | if name == "height" : | |
1d99702e | 45 | miscc.wxSize_height_set(self,value) |
8ab979d7 RD |
46 | return |
47 | self.__dict__[name] = value | |
48 | def __getattr__(self,name): | |
af309447 | 49 | if name == "x" : |
1d99702e | 50 | return miscc.wxSize_x_get(self) |
af309447 | 51 | if name == "y" : |
1d99702e | 52 | return miscc.wxSize_y_get(self) |
8ab979d7 | 53 | if name == "width" : |
1d99702e | 54 | return miscc.wxSize_width_get(self) |
8ab979d7 | 55 | if name == "height" : |
1d99702e | 56 | return miscc.wxSize_height_get(self) |
8ab979d7 RD |
57 | raise AttributeError,name |
58 | def __repr__(self): | |
1d99702e | 59 | return "<C wxSize instance at %s>" % (self.this,) |
af309447 RD |
60 | def __str__(self): return str(self.asTuple()) |
61 | def __repr__(self): return str(self.asTuple()) | |
8ab979d7 | 62 | class wxSize(wxSizePtr): |
1d99702e RD |
63 | def __init__(self,*_args,**_kwargs): |
64 | self.this = apply(miscc.new_wxSize,_args,_kwargs) | |
8ab979d7 RD |
65 | self.thisown = 1 |
66 | ||
67 | ||
68 | ||
69 | ||
70 | class wxRealPointPtr : | |
71 | def __init__(self,this): | |
72 | self.this = this | |
73 | self.thisown = 0 | |
1d99702e | 74 | def __del__(self,miscc=miscc): |
8ab979d7 | 75 | if self.thisown == 1 : |
1d99702e | 76 | miscc.delete_wxRealPoint(self) |
efc5f224 RD |
77 | def Set(self, *_args, **_kwargs): |
78 | val = apply(miscc.wxRealPoint_Set,(self,) + _args, _kwargs) | |
79 | return val | |
80 | def asTuple(self, *_args, **_kwargs): | |
81 | val = apply(miscc.wxRealPoint_asTuple,(self,) + _args, _kwargs) | |
82 | return val | |
c368d904 RD |
83 | def __add__(self, *_args, **_kwargs): |
84 | val = apply(miscc.wxRealPoint___add__,(self,) + _args, _kwargs) | |
85 | if val: val = wxRealPointPtr(val) ; val.thisown = 1 | |
86 | return val | |
87 | def __sub__(self, *_args, **_kwargs): | |
88 | val = apply(miscc.wxRealPoint___sub__,(self,) + _args, _kwargs) | |
89 | if val: val = wxRealPointPtr(val) ; val.thisown = 1 | |
90 | return val | |
91 | def __cmp__(self, *_args, **_kwargs): | |
92 | val = apply(miscc.wxRealPoint___cmp__,(self,) + _args, _kwargs) | |
93 | return val | |
8ab979d7 RD |
94 | def __setattr__(self,name,value): |
95 | if name == "x" : | |
1d99702e | 96 | miscc.wxRealPoint_x_set(self,value) |
8ab979d7 RD |
97 | return |
98 | if name == "y" : | |
1d99702e | 99 | miscc.wxRealPoint_y_set(self,value) |
8ab979d7 RD |
100 | return |
101 | self.__dict__[name] = value | |
102 | def __getattr__(self,name): | |
103 | if name == "x" : | |
1d99702e | 104 | return miscc.wxRealPoint_x_get(self) |
8ab979d7 | 105 | if name == "y" : |
1d99702e | 106 | return miscc.wxRealPoint_y_get(self) |
8ab979d7 RD |
107 | raise AttributeError,name |
108 | def __repr__(self): | |
1d99702e | 109 | return "<C wxRealPoint instance at %s>" % (self.this,) |
efc5f224 RD |
110 | def __str__(self): return str(self.asTuple()) |
111 | def __repr__(self): return str(self.asTuple()) | |
8ab979d7 | 112 | class wxRealPoint(wxRealPointPtr): |
1d99702e RD |
113 | def __init__(self,*_args,**_kwargs): |
114 | self.this = apply(miscc.new_wxRealPoint,_args,_kwargs) | |
8ab979d7 RD |
115 | self.thisown = 1 |
116 | ||
117 | ||
118 | ||
119 | ||
120 | class wxPointPtr : | |
121 | def __init__(self,this): | |
122 | self.this = this | |
123 | self.thisown = 0 | |
1d99702e | 124 | def __del__(self,miscc=miscc): |
8ab979d7 | 125 | if self.thisown == 1 : |
1d99702e RD |
126 | miscc.delete_wxPoint(self) |
127 | def Set(self, *_args, **_kwargs): | |
128 | val = apply(miscc.wxPoint_Set,(self,) + _args, _kwargs) | |
8ab979d7 | 129 | return val |
1d99702e RD |
130 | def asTuple(self, *_args, **_kwargs): |
131 | val = apply(miscc.wxPoint_asTuple,(self,) + _args, _kwargs) | |
8ab979d7 | 132 | return val |
c368d904 RD |
133 | def __add__(self, *_args, **_kwargs): |
134 | val = apply(miscc.wxPoint___add__,(self,) + _args, _kwargs) | |
135 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
136 | return val | |
137 | def __sub__(self, *_args, **_kwargs): | |
138 | val = apply(miscc.wxPoint___sub__,(self,) + _args, _kwargs) | |
139 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
140 | return val | |
141 | def __cmp__(self, *_args, **_kwargs): | |
142 | val = apply(miscc.wxPoint___cmp__,(self,) + _args, _kwargs) | |
143 | return val | |
8ab979d7 RD |
144 | def __setattr__(self,name,value): |
145 | if name == "x" : | |
1d99702e | 146 | miscc.wxPoint_x_set(self,value) |
8ab979d7 RD |
147 | return |
148 | if name == "y" : | |
1d99702e | 149 | miscc.wxPoint_y_set(self,value) |
8ab979d7 RD |
150 | return |
151 | self.__dict__[name] = value | |
152 | def __getattr__(self,name): | |
153 | if name == "x" : | |
1d99702e | 154 | return miscc.wxPoint_x_get(self) |
8ab979d7 | 155 | if name == "y" : |
1d99702e | 156 | return miscc.wxPoint_y_get(self) |
8ab979d7 RD |
157 | raise AttributeError,name |
158 | def __repr__(self): | |
1d99702e | 159 | return "<C wxPoint instance at %s>" % (self.this,) |
af309447 RD |
160 | def __str__(self): return str(self.asTuple()) |
161 | def __repr__(self): return str(self.asTuple()) | |
8ab979d7 | 162 | class wxPoint(wxPointPtr): |
1d99702e RD |
163 | def __init__(self,*_args,**_kwargs): |
164 | self.this = apply(miscc.new_wxPoint,_args,_kwargs) | |
8ab979d7 RD |
165 | self.thisown = 1 |
166 | ||
167 | ||
168 | ||
169 | ||
170 | class wxRectPtr : | |
171 | def __init__(self,this): | |
172 | self.this = this | |
173 | self.thisown = 0 | |
1d99702e | 174 | def __del__(self,miscc=miscc): |
8ab979d7 | 175 | if self.thisown == 1 : |
1d99702e RD |
176 | miscc.delete_wxRect(self) |
177 | def GetX(self, *_args, **_kwargs): | |
178 | val = apply(miscc.wxRect_GetX,(self,) + _args, _kwargs) | |
8ab979d7 | 179 | return val |
1d99702e RD |
180 | def SetX(self, *_args, **_kwargs): |
181 | val = apply(miscc.wxRect_SetX,(self,) + _args, _kwargs) | |
8ab979d7 | 182 | return val |
1d99702e RD |
183 | def GetY(self, *_args, **_kwargs): |
184 | val = apply(miscc.wxRect_GetY,(self,) + _args, _kwargs) | |
8ab979d7 | 185 | return val |
1d99702e RD |
186 | def SetY(self, *_args, **_kwargs): |
187 | val = apply(miscc.wxRect_SetY,(self,) + _args, _kwargs) | |
8ab979d7 | 188 | return val |
1d99702e RD |
189 | def GetWidth(self, *_args, **_kwargs): |
190 | val = apply(miscc.wxRect_GetWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 191 | return val |
1d99702e RD |
192 | def SetWidth(self, *_args, **_kwargs): |
193 | val = apply(miscc.wxRect_SetWidth,(self,) + _args, _kwargs) | |
8ab979d7 | 194 | return val |
1d99702e RD |
195 | def GetHeight(self, *_args, **_kwargs): |
196 | val = apply(miscc.wxRect_GetHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 197 | return val |
1d99702e RD |
198 | def SetHeight(self, *_args, **_kwargs): |
199 | val = apply(miscc.wxRect_SetHeight,(self,) + _args, _kwargs) | |
8ab979d7 | 200 | return val |
1d99702e RD |
201 | def GetPosition(self, *_args, **_kwargs): |
202 | val = apply(miscc.wxRect_GetPosition,(self,) + _args, _kwargs) | |
203 | if val: val = wxPointPtr(val) ; val.thisown = 1 | |
8ab979d7 | 204 | return val |
1d99702e RD |
205 | def GetSize(self, *_args, **_kwargs): |
206 | val = apply(miscc.wxRect_GetSize,(self,) + _args, _kwargs) | |
207 | if val: val = wxSizePtr(val) ; val.thisown = 1 | |
8ab979d7 | 208 | return val |
1d99702e RD |
209 | def GetLeft(self, *_args, **_kwargs): |
210 | val = apply(miscc.wxRect_GetLeft,(self,) + _args, _kwargs) | |
8ab979d7 | 211 | return val |
1d99702e RD |
212 | def GetTop(self, *_args, **_kwargs): |
213 | val = apply(miscc.wxRect_GetTop,(self,) + _args, _kwargs) | |
8ab979d7 | 214 | return val |
1d99702e RD |
215 | def GetBottom(self, *_args, **_kwargs): |
216 | val = apply(miscc.wxRect_GetBottom,(self,) + _args, _kwargs) | |
8ab979d7 | 217 | return val |
1d99702e RD |
218 | def GetRight(self, *_args, **_kwargs): |
219 | val = apply(miscc.wxRect_GetRight,(self,) + _args, _kwargs) | |
8ab979d7 | 220 | return val |
eb715945 RD |
221 | def SetLeft(self, *_args, **_kwargs): |
222 | val = apply(miscc.wxRect_SetLeft,(self,) + _args, _kwargs) | |
223 | return val | |
224 | def SetRight(self, *_args, **_kwargs): | |
225 | val = apply(miscc.wxRect_SetRight,(self,) + _args, _kwargs) | |
226 | return val | |
227 | def SetTop(self, *_args, **_kwargs): | |
228 | val = apply(miscc.wxRect_SetTop,(self,) + _args, _kwargs) | |
229 | return val | |
230 | def SetBottom(self, *_args, **_kwargs): | |
231 | val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs) | |
232 | return val | |
f6bcfd97 BP |
233 | def Inflate(self, *_args, **_kwargs): |
234 | val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs) | |
235 | return val | |
236 | def Inside(self, *_args, **_kwargs): | |
237 | val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs) | |
238 | return val | |
1d99702e RD |
239 | def asTuple(self, *_args, **_kwargs): |
240 | val = apply(miscc.wxRect_asTuple,(self,) + _args, _kwargs) | |
af309447 | 241 | return val |
f6bcfd97 BP |
242 | def __add__(self, *_args, **_kwargs): |
243 | val = apply(miscc.wxRect___add__,(self,) + _args, _kwargs) | |
244 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
245 | return val | |
246 | def __cmp__(self, *_args, **_kwargs): | |
247 | val = apply(miscc.wxRect___cmp__,(self,) + _args, _kwargs) | |
248 | return val | |
8ab979d7 RD |
249 | def __setattr__(self,name,value): |
250 | if name == "x" : | |
1d99702e | 251 | miscc.wxRect_x_set(self,value) |
8ab979d7 RD |
252 | return |
253 | if name == "y" : | |
1d99702e | 254 | miscc.wxRect_y_set(self,value) |
8ab979d7 RD |
255 | return |
256 | if name == "width" : | |
1d99702e | 257 | miscc.wxRect_width_set(self,value) |
8ab979d7 RD |
258 | return |
259 | if name == "height" : | |
1d99702e | 260 | miscc.wxRect_height_set(self,value) |
8ab979d7 RD |
261 | return |
262 | self.__dict__[name] = value | |
263 | def __getattr__(self,name): | |
264 | if name == "x" : | |
1d99702e | 265 | return miscc.wxRect_x_get(self) |
8ab979d7 | 266 | if name == "y" : |
1d99702e | 267 | return miscc.wxRect_y_get(self) |
8ab979d7 | 268 | if name == "width" : |
1d99702e | 269 | return miscc.wxRect_width_get(self) |
8ab979d7 | 270 | if name == "height" : |
1d99702e | 271 | return miscc.wxRect_height_get(self) |
8ab979d7 RD |
272 | raise AttributeError,name |
273 | def __repr__(self): | |
1d99702e | 274 | return "<C wxRect instance at %s>" % (self.this,) |
af309447 RD |
275 | def __str__(self): return str(self.asTuple()) |
276 | def __repr__(self): return str(self.asTuple()) | |
9b3d3bc4 RD |
277 | |
278 | # override the __getattr__ made by SWIG | |
279 | def __getattr__(self, name): | |
280 | d = { | |
281 | 'x' : miscc.wxRect_x_get, | |
282 | 'y' : miscc.wxRect_y_get, | |
283 | 'width' : miscc.wxRect_width_get, | |
284 | 'height' : miscc.wxRect_height_get, | |
285 | 'top' : miscc.wxRect_GetTop, | |
286 | 'bottom' : miscc.wxRect_GetBottom, | |
287 | 'left' : miscc.wxRect_GetLeft, | |
288 | 'right' : miscc.wxRect_GetRight, | |
289 | } | |
290 | try: | |
291 | func = d[name] | |
292 | except KeyError: | |
293 | raise AttributeError,name | |
294 | return func(self) | |
295 | ||
296 | # and also the __setattr__ | |
297 | def __setattr__(self, name, value): | |
298 | d = { | |
299 | 'x' : miscc.wxRect_x_set, | |
300 | 'y' : miscc.wxRect_y_set, | |
301 | 'width' : miscc.wxRect_width_set, | |
302 | 'height' : miscc.wxRect_height_set, | |
303 | 'top' : miscc.wxRect_SetTop, | |
304 | 'bottom' : miscc.wxRect_SetBottom, | |
305 | 'left' : miscc.wxRect_SetLeft, | |
306 | 'right' : miscc.wxRect_SetRight, | |
307 | } | |
308 | try: | |
309 | func = d[name] | |
310 | except KeyError: | |
311 | self.__dict__[name] = value | |
312 | return | |
313 | func(self, value) | |
314 | ||
8ab979d7 | 315 | class wxRect(wxRectPtr): |
1d99702e RD |
316 | def __init__(self,*_args,**_kwargs): |
317 | self.this = apply(miscc.new_wxRect,_args,_kwargs) | |
8ab979d7 RD |
318 | self.thisown = 1 |
319 | ||
320 | ||
321 | ||
322 | ||
8ab979d7 RD |
323 | class wxIndividualLayoutConstraintPtr : |
324 | def __init__(self,this): | |
325 | self.this = this | |
326 | self.thisown = 0 | |
1d99702e RD |
327 | def Above(self, *_args, **_kwargs): |
328 | val = apply(miscc.wxIndividualLayoutConstraint_Above,(self,) + _args, _kwargs) | |
8ab979d7 | 329 | return val |
1d99702e RD |
330 | def Absolute(self, *_args, **_kwargs): |
331 | val = apply(miscc.wxIndividualLayoutConstraint_Absolute,(self,) + _args, _kwargs) | |
8ab979d7 | 332 | return val |
1d99702e RD |
333 | def AsIs(self, *_args, **_kwargs): |
334 | val = apply(miscc.wxIndividualLayoutConstraint_AsIs,(self,) + _args, _kwargs) | |
8ab979d7 | 335 | return val |
1d99702e RD |
336 | def Below(self, *_args, **_kwargs): |
337 | val = apply(miscc.wxIndividualLayoutConstraint_Below,(self,) + _args, _kwargs) | |
8ab979d7 | 338 | return val |
1d99702e RD |
339 | def Unconstrained(self, *_args, **_kwargs): |
340 | val = apply(miscc.wxIndividualLayoutConstraint_Unconstrained,(self,) + _args, _kwargs) | |
8ab979d7 | 341 | return val |
1d99702e RD |
342 | def LeftOf(self, *_args, **_kwargs): |
343 | val = apply(miscc.wxIndividualLayoutConstraint_LeftOf,(self,) + _args, _kwargs) | |
8ab979d7 | 344 | return val |
1d99702e RD |
345 | def PercentOf(self, *_args, **_kwargs): |
346 | val = apply(miscc.wxIndividualLayoutConstraint_PercentOf,(self,) + _args, _kwargs) | |
8ab979d7 | 347 | return val |
1d99702e RD |
348 | def RightOf(self, *_args, **_kwargs): |
349 | val = apply(miscc.wxIndividualLayoutConstraint_RightOf,(self,) + _args, _kwargs) | |
8ab979d7 | 350 | return val |
1d99702e RD |
351 | def SameAs(self, *_args, **_kwargs): |
352 | val = apply(miscc.wxIndividualLayoutConstraint_SameAs,(self,) + _args, _kwargs) | |
8ab979d7 | 353 | return val |
1d99702e RD |
354 | def Set(self, *_args, **_kwargs): |
355 | val = apply(miscc.wxIndividualLayoutConstraint_Set,(self,) + _args, _kwargs) | |
8ab979d7 RD |
356 | return val |
357 | def __repr__(self): | |
1d99702e | 358 | return "<C wxIndividualLayoutConstraint instance at %s>" % (self.this,) |
8ab979d7 RD |
359 | class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr): |
360 | def __init__(self,this): | |
361 | self.this = this | |
362 | ||
363 | ||
364 | ||
365 | ||
366 | class wxLayoutConstraintsPtr : | |
367 | def __init__(self,this): | |
368 | self.this = this | |
369 | self.thisown = 0 | |
370 | def __setattr__(self,name,value): | |
371 | if name == "bottom" : | |
1d99702e | 372 | miscc.wxLayoutConstraints_bottom_set(self,value.this) |
8ab979d7 RD |
373 | return |
374 | if name == "centreX" : | |
1d99702e | 375 | miscc.wxLayoutConstraints_centreX_set(self,value.this) |
8ab979d7 RD |
376 | return |
377 | if name == "centreY" : | |
1d99702e | 378 | miscc.wxLayoutConstraints_centreY_set(self,value.this) |
8ab979d7 RD |
379 | return |
380 | if name == "height" : | |
1d99702e | 381 | miscc.wxLayoutConstraints_height_set(self,value.this) |
8ab979d7 RD |
382 | return |
383 | if name == "left" : | |
1d99702e | 384 | miscc.wxLayoutConstraints_left_set(self,value.this) |
8ab979d7 RD |
385 | return |
386 | if name == "right" : | |
1d99702e | 387 | miscc.wxLayoutConstraints_right_set(self,value.this) |
8ab979d7 RD |
388 | return |
389 | if name == "top" : | |
1d99702e | 390 | miscc.wxLayoutConstraints_top_set(self,value.this) |
8ab979d7 RD |
391 | return |
392 | if name == "width" : | |
1d99702e | 393 | miscc.wxLayoutConstraints_width_set(self,value.this) |
8ab979d7 RD |
394 | return |
395 | self.__dict__[name] = value | |
396 | def __getattr__(self,name): | |
397 | if name == "bottom" : | |
1d99702e | 398 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self)) |
8ab979d7 | 399 | if name == "centreX" : |
1d99702e | 400 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self)) |
8ab979d7 | 401 | if name == "centreY" : |
1d99702e | 402 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self)) |
8ab979d7 | 403 | if name == "height" : |
1d99702e | 404 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self)) |
8ab979d7 | 405 | if name == "left" : |
1d99702e | 406 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self)) |
8ab979d7 | 407 | if name == "right" : |
1d99702e | 408 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self)) |
8ab979d7 | 409 | if name == "top" : |
1d99702e | 410 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self)) |
8ab979d7 | 411 | if name == "width" : |
1d99702e | 412 | return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self)) |
8ab979d7 RD |
413 | raise AttributeError,name |
414 | def __repr__(self): | |
1d99702e | 415 | return "<C wxLayoutConstraints instance at %s>" % (self.this,) |
8ab979d7 | 416 | class wxLayoutConstraints(wxLayoutConstraintsPtr): |
1d99702e RD |
417 | def __init__(self,*_args,**_kwargs): |
418 | self.this = apply(miscc.new_wxLayoutConstraints,_args,_kwargs) | |
8ab979d7 RD |
419 | self.thisown = 1 |
420 | ||
421 | ||
422 | ||
423 | ||
b639c3c5 RD |
424 | class wxRegionPtr : |
425 | def __init__(self,this): | |
426 | self.this = this | |
427 | self.thisown = 0 | |
1d99702e | 428 | def __del__(self,miscc=miscc): |
b639c3c5 | 429 | if self.thisown == 1 : |
1d99702e RD |
430 | miscc.delete_wxRegion(self) |
431 | def Clear(self, *_args, **_kwargs): | |
432 | val = apply(miscc.wxRegion_Clear,(self,) + _args, _kwargs) | |
b639c3c5 | 433 | return val |
1d99702e RD |
434 | def Contains(self, *_args, **_kwargs): |
435 | val = apply(miscc.wxRegion_Contains,(self,) + _args, _kwargs) | |
b639c3c5 | 436 | return val |
1d99702e RD |
437 | def ContainsPoint(self, *_args, **_kwargs): |
438 | val = apply(miscc.wxRegion_ContainsPoint,(self,) + _args, _kwargs) | |
b639c3c5 | 439 | return val |
1d99702e RD |
440 | def ContainsRect(self, *_args, **_kwargs): |
441 | val = apply(miscc.wxRegion_ContainsRect,(self,) + _args, _kwargs) | |
b639c3c5 | 442 | return val |
eb715945 RD |
443 | def ContainsRectDim(self, *_args, **_kwargs): |
444 | val = apply(miscc.wxRegion_ContainsRectDim,(self,) + _args, _kwargs) | |
445 | return val | |
1d99702e RD |
446 | def GetBox(self, *_args, **_kwargs): |
447 | val = apply(miscc.wxRegion_GetBox,(self,) + _args, _kwargs) | |
448 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
b639c3c5 | 449 | return val |
1d99702e RD |
450 | def Intersect(self, *_args, **_kwargs): |
451 | val = apply(miscc.wxRegion_Intersect,(self,) + _args, _kwargs) | |
b639c3c5 | 452 | return val |
eb715945 RD |
453 | def IntersectRect(self, *_args, **_kwargs): |
454 | val = apply(miscc.wxRegion_IntersectRect,(self,) + _args, _kwargs) | |
455 | return val | |
456 | def IntersectRegion(self, *_args, **_kwargs): | |
457 | val = apply(miscc.wxRegion_IntersectRegion,(self,) + _args, _kwargs) | |
458 | return val | |
1d99702e RD |
459 | def IsEmpty(self, *_args, **_kwargs): |
460 | val = apply(miscc.wxRegion_IsEmpty,(self,) + _args, _kwargs) | |
b639c3c5 | 461 | return val |
eb715945 RD |
462 | def Union(self, *_args, **_kwargs): |
463 | val = apply(miscc.wxRegion_Union,(self,) + _args, _kwargs) | |
464 | return val | |
465 | def UnionRect(self, *_args, **_kwargs): | |
466 | val = apply(miscc.wxRegion_UnionRect,(self,) + _args, _kwargs) | |
467 | return val | |
468 | def UnionRegion(self, *_args, **_kwargs): | |
469 | val = apply(miscc.wxRegion_UnionRegion,(self,) + _args, _kwargs) | |
470 | return val | |
1d99702e RD |
471 | def Subtract(self, *_args, **_kwargs): |
472 | val = apply(miscc.wxRegion_Subtract,(self,) + _args, _kwargs) | |
b639c3c5 | 473 | return val |
eb715945 RD |
474 | def SubtractRect(self, *_args, **_kwargs): |
475 | val = apply(miscc.wxRegion_SubtractRect,(self,) + _args, _kwargs) | |
476 | return val | |
477 | def SubtractRegion(self, *_args, **_kwargs): | |
478 | val = apply(miscc.wxRegion_SubtractRegion,(self,) + _args, _kwargs) | |
b639c3c5 | 479 | return val |
1d99702e RD |
480 | def Xor(self, *_args, **_kwargs): |
481 | val = apply(miscc.wxRegion_Xor,(self,) + _args, _kwargs) | |
b639c3c5 | 482 | return val |
eb715945 RD |
483 | def XorRect(self, *_args, **_kwargs): |
484 | val = apply(miscc.wxRegion_XorRect,(self,) + _args, _kwargs) | |
485 | return val | |
486 | def XorRegion(self, *_args, **_kwargs): | |
487 | val = apply(miscc.wxRegion_XorRegion,(self,) + _args, _kwargs) | |
488 | return val | |
b639c3c5 | 489 | def __repr__(self): |
1d99702e | 490 | return "<C wxRegion instance at %s>" % (self.this,) |
b639c3c5 | 491 | class wxRegion(wxRegionPtr): |
1d99702e RD |
492 | def __init__(self,*_args,**_kwargs): |
493 | self.this = apply(miscc.new_wxRegion,_args,_kwargs) | |
b639c3c5 RD |
494 | self.thisown = 1 |
495 | ||
496 | ||
497 | ||
498 | ||
499 | class wxRegionIteratorPtr : | |
500 | def __init__(self,this): | |
501 | self.this = this | |
502 | self.thisown = 0 | |
1d99702e | 503 | def __del__(self,miscc=miscc): |
b639c3c5 | 504 | if self.thisown == 1 : |
1d99702e RD |
505 | miscc.delete_wxRegionIterator(self) |
506 | def GetX(self, *_args, **_kwargs): | |
507 | val = apply(miscc.wxRegionIterator_GetX,(self,) + _args, _kwargs) | |
b639c3c5 | 508 | return val |
1d99702e RD |
509 | def GetY(self, *_args, **_kwargs): |
510 | val = apply(miscc.wxRegionIterator_GetY,(self,) + _args, _kwargs) | |
b639c3c5 | 511 | return val |
1d99702e RD |
512 | def GetW(self, *_args, **_kwargs): |
513 | val = apply(miscc.wxRegionIterator_GetW,(self,) + _args, _kwargs) | |
b639c3c5 | 514 | return val |
1d99702e RD |
515 | def GetWidth(self, *_args, **_kwargs): |
516 | val = apply(miscc.wxRegionIterator_GetWidth,(self,) + _args, _kwargs) | |
b639c3c5 | 517 | return val |
1d99702e RD |
518 | def GetH(self, *_args, **_kwargs): |
519 | val = apply(miscc.wxRegionIterator_GetH,(self,) + _args, _kwargs) | |
b639c3c5 | 520 | return val |
1d99702e RD |
521 | def GetHeight(self, *_args, **_kwargs): |
522 | val = apply(miscc.wxRegionIterator_GetHeight,(self,) + _args, _kwargs) | |
b639c3c5 | 523 | return val |
1d99702e RD |
524 | def GetRect(self, *_args, **_kwargs): |
525 | val = apply(miscc.wxRegionIterator_GetRect,(self,) + _args, _kwargs) | |
526 | if val: val = wxRectPtr(val) ; val.thisown = 1 | |
b639c3c5 | 527 | return val |
1d99702e RD |
528 | def HaveRects(self, *_args, **_kwargs): |
529 | val = apply(miscc.wxRegionIterator_HaveRects,(self,) + _args, _kwargs) | |
b639c3c5 | 530 | return val |
1d99702e RD |
531 | def Reset(self, *_args, **_kwargs): |
532 | val = apply(miscc.wxRegionIterator_Reset,(self,) + _args, _kwargs) | |
b639c3c5 | 533 | return val |
1d99702e RD |
534 | def Next(self, *_args, **_kwargs): |
535 | val = apply(miscc.wxRegionIterator_Next,(self,) + _args, _kwargs) | |
b639c3c5 RD |
536 | return val |
537 | def __repr__(self): | |
1d99702e | 538 | return "<C wxRegionIterator instance at %s>" % (self.this,) |
b639c3c5 | 539 | class wxRegionIterator(wxRegionIteratorPtr): |
1d99702e RD |
540 | def __init__(self,*_args,**_kwargs): |
541 | self.this = apply(miscc.new_wxRegionIterator,_args,_kwargs) | |
b639c3c5 RD |
542 | self.thisown = 1 |
543 | ||
544 | ||
545 | ||
546 | ||
8ab979d7 RD |
547 | class wxAcceleratorEntryPtr : |
548 | def __init__(self,this): | |
549 | self.this = this | |
550 | self.thisown = 0 | |
2f90df85 RD |
551 | def __del__(self,miscc=miscc): |
552 | if self.thisown == 1 : | |
553 | miscc.delete_wxAcceleratorEntry(self) | |
1d99702e RD |
554 | def Set(self, *_args, **_kwargs): |
555 | val = apply(miscc.wxAcceleratorEntry_Set,(self,) + _args, _kwargs) | |
8ab979d7 | 556 | return val |
1d99702e RD |
557 | def GetFlags(self, *_args, **_kwargs): |
558 | val = apply(miscc.wxAcceleratorEntry_GetFlags,(self,) + _args, _kwargs) | |
8ab979d7 | 559 | return val |
1d99702e RD |
560 | def GetKeyCode(self, *_args, **_kwargs): |
561 | val = apply(miscc.wxAcceleratorEntry_GetKeyCode,(self,) + _args, _kwargs) | |
8ab979d7 | 562 | return val |
1d99702e RD |
563 | def GetCommand(self, *_args, **_kwargs): |
564 | val = apply(miscc.wxAcceleratorEntry_GetCommand,(self,) + _args, _kwargs) | |
8ab979d7 RD |
565 | return val |
566 | def __repr__(self): | |
1d99702e | 567 | return "<C wxAcceleratorEntry instance at %s>" % (self.this,) |
8ab979d7 | 568 | class wxAcceleratorEntry(wxAcceleratorEntryPtr): |
1d99702e RD |
569 | def __init__(self,*_args,**_kwargs): |
570 | self.this = apply(miscc.new_wxAcceleratorEntry,_args,_kwargs) | |
8ab979d7 RD |
571 | self.thisown = 1 |
572 | ||
573 | ||
574 | ||
575 | ||
576 | class wxAcceleratorTablePtr : | |
577 | def __init__(self,this): | |
578 | self.this = this | |
579 | self.thisown = 0 | |
2f90df85 RD |
580 | def __del__(self,miscc=miscc): |
581 | if self.thisown == 1 : | |
582 | miscc.delete_wxAcceleratorTable(self) | |
8ab979d7 | 583 | def __repr__(self): |
1d99702e | 584 | return "<C wxAcceleratorTable instance at %s>" % (self.this,) |
8ab979d7 | 585 | class wxAcceleratorTable(wxAcceleratorTablePtr): |
1d99702e RD |
586 | def __init__(self,*_args,**_kwargs): |
587 | self.this = apply(miscc.new_wxAcceleratorTable,_args,_kwargs) | |
8ab979d7 RD |
588 | self.thisown = 1 |
589 | ||
590 | ||
591 | ||
592 | ||
2abc0a0f RD |
593 | class wxBusyInfoPtr : |
594 | def __init__(self,this): | |
595 | self.this = this | |
596 | self.thisown = 0 | |
597 | def __del__(self,miscc=miscc): | |
598 | if self.thisown == 1 : | |
599 | miscc.delete_wxBusyInfo(self) | |
600 | def __repr__(self): | |
601 | return "<C wxBusyInfo instance at %s>" % (self.this,) | |
602 | class wxBusyInfo(wxBusyInfoPtr): | |
603 | def __init__(self,*_args,**_kwargs): | |
604 | self.this = apply(miscc.new_wxBusyInfo,_args,_kwargs) | |
605 | self.thisown = 1 | |
606 | ||
607 | ||
608 | ||
609 | ||
8ab979d7 RD |
610 | |
611 | ||
612 | #-------------- FUNCTION WRAPPERS ------------------ | |
613 | ||
eb715945 RD |
614 | wxIntersectRect = miscc.wxIntersectRect |
615 | ||
cf694132 RD |
616 | wxNewId = miscc.wxNewId |
617 | ||
618 | wxRegisterId = miscc.wxRegisterId | |
619 | ||
8ab979d7 RD |
620 | NewId = miscc.NewId |
621 | ||
622 | RegisterId = miscc.RegisterId | |
623 | ||
8ab979d7 RD |
624 | wxBell = miscc.wxBell |
625 | ||
626 | wxDisplaySize = miscc.wxDisplaySize | |
627 | ||
628 | wxEndBusyCursor = miscc.wxEndBusyCursor | |
629 | ||
8ab979d7 RD |
630 | wxGetElapsedTime = miscc.wxGetElapsedTime |
631 | ||
632 | wxGetFreeMemory = miscc.wxGetFreeMemory | |
633 | ||
634 | wxGetMousePosition = miscc.wxGetMousePosition | |
635 | ||
636 | wxIsBusy = miscc.wxIsBusy | |
637 | ||
638 | wxNow = miscc.wxNow | |
639 | ||
640 | wxShell = miscc.wxShell | |
641 | ||
642 | wxStartTimer = miscc.wxStartTimer | |
643 | ||
644 | wxGetOsVersion = miscc.wxGetOsVersion | |
645 | ||
c368d904 RD |
646 | wxGetOsDescription = miscc.wxGetOsDescription |
647 | ||
bb0054cd RD |
648 | wxSleep = miscc.wxSleep |
649 | ||
c368d904 | 650 | wxUsleep = miscc.wxUsleep |
8ab979d7 | 651 | |
c368d904 | 652 | wxYield = miscc.wxYield |
cf694132 | 653 | |
bb0054cd RD |
654 | wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows |
655 | ||
8ab979d7 RD |
656 | wxGetResource = miscc.wxGetResource |
657 | ||
694759cf RD |
658 | wxStripMenuCodes = miscc.wxStripMenuCodes |
659 | ||
c368d904 RD |
660 | wxGetEmailAddress = miscc.wxGetEmailAddress |
661 | ||
662 | wxGetHostName = miscc.wxGetHostName | |
663 | ||
664 | wxGetFullHostName = miscc.wxGetFullHostName | |
665 | ||
666 | wxGetUserId = miscc.wxGetUserId | |
667 | ||
668 | wxGetUserName = miscc.wxGetUserName | |
669 | ||
670 | wxGetHomeDir = miscc.wxGetHomeDir | |
671 | ||
672 | def wxGetAccelFromString(*_args, **_kwargs): | |
673 | val = apply(miscc.wxGetAccelFromString,_args,_kwargs) | |
674 | if val: val = wxAcceleratorEntryPtr(val) | |
675 | return val | |
676 | ||
8ab979d7 RD |
677 | |
678 | ||
679 | #-------------- VARIABLE WRAPPERS ------------------ | |
680 | ||
681 | wxLeft = miscc.wxLeft | |
682 | wxTop = miscc.wxTop | |
683 | wxRight = miscc.wxRight | |
684 | wxBottom = miscc.wxBottom | |
685 | wxWidth = miscc.wxWidth | |
686 | wxHeight = miscc.wxHeight | |
687 | wxCentre = miscc.wxCentre | |
688 | wxCenter = miscc.wxCenter | |
689 | wxCentreX = miscc.wxCentreX | |
690 | wxCentreY = miscc.wxCentreY | |
691 | wxUnconstrained = miscc.wxUnconstrained | |
692 | wxAsIs = miscc.wxAsIs | |
693 | wxPercentOf = miscc.wxPercentOf | |
694 | wxAbove = miscc.wxAbove | |
695 | wxBelow = miscc.wxBelow | |
696 | wxLeftOf = miscc.wxLeftOf | |
697 | wxRightOf = miscc.wxRightOf | |
698 | wxSameAs = miscc.wxSameAs | |
699 | wxAbsolute = miscc.wxAbsolute | |
b639c3c5 RD |
700 | wxOutRegion = miscc.wxOutRegion |
701 | wxPartRegion = miscc.wxPartRegion | |
702 | wxInRegion = miscc.wxInRegion | |
f6bcfd97 BP |
703 | cvar = miscc.cvar |
704 | wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable) |