]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/misc.py
fix text scrolling in GTK2 (patch 703988)
[wxWidgets.git] / wxPython / src / msw / misc.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import miscc
9416aa89
RD
3class wxObjectPtr :
4 def __init__(self,this):
5 self.this = this
6 self.thisown = 0
7 def GetClassName(self, *_args, **_kwargs):
5a2a9da2 8 val = miscc.wxObject_GetClassName(self, *_args, **_kwargs)
9416aa89
RD
9 return val
10 def Destroy(self, *_args, **_kwargs):
5a2a9da2 11 val = miscc.wxObject_Destroy(self, *_args, **_kwargs)
9416aa89
RD
12 return val
13 def __repr__(self):
5a2a9da2 14 return "<%s.%s instance; proxy of C++ wxObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9416aa89
RD
15class wxObject(wxObjectPtr):
16 def __init__(self,this):
17 self.this = this
18
19
20
21
8ab979d7
RD
22class wxSizePtr :
23 def __init__(self,this):
24 self.this = this
25 self.thisown = 0
7e50db3f
RD
26 def __del__(self, delfunc=miscc.delete_wxSize):
27 if self.thisown == 1:
28 try:
29 delfunc(self)
30 except:
31 pass
1d99702e 32 def Set(self, *_args, **_kwargs):
5a2a9da2 33 val = miscc.wxSize_Set(self, *_args, **_kwargs)
8ab979d7 34 return val
1d99702e 35 def GetX(self, *_args, **_kwargs):
5a2a9da2 36 val = miscc.wxSize_GetX(self, *_args, **_kwargs)
af309447 37 return val
1d99702e 38 def GetY(self, *_args, **_kwargs):
5a2a9da2 39 val = miscc.wxSize_GetY(self, *_args, **_kwargs)
af309447 40 return val
1d99702e 41 def GetWidth(self, *_args, **_kwargs):
5a2a9da2 42 val = miscc.wxSize_GetWidth(self, *_args, **_kwargs)
8ab979d7 43 return val
1d99702e 44 def GetHeight(self, *_args, **_kwargs):
5a2a9da2 45 val = miscc.wxSize_GetHeight(self, *_args, **_kwargs)
8ab979d7 46 return val
1d99702e 47 def SetWidth(self, *_args, **_kwargs):
5a2a9da2 48 val = miscc.wxSize_SetWidth(self, *_args, **_kwargs)
bb0054cd 49 return val
1d99702e 50 def SetHeight(self, *_args, **_kwargs):
5a2a9da2
RD
51 val = miscc.wxSize_SetHeight(self, *_args, **_kwargs)
52 return val
53 def IncTo(self, *_args, **_kwargs):
54 val = miscc.wxSize_IncTo(self, *_args, **_kwargs)
55 return val
56 def DecTo(self, *_args, **_kwargs):
57 val = miscc.wxSize_DecTo(self, *_args, **_kwargs)
bb0054cd 58 return val
1d99702e 59 def asTuple(self, *_args, **_kwargs):
5a2a9da2 60 val = miscc.wxSize_asTuple(self, *_args, **_kwargs)
8ab979d7 61 return val
7e50db3f 62 def __eq__(self, *_args, **_kwargs):
5a2a9da2 63 val = miscc.wxSize___eq__(self, *_args, **_kwargs)
7e50db3f
RD
64 return val
65 def __ne__(self, *_args, **_kwargs):
5a2a9da2 66 val = miscc.wxSize___ne__(self, *_args, **_kwargs)
419c299a 67 return val
8ab979d7 68 def __setattr__(self,name,value):
af309447 69 if name == "x" :
1d99702e 70 miscc.wxSize_x_set(self,value)
af309447
RD
71 return
72 if name == "y" :
1d99702e 73 miscc.wxSize_y_set(self,value)
af309447 74 return
8ab979d7 75 if name == "width" :
1d99702e 76 miscc.wxSize_width_set(self,value)
8ab979d7
RD
77 return
78 if name == "height" :
1d99702e 79 miscc.wxSize_height_set(self,value)
8ab979d7
RD
80 return
81 self.__dict__[name] = value
82 def __getattr__(self,name):
af309447 83 if name == "x" :
1d99702e 84 return miscc.wxSize_x_get(self)
af309447 85 if name == "y" :
1d99702e 86 return miscc.wxSize_y_get(self)
8ab979d7 87 if name == "width" :
1d99702e 88 return miscc.wxSize_width_get(self)
8ab979d7 89 if name == "height" :
1d99702e 90 return miscc.wxSize_height_get(self)
8ab979d7
RD
91 raise AttributeError,name
92 def __repr__(self):
5a2a9da2 93 return "<%s.%s instance; proxy of C++ wxSize instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
211a46cf
RD
94
95 def __str__(self): return str(self.asTuple())
7e50db3f 96 def __repr__(self): return 'wxSize'+str(self.asTuple())
211a46cf
RD
97 def __len__(self): return len(self.asTuple())
98 def __getitem__(self, index): return self.asTuple()[index]
99 def __setitem__(self, index, val):
100 if index == 0: self.width = val
101 elif index == 1: self.height = val
102 else: raise IndexError
7e50db3f
RD
103 def __nonzero__(self): return self.asTuple() != (0,0)
104 def __getinitargs__(self): return ()
105 def __getstate__(self): return self.asTuple()
106 def __setstate__(self, state): self.Set(*state)
211a46cf 107
8ab979d7 108class wxSize(wxSizePtr):
1d99702e 109 def __init__(self,*_args,**_kwargs):
5a2a9da2 110 self.this = miscc.new_wxSize(*_args,**_kwargs)
8ab979d7
RD
111 self.thisown = 1
112
113
114
115
116class wxRealPointPtr :
117 def __init__(self,this):
118 self.this = this
119 self.thisown = 0
7e50db3f
RD
120 def __del__(self, delfunc=miscc.delete_wxRealPoint):
121 if self.thisown == 1:
122 try:
123 delfunc(self)
124 except:
125 pass
efc5f224 126 def Set(self, *_args, **_kwargs):
5a2a9da2 127 val = miscc.wxRealPoint_Set(self, *_args, **_kwargs)
efc5f224
RD
128 return val
129 def asTuple(self, *_args, **_kwargs):
5a2a9da2 130 val = miscc.wxRealPoint_asTuple(self, *_args, **_kwargs)
efc5f224 131 return val
c368d904 132 def __add__(self, *_args, **_kwargs):
5a2a9da2 133 val = miscc.wxRealPoint___add__(self, *_args, **_kwargs)
c368d904
RD
134 if val: val = wxRealPointPtr(val) ; val.thisown = 1
135 return val
136 def __sub__(self, *_args, **_kwargs):
5a2a9da2 137 val = miscc.wxRealPoint___sub__(self, *_args, **_kwargs)
c368d904
RD
138 if val: val = wxRealPointPtr(val) ; val.thisown = 1
139 return val
7e50db3f 140 def __eq__(self, *_args, **_kwargs):
5a2a9da2 141 val = miscc.wxRealPoint___eq__(self, *_args, **_kwargs)
7e50db3f
RD
142 return val
143 def __ne__(self, *_args, **_kwargs):
5a2a9da2 144 val = miscc.wxRealPoint___ne__(self, *_args, **_kwargs)
c368d904 145 return val
8ab979d7
RD
146 def __setattr__(self,name,value):
147 if name == "x" :
1d99702e 148 miscc.wxRealPoint_x_set(self,value)
8ab979d7
RD
149 return
150 if name == "y" :
1d99702e 151 miscc.wxRealPoint_y_set(self,value)
8ab979d7
RD
152 return
153 self.__dict__[name] = value
154 def __getattr__(self,name):
155 if name == "x" :
1d99702e 156 return miscc.wxRealPoint_x_get(self)
8ab979d7 157 if name == "y" :
1d99702e 158 return miscc.wxRealPoint_y_get(self)
8ab979d7
RD
159 raise AttributeError,name
160 def __repr__(self):
5a2a9da2 161 return "<%s.%s instance; proxy of C++ wxRealPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
211a46cf
RD
162
163 def __str__(self): return str(self.asTuple())
7e50db3f 164 def __repr__(self): return 'wxRealPoint'+str(self.asTuple())
211a46cf
RD
165 def __len__(self): return len(self.asTuple())
166 def __getitem__(self, index): return self.asTuple()[index]
167 def __setitem__(self, index, val):
168 if index == 0: self.width = val
169 elif index == 1: self.height = val
170 else: raise IndexError
7e50db3f
RD
171 def __nonzero__(self): return self.asTuple() != (0.0, 0.0)
172 def __getinitargs__(self): return ()
173 def __getstate__(self): return self.asTuple()
174 def __setstate__(self, state): self.Set(*state)
211a46cf 175
8ab979d7 176class wxRealPoint(wxRealPointPtr):
1d99702e 177 def __init__(self,*_args,**_kwargs):
5a2a9da2 178 self.this = miscc.new_wxRealPoint(*_args,**_kwargs)
8ab979d7
RD
179 self.thisown = 1
180
181
182
183
184class wxPointPtr :
185 def __init__(self,this):
186 self.this = this
187 self.thisown = 0
7e50db3f
RD
188 def __del__(self, delfunc=miscc.delete_wxPoint):
189 if self.thisown == 1:
190 try:
191 delfunc(self)
192 except:
193 pass
1d99702e 194 def Set(self, *_args, **_kwargs):
5a2a9da2 195 val = miscc.wxPoint_Set(self, *_args, **_kwargs)
8ab979d7 196 return val
1d99702e 197 def asTuple(self, *_args, **_kwargs):
5a2a9da2 198 val = miscc.wxPoint_asTuple(self, *_args, **_kwargs)
8ab979d7 199 return val
c368d904 200 def __add__(self, *_args, **_kwargs):
5a2a9da2 201 val = miscc.wxPoint___add__(self, *_args, **_kwargs)
c368d904
RD
202 if val: val = wxPointPtr(val) ; val.thisown = 1
203 return val
204 def __sub__(self, *_args, **_kwargs):
5a2a9da2 205 val = miscc.wxPoint___sub__(self, *_args, **_kwargs)
c368d904
RD
206 if val: val = wxPointPtr(val) ; val.thisown = 1
207 return val
7e50db3f 208 def __eq__(self, *_args, **_kwargs):
5a2a9da2 209 val = miscc.wxPoint___eq__(self, *_args, **_kwargs)
7e50db3f
RD
210 return val
211 def __ne__(self, *_args, **_kwargs):
5a2a9da2 212 val = miscc.wxPoint___ne__(self, *_args, **_kwargs)
c368d904 213 return val
8ab979d7
RD
214 def __setattr__(self,name,value):
215 if name == "x" :
1d99702e 216 miscc.wxPoint_x_set(self,value)
8ab979d7
RD
217 return
218 if name == "y" :
1d99702e 219 miscc.wxPoint_y_set(self,value)
8ab979d7
RD
220 return
221 self.__dict__[name] = value
222 def __getattr__(self,name):
223 if name == "x" :
1d99702e 224 return miscc.wxPoint_x_get(self)
8ab979d7 225 if name == "y" :
1d99702e 226 return miscc.wxPoint_y_get(self)
8ab979d7
RD
227 raise AttributeError,name
228 def __repr__(self):
5a2a9da2 229 return "<%s.%s instance; proxy of C++ wxPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
211a46cf
RD
230
231 def __str__(self): return str(self.asTuple())
7e50db3f 232 def __repr__(self): return 'wxPoint'+str(self.asTuple())
211a46cf
RD
233 def __len__(self): return len(self.asTuple())
234 def __getitem__(self, index): return self.asTuple()[index]
235 def __setitem__(self, index, val):
236 if index == 0: self.x = val
237 elif index == 1: self.y = val
238 else: raise IndexError
7e50db3f
RD
239 def __nonzero__(self): return self.asTuple() != (0,0)
240 def __getinitargs__(self): return ()
241 def __getstate__(self): return self.asTuple()
242 def __setstate__(self, state): self.Set(*state)
211a46cf 243
8ab979d7 244class wxPoint(wxPointPtr):
1d99702e 245 def __init__(self,*_args,**_kwargs):
5a2a9da2 246 self.this = miscc.new_wxPoint(*_args,**_kwargs)
8ab979d7
RD
247 self.thisown = 1
248
249
250
251
252class wxRectPtr :
253 def __init__(self,this):
254 self.this = this
255 self.thisown = 0
7e50db3f
RD
256 def __del__(self, delfunc=miscc.delete_wxRect):
257 if self.thisown == 1:
258 try:
259 delfunc(self)
260 except:
261 pass
1d99702e 262 def GetX(self, *_args, **_kwargs):
5a2a9da2 263 val = miscc.wxRect_GetX(self, *_args, **_kwargs)
8ab979d7 264 return val
1d99702e 265 def SetX(self, *_args, **_kwargs):
5a2a9da2 266 val = miscc.wxRect_SetX(self, *_args, **_kwargs)
8ab979d7 267 return val
1d99702e 268 def GetY(self, *_args, **_kwargs):
5a2a9da2 269 val = miscc.wxRect_GetY(self, *_args, **_kwargs)
8ab979d7 270 return val
1d99702e 271 def SetY(self, *_args, **_kwargs):
5a2a9da2 272 val = miscc.wxRect_SetY(self, *_args, **_kwargs)
8ab979d7 273 return val
1d99702e 274 def GetWidth(self, *_args, **_kwargs):
5a2a9da2 275 val = miscc.wxRect_GetWidth(self, *_args, **_kwargs)
8ab979d7 276 return val
1d99702e 277 def SetWidth(self, *_args, **_kwargs):
5a2a9da2 278 val = miscc.wxRect_SetWidth(self, *_args, **_kwargs)
8ab979d7 279 return val
1d99702e 280 def GetHeight(self, *_args, **_kwargs):
5a2a9da2 281 val = miscc.wxRect_GetHeight(self, *_args, **_kwargs)
8ab979d7 282 return val
1d99702e 283 def SetHeight(self, *_args, **_kwargs):
5a2a9da2 284 val = miscc.wxRect_SetHeight(self, *_args, **_kwargs)
8ab979d7 285 return val
1d99702e 286 def GetPosition(self, *_args, **_kwargs):
5a2a9da2 287 val = miscc.wxRect_GetPosition(self, *_args, **_kwargs)
1d99702e 288 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 289 return val
1d99702e 290 def GetSize(self, *_args, **_kwargs):
5a2a9da2 291 val = miscc.wxRect_GetSize(self, *_args, **_kwargs)
1d99702e 292 if val: val = wxSizePtr(val) ; val.thisown = 1
8ab979d7 293 return val
4c7d2b26 294 def SetPosition(self, *_args, **_kwargs):
5a2a9da2 295 val = miscc.wxRect_SetPosition(self, *_args, **_kwargs)
4c7d2b26
RD
296 return val
297 def SetSize(self, *_args, **_kwargs):
5a2a9da2 298 val = miscc.wxRect_SetSize(self, *_args, **_kwargs)
4c7d2b26 299 return val
1d99702e 300 def GetLeft(self, *_args, **_kwargs):
5a2a9da2 301 val = miscc.wxRect_GetLeft(self, *_args, **_kwargs)
8ab979d7 302 return val
1d99702e 303 def GetTop(self, *_args, **_kwargs):
5a2a9da2 304 val = miscc.wxRect_GetTop(self, *_args, **_kwargs)
8ab979d7 305 return val
1d99702e 306 def GetBottom(self, *_args, **_kwargs):
5a2a9da2 307 val = miscc.wxRect_GetBottom(self, *_args, **_kwargs)
8ab979d7 308 return val
1d99702e 309 def GetRight(self, *_args, **_kwargs):
5a2a9da2 310 val = miscc.wxRect_GetRight(self, *_args, **_kwargs)
8ab979d7 311 return val
eb715945 312 def SetLeft(self, *_args, **_kwargs):
5a2a9da2 313 val = miscc.wxRect_SetLeft(self, *_args, **_kwargs)
eb715945
RD
314 return val
315 def SetRight(self, *_args, **_kwargs):
5a2a9da2 316 val = miscc.wxRect_SetRight(self, *_args, **_kwargs)
eb715945
RD
317 return val
318 def SetTop(self, *_args, **_kwargs):
5a2a9da2 319 val = miscc.wxRect_SetTop(self, *_args, **_kwargs)
eb715945
RD
320 return val
321 def SetBottom(self, *_args, **_kwargs):
5a2a9da2 322 val = miscc.wxRect_SetBottom(self, *_args, **_kwargs)
eb715945 323 return val
7e50db3f 324 def Deflate(self, *_args, **_kwargs):
5a2a9da2 325 val = miscc.wxRect_Deflate(self, *_args, **_kwargs)
7e50db3f 326 return val
f6bcfd97 327 def Inflate(self, *_args, **_kwargs):
5a2a9da2 328 val = miscc.wxRect_Inflate(self, *_args, **_kwargs)
f6bcfd97 329 return val
7e50db3f 330 def InsideXY(self, *_args, **_kwargs):
5a2a9da2 331 val = miscc.wxRect_InsideXY(self, *_args, **_kwargs)
7e50db3f 332 return val
f6bcfd97 333 def Inside(self, *_args, **_kwargs):
5a2a9da2 334 val = miscc.wxRect_Inside(self, *_args, **_kwargs)
f6bcfd97 335 return val
7e50db3f 336 def Intersects(self, *_args, **_kwargs):
5a2a9da2 337 val = miscc.wxRect_Intersects(self, *_args, **_kwargs)
7e50db3f
RD
338 return val
339 def OffsetXY(self, *_args, **_kwargs):
5a2a9da2 340 val = miscc.wxRect_OffsetXY(self, *_args, **_kwargs)
7e50db3f
RD
341 return val
342 def Offset(self, *_args, **_kwargs):
5a2a9da2 343 val = miscc.wxRect_Offset(self, *_args, **_kwargs)
7e50db3f
RD
344 return val
345 def Set(self, *_args, **_kwargs):
5a2a9da2 346 val = miscc.wxRect_Set(self, *_args, **_kwargs)
7e50db3f 347 return val
1d99702e 348 def asTuple(self, *_args, **_kwargs):
5a2a9da2 349 val = miscc.wxRect_asTuple(self, *_args, **_kwargs)
af309447 350 return val
f6bcfd97 351 def __add__(self, *_args, **_kwargs):
5a2a9da2 352 val = miscc.wxRect___add__(self, *_args, **_kwargs)
f6bcfd97
BP
353 if val: val = wxRectPtr(val) ; val.thisown = 1
354 return val
7e50db3f 355 def __eq__(self, *_args, **_kwargs):
5a2a9da2 356 val = miscc.wxRect___eq__(self, *_args, **_kwargs)
7e50db3f
RD
357 return val
358 def __ne__(self, *_args, **_kwargs):
5a2a9da2 359 val = miscc.wxRect___ne__(self, *_args, **_kwargs)
f6bcfd97 360 return val
8ab979d7
RD
361 def __setattr__(self,name,value):
362 if name == "x" :
1d99702e 363 miscc.wxRect_x_set(self,value)
8ab979d7
RD
364 return
365 if name == "y" :
1d99702e 366 miscc.wxRect_y_set(self,value)
8ab979d7
RD
367 return
368 if name == "width" :
1d99702e 369 miscc.wxRect_width_set(self,value)
8ab979d7
RD
370 return
371 if name == "height" :
1d99702e 372 miscc.wxRect_height_set(self,value)
8ab979d7
RD
373 return
374 self.__dict__[name] = value
375 def __getattr__(self,name):
376 if name == "x" :
1d99702e 377 return miscc.wxRect_x_get(self)
8ab979d7 378 if name == "y" :
1d99702e 379 return miscc.wxRect_y_get(self)
8ab979d7 380 if name == "width" :
1d99702e 381 return miscc.wxRect_width_get(self)
8ab979d7 382 if name == "height" :
1d99702e 383 return miscc.wxRect_height_get(self)
8ab979d7
RD
384 raise AttributeError,name
385 def __repr__(self):
5a2a9da2 386 return "<%s.%s instance; proxy of C++ wxRect instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9b3d3bc4 387
211a46cf 388 def __str__(self): return str(self.asTuple())
7e50db3f 389 def __repr__(self): return 'wxRect'+str(self.asTuple())
211a46cf
RD
390 def __len__(self): return len(self.asTuple())
391 def __getitem__(self, index): return self.asTuple()[index]
392 def __setitem__(self, index, val):
393 if index == 0: self.x = val
394 elif index == 1: self.y = val
395 elif index == 2: self.width = val
396 elif index == 3: self.height = val
397 else: raise IndexError
7e50db3f
RD
398 def __nonzero__(self): return self.asTuple() != (0,0,0,0)
399 def __getinitargs__(self): return ()
400 def __getstate__(self): return self.asTuple()
401 def __setstate__(self, state): self.Set(*state)
211a46cf 402
9b3d3bc4
RD
403 # override the __getattr__ made by SWIG
404 def __getattr__(self, name):
405 d = {
406 'x' : miscc.wxRect_x_get,
407 'y' : miscc.wxRect_y_get,
408 'width' : miscc.wxRect_width_get,
409 'height' : miscc.wxRect_height_get,
410 'top' : miscc.wxRect_GetTop,
411 'bottom' : miscc.wxRect_GetBottom,
412 'left' : miscc.wxRect_GetLeft,
413 'right' : miscc.wxRect_GetRight,
414 }
415 try:
416 func = d[name]
417 except KeyError:
418 raise AttributeError,name
419 return func(self)
420
421 # and also the __setattr__
422 def __setattr__(self, name, value):
423 d = {
424 'x' : miscc.wxRect_x_set,
425 'y' : miscc.wxRect_y_set,
426 'width' : miscc.wxRect_width_set,
427 'height' : miscc.wxRect_height_set,
428 'top' : miscc.wxRect_SetTop,
429 'bottom' : miscc.wxRect_SetBottom,
430 'left' : miscc.wxRect_SetLeft,
431 'right' : miscc.wxRect_SetRight,
432 }
433 try:
434 func = d[name]
435 except KeyError:
436 self.__dict__[name] = value
437 return
438 func(self, value)
439
8ab979d7 440class wxRect(wxRectPtr):
1d99702e 441 def __init__(self,*_args,**_kwargs):
5a2a9da2 442 self.this = miscc.new_wxRect(*_args,**_kwargs)
8ab979d7
RD
443 self.thisown = 1
444
445
446
447
7e50db3f
RD
448class wxPoint2DDoublePtr :
449 def __init__(self,this):
450 self.this = this
451 self.thisown = 0
452 def GetFloor(self, *_args, **_kwargs):
5a2a9da2 453 val = miscc.wxPoint2DDouble_GetFloor(self, *_args, **_kwargs)
7e50db3f
RD
454 return val
455 def GetRounded(self, *_args, **_kwargs):
5a2a9da2 456 val = miscc.wxPoint2DDouble_GetRounded(self, *_args, **_kwargs)
7e50db3f
RD
457 return val
458 def GetVectorLength(self, *_args, **_kwargs):
5a2a9da2 459 val = miscc.wxPoint2DDouble_GetVectorLength(self, *_args, **_kwargs)
7e50db3f
RD
460 return val
461 def GetVectorAngle(self, *_args, **_kwargs):
5a2a9da2 462 val = miscc.wxPoint2DDouble_GetVectorAngle(self, *_args, **_kwargs)
7e50db3f
RD
463 return val
464 def SetVectorLength(self, *_args, **_kwargs):
5a2a9da2 465 val = miscc.wxPoint2DDouble_SetVectorLength(self, *_args, **_kwargs)
7e50db3f
RD
466 return val
467 def SetVectorAngle(self, *_args, **_kwargs):
5a2a9da2 468 val = miscc.wxPoint2DDouble_SetVectorAngle(self, *_args, **_kwargs)
7e50db3f
RD
469 return val
470 def GetDistance(self, *_args, **_kwargs):
5a2a9da2 471 val = miscc.wxPoint2DDouble_GetDistance(self, *_args, **_kwargs)
7e50db3f
RD
472 return val
473 def GetDistanceSquare(self, *_args, **_kwargs):
5a2a9da2 474 val = miscc.wxPoint2DDouble_GetDistanceSquare(self, *_args, **_kwargs)
7e50db3f
RD
475 return val
476 def GetDotProduct(self, *_args, **_kwargs):
5a2a9da2 477 val = miscc.wxPoint2DDouble_GetDotProduct(self, *_args, **_kwargs)
7e50db3f
RD
478 return val
479 def GetCrossProduct(self, *_args, **_kwargs):
5a2a9da2 480 val = miscc.wxPoint2DDouble_GetCrossProduct(self, *_args, **_kwargs)
7e50db3f
RD
481 return val
482 def Set(self, *_args, **_kwargs):
5a2a9da2 483 val = miscc.wxPoint2DDouble_Set(self, *_args, **_kwargs)
7e50db3f
RD
484 return val
485 def __neg__(self, *_args, **_kwargs):
5a2a9da2 486 val = miscc.wxPoint2DDouble___neg__(self, *_args, **_kwargs)
7e50db3f
RD
487 if val: val = wxPoint2DDoublePtr(val) ; val.thisown = 1
488 return val
489 def __iadd__(self, *_args, **_kwargs):
5a2a9da2 490 val = miscc.wxPoint2DDouble___iadd__(self, *_args, **_kwargs)
7e50db3f
RD
491 if val: val = wxPoint2DDoublePtr(val)
492 return val
493 def __isub__(self, *_args, **_kwargs):
5a2a9da2 494 val = miscc.wxPoint2DDouble___isub__(self, *_args, **_kwargs)
7e50db3f
RD
495 if val: val = wxPoint2DDoublePtr(val)
496 return val
497 def __imul__(self, *_args, **_kwargs):
5a2a9da2 498 val = miscc.wxPoint2DDouble___imul__(self, *_args, **_kwargs)
7e50db3f
RD
499 if val: val = wxPoint2DDoublePtr(val)
500 return val
501 def __idiv__(self, *_args, **_kwargs):
5a2a9da2 502 val = miscc.wxPoint2DDouble___idiv__(self, *_args, **_kwargs)
7e50db3f
RD
503 if val: val = wxPoint2DDoublePtr(val)
504 return val
505 def __eq__(self, *_args, **_kwargs):
5a2a9da2 506 val = miscc.wxPoint2DDouble___eq__(self, *_args, **_kwargs)
7e50db3f
RD
507 return val
508 def __ne__(self, *_args, **_kwargs):
5a2a9da2 509 val = miscc.wxPoint2DDouble___ne__(self, *_args, **_kwargs)
7e50db3f
RD
510 return val
511 def asTuple(self, *_args, **_kwargs):
5a2a9da2 512 val = miscc.wxPoint2DDouble_asTuple(self, *_args, **_kwargs)
7e50db3f
RD
513 return val
514 def __setattr__(self,name,value):
515 if name == "m_x" :
516 miscc.wxPoint2DDouble_m_x_set(self,value)
517 return
518 if name == "m_y" :
519 miscc.wxPoint2DDouble_m_y_set(self,value)
520 return
521 if name == "x" :
522 miscc.wxPoint2DDouble_x_set(self,value)
523 return
524 if name == "y" :
525 miscc.wxPoint2DDouble_y_set(self,value)
526 return
527 self.__dict__[name] = value
528 def __getattr__(self,name):
529 if name == "m_x" :
530 return miscc.wxPoint2DDouble_m_x_get(self)
531 if name == "m_y" :
532 return miscc.wxPoint2DDouble_m_y_get(self)
533 if name == "x" :
534 return miscc.wxPoint2DDouble_x_get(self)
535 if name == "y" :
536 return miscc.wxPoint2DDouble_y_get(self)
537 raise AttributeError,name
538 def __repr__(self):
5a2a9da2 539 return "<%s.%s instance; proxy of C++ wxPoint2DDouble instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
7e50db3f
RD
540
541 def SetPolarCoordinates(self, angle, length):
542 self.SetVectorLength(length)
543 self.SetVectorAngle(angle)
544 def Normalize(self):
545 self.SetVectorLength(1.0)
546
547
548 def __str__(self): return str(self.asTuple())
549 def __repr__(self): return 'wxPoint2DDouble'+str(self.asTuple())
550 def __len__(self): return len(self.asTuple())
551 def __getitem__(self, index): return self.asTuple()[index]
552 def __setitem__(self, index, val):
553 if index == 0: self.m_x = val
554 elif index == 1: self.m_yt = val
555 else: raise IndexError
556 def __nonzero__(self): return self.asTuple() != (0.0, 0.0)
557 def __getinitargs__(self): return ()
558 def __getstate__(self): return self.asTuple()
559 def __setstate__(self, state): self.Set(*state)
560
561class wxPoint2DDouble(wxPoint2DDoublePtr):
562 def __init__(self,*_args,**_kwargs):
5a2a9da2 563 self.this = miscc.new_wxPoint2DDouble(*_args,**_kwargs)
7e50db3f
RD
564 self.thisown = 1
565
566
567
568def wxPoint2DDoubleCopy(*_args,**_kwargs):
5a2a9da2 569 val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleCopy(*_args,**_kwargs))
7e50db3f
RD
570 val.thisown = 1
571 return val
572
573def wxPoint2DDoubleFromPoint(*_args,**_kwargs):
5a2a9da2 574 val = wxPoint2DDoublePtr(miscc.new_wxPoint2DDoubleFromPoint(*_args,**_kwargs))
7e50db3f
RD
575 val.thisown = 1
576 return val
577
578
9416aa89 579class wxIndividualLayoutConstraintPtr(wxObjectPtr):
8ab979d7
RD
580 def __init__(self,this):
581 self.this = this
582 self.thisown = 0
1d99702e 583 def Above(self, *_args, **_kwargs):
5a2a9da2 584 val = miscc.wxIndividualLayoutConstraint_Above(self, *_args, **_kwargs)
8ab979d7 585 return val
1d99702e 586 def Absolute(self, *_args, **_kwargs):
5a2a9da2 587 val = miscc.wxIndividualLayoutConstraint_Absolute(self, *_args, **_kwargs)
8ab979d7 588 return val
1d99702e 589 def AsIs(self, *_args, **_kwargs):
5a2a9da2 590 val = miscc.wxIndividualLayoutConstraint_AsIs(self, *_args, **_kwargs)
8ab979d7 591 return val
1d99702e 592 def Below(self, *_args, **_kwargs):
5a2a9da2 593 val = miscc.wxIndividualLayoutConstraint_Below(self, *_args, **_kwargs)
8ab979d7 594 return val
1d99702e 595 def Unconstrained(self, *_args, **_kwargs):
5a2a9da2 596 val = miscc.wxIndividualLayoutConstraint_Unconstrained(self, *_args, **_kwargs)
8ab979d7 597 return val
1d99702e 598 def LeftOf(self, *_args, **_kwargs):
5a2a9da2 599 val = miscc.wxIndividualLayoutConstraint_LeftOf(self, *_args, **_kwargs)
8ab979d7 600 return val
1d99702e 601 def PercentOf(self, *_args, **_kwargs):
5a2a9da2 602 val = miscc.wxIndividualLayoutConstraint_PercentOf(self, *_args, **_kwargs)
8ab979d7 603 return val
1d99702e 604 def RightOf(self, *_args, **_kwargs):
5a2a9da2 605 val = miscc.wxIndividualLayoutConstraint_RightOf(self, *_args, **_kwargs)
8ab979d7 606 return val
1d99702e 607 def SameAs(self, *_args, **_kwargs):
5a2a9da2 608 val = miscc.wxIndividualLayoutConstraint_SameAs(self, *_args, **_kwargs)
8ab979d7 609 return val
1d99702e 610 def Set(self, *_args, **_kwargs):
5a2a9da2 611 val = miscc.wxIndividualLayoutConstraint_Set(self, *_args, **_kwargs)
8ab979d7
RD
612 return val
613 def __repr__(self):
5a2a9da2 614 return "<%s.%s instance; proxy of C++ wxIndividualLayoutConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7
RD
615class wxIndividualLayoutConstraint(wxIndividualLayoutConstraintPtr):
616 def __init__(self,this):
617 self.this = this
618
619
620
621
9416aa89 622class wxLayoutConstraintsPtr(wxObjectPtr):
8ab979d7
RD
623 def __init__(self,this):
624 self.this = this
625 self.thisown = 0
626 def __setattr__(self,name,value):
627 if name == "bottom" :
1d99702e 628 miscc.wxLayoutConstraints_bottom_set(self,value.this)
8ab979d7
RD
629 return
630 if name == "centreX" :
1d99702e 631 miscc.wxLayoutConstraints_centreX_set(self,value.this)
8ab979d7
RD
632 return
633 if name == "centreY" :
1d99702e 634 miscc.wxLayoutConstraints_centreY_set(self,value.this)
8ab979d7
RD
635 return
636 if name == "height" :
1d99702e 637 miscc.wxLayoutConstraints_height_set(self,value.this)
8ab979d7
RD
638 return
639 if name == "left" :
1d99702e 640 miscc.wxLayoutConstraints_left_set(self,value.this)
8ab979d7
RD
641 return
642 if name == "right" :
1d99702e 643 miscc.wxLayoutConstraints_right_set(self,value.this)
8ab979d7
RD
644 return
645 if name == "top" :
1d99702e 646 miscc.wxLayoutConstraints_top_set(self,value.this)
8ab979d7
RD
647 return
648 if name == "width" :
1d99702e 649 miscc.wxLayoutConstraints_width_set(self,value.this)
8ab979d7
RD
650 return
651 self.__dict__[name] = value
652 def __getattr__(self,name):
653 if name == "bottom" :
1d99702e 654 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_bottom_get(self))
8ab979d7 655 if name == "centreX" :
1d99702e 656 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreX_get(self))
8ab979d7 657 if name == "centreY" :
1d99702e 658 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_centreY_get(self))
8ab979d7 659 if name == "height" :
1d99702e 660 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_height_get(self))
8ab979d7 661 if name == "left" :
1d99702e 662 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_left_get(self))
8ab979d7 663 if name == "right" :
1d99702e 664 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_right_get(self))
8ab979d7 665 if name == "top" :
1d99702e 666 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_top_get(self))
8ab979d7 667 if name == "width" :
1d99702e 668 return wxIndividualLayoutConstraintPtr(miscc.wxLayoutConstraints_width_get(self))
8ab979d7
RD
669 raise AttributeError,name
670 def __repr__(self):
5a2a9da2 671 return "<%s.%s instance; proxy of C++ wxLayoutConstraints instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 672class wxLayoutConstraints(wxLayoutConstraintsPtr):
1d99702e 673 def __init__(self,*_args,**_kwargs):
5a2a9da2 674 self.this = miscc.new_wxLayoutConstraints(*_args,**_kwargs)
8ab979d7
RD
675 self.thisown = 1
676
677
678
679
680class wxAcceleratorEntryPtr :
681 def __init__(self,this):
682 self.this = this
683 self.thisown = 0
7e50db3f
RD
684 def __del__(self, delfunc=miscc.delete_wxAcceleratorEntry):
685 if self.thisown == 1:
686 try:
687 delfunc(self)
688 except:
689 pass
1d99702e 690 def Set(self, *_args, **_kwargs):
5a2a9da2 691 val = miscc.wxAcceleratorEntry_Set(self, *_args, **_kwargs)
8ab979d7 692 return val
1d99702e 693 def GetFlags(self, *_args, **_kwargs):
5a2a9da2 694 val = miscc.wxAcceleratorEntry_GetFlags(self, *_args, **_kwargs)
8ab979d7 695 return val
1d99702e 696 def GetKeyCode(self, *_args, **_kwargs):
5a2a9da2 697 val = miscc.wxAcceleratorEntry_GetKeyCode(self, *_args, **_kwargs)
8ab979d7 698 return val
1d99702e 699 def GetCommand(self, *_args, **_kwargs):
5a2a9da2 700 val = miscc.wxAcceleratorEntry_GetCommand(self, *_args, **_kwargs)
8ab979d7
RD
701 return val
702 def __repr__(self):
5a2a9da2 703 return "<%s.%s instance; proxy of C++ wxAcceleratorEntry instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 704class wxAcceleratorEntry(wxAcceleratorEntryPtr):
1d99702e 705 def __init__(self,*_args,**_kwargs):
5a2a9da2 706 self.this = miscc.new_wxAcceleratorEntry(*_args,**_kwargs)
8ab979d7
RD
707 self.thisown = 1
708
709
710
711
9416aa89 712class wxAcceleratorTablePtr(wxObjectPtr):
8ab979d7
RD
713 def __init__(self,this):
714 self.this = this
715 self.thisown = 0
7e50db3f
RD
716 def __del__(self, delfunc=miscc.delete_wxAcceleratorTable):
717 if self.thisown == 1:
718 try:
719 delfunc(self)
720 except:
721 pass
8ab979d7 722 def __repr__(self):
5a2a9da2 723 return "<%s.%s instance; proxy of C++ wxAcceleratorTable instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
8ab979d7 724class wxAcceleratorTable(wxAcceleratorTablePtr):
1d99702e 725 def __init__(self,*_args,**_kwargs):
5a2a9da2 726 self.this = miscc.new_wxAcceleratorTable(*_args,**_kwargs)
8ab979d7
RD
727 self.thisown = 1
728
729
730
731
9416aa89 732class wxBusyInfoPtr(wxObjectPtr):
2abc0a0f
RD
733 def __init__(self,this):
734 self.this = this
735 self.thisown = 0
7e50db3f
RD
736 def __del__(self, delfunc=miscc.delete_wxBusyInfo):
737 if self.thisown == 1:
738 try:
739 delfunc(self)
740 except:
741 pass
2abc0a0f 742 def __repr__(self):
5a2a9da2 743 return "<%s.%s instance; proxy of C++ wxBusyInfo instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
2abc0a0f
RD
744class wxBusyInfo(wxBusyInfoPtr):
745 def __init__(self,*_args,**_kwargs):
5a2a9da2 746 self.this = miscc.new_wxBusyInfo(*_args,**_kwargs)
2abc0a0f
RD
747 self.thisown = 1
748
749
750
751
8ab979d7
RD
752
753
754#-------------- FUNCTION WRAPPERS ------------------
755
eb715945
RD
756wxIntersectRect = miscc.wxIntersectRect
757
cf694132
RD
758wxNewId = miscc.wxNewId
759
760wxRegisterId = miscc.wxRegisterId
761
83b18bab
RD
762wxGetCurrentId = miscc.wxGetCurrentId
763
8ab979d7
RD
764wxBell = miscc.wxBell
765
8ab979d7
RD
766wxEndBusyCursor = miscc.wxEndBusyCursor
767
8ab979d7
RD
768wxGetElapsedTime = miscc.wxGetElapsedTime
769
770wxGetFreeMemory = miscc.wxGetFreeMemory
771
772wxGetMousePosition = miscc.wxGetMousePosition
773
774wxIsBusy = miscc.wxIsBusy
775
776wxNow = miscc.wxNow
777
778wxShell = miscc.wxShell
779
780wxStartTimer = miscc.wxStartTimer
781
782wxGetOsVersion = miscc.wxGetOsVersion
783
c368d904
RD
784wxGetOsDescription = miscc.wxGetOsDescription
785
b7fc54be
RD
786wxShutdown = miscc.wxShutdown
787
bb0054cd
RD
788wxSleep = miscc.wxSleep
789
c368d904 790wxUsleep = miscc.wxUsleep
8ab979d7 791
c368d904 792wxYield = miscc.wxYield
cf694132 793
83b18bab
RD
794wxYieldIfNeeded = miscc.wxYieldIfNeeded
795
bb0054cd
RD
796wxEnableTopLevelWindows = miscc.wxEnableTopLevelWindows
797
694759cf
RD
798wxStripMenuCodes = miscc.wxStripMenuCodes
799
c368d904
RD
800wxGetEmailAddress = miscc.wxGetEmailAddress
801
802wxGetHostName = miscc.wxGetHostName
803
804wxGetFullHostName = miscc.wxGetFullHostName
805
806wxGetUserId = miscc.wxGetUserId
807
808wxGetUserName = miscc.wxGetUserName
809
810wxGetHomeDir = miscc.wxGetHomeDir
811
c6c593e8
RD
812wxGetUserHome = miscc.wxGetUserHome
813
0815db26
RD
814wxGetProcessId = miscc.wxGetProcessId
815
8a12f92d
RD
816wxTrap = miscc.wxTrap
817
c368d904 818def wxGetAccelFromString(*_args, **_kwargs):
5a2a9da2 819 val = miscc.wxGetAccelFromString(*_args,**_kwargs)
c368d904
RD
820 if val: val = wxAcceleratorEntryPtr(val)
821 return val
822
8ab979d7
RD
823
824
825#-------------- VARIABLE WRAPPERS ------------------
826
b7fc54be
RD
827wxSHUTDOWN_POWEROFF = miscc.wxSHUTDOWN_POWEROFF
828wxSHUTDOWN_REBOOT = miscc.wxSHUTDOWN_REBOOT
8ab979d7
RD
829wxLeft = miscc.wxLeft
830wxTop = miscc.wxTop
831wxRight = miscc.wxRight
832wxBottom = miscc.wxBottom
833wxWidth = miscc.wxWidth
834wxHeight = miscc.wxHeight
835wxCentre = miscc.wxCentre
836wxCenter = miscc.wxCenter
837wxCentreX = miscc.wxCentreX
838wxCentreY = miscc.wxCentreY
839wxUnconstrained = miscc.wxUnconstrained
840wxAsIs = miscc.wxAsIs
841wxPercentOf = miscc.wxPercentOf
842wxAbove = miscc.wxAbove
843wxBelow = miscc.wxBelow
844wxLeftOf = miscc.wxLeftOf
845wxRightOf = miscc.wxRightOf
846wxSameAs = miscc.wxSameAs
847wxAbsolute = miscc.wxAbsolute
f6bcfd97
BP
848cvar = miscc.cvar
849wxNullAcceleratorTable = wxAcceleratorTablePtr(miscc.cvar.wxNullAcceleratorTable)