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