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