]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/gdi.py
Save the initial tstate during initialization
[wxWidgets.git] / wxPython / src / gtk / gdi.py
CommitLineData
70551f47
RD
1# This file was created automatically by SWIG.
2import gdic
3
4from misc import *
a323d3bd
RD
5
6from fonts import *
b67a9327 7import wx
9df61a29
RD
8class wxGDIObjectPtr(wxObjectPtr):
9 def __init__(self,this):
10 self.this = this
11 self.thisown = 0
b67a9327
RD
12 def __del__(self, delfunc=gdic.delete_wxGDIObject):
13 if self.thisown == 1:
14 try:
15 delfunc(self)
16 except:
17 pass
9df61a29 18 def GetVisible(self, *_args, **_kwargs):
1fded56b 19 val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs)
9df61a29
RD
20 return val
21 def SetVisible(self, *_args, **_kwargs):
1fded56b 22 val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs)
9df61a29
RD
23 return val
24 def IsNull(self, *_args, **_kwargs):
1fded56b 25 val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs)
9df61a29
RD
26 return val
27 def __repr__(self):
1fded56b 28 return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9df61a29
RD
29class wxGDIObject(wxGDIObjectPtr):
30 def __init__(self,*_args,**_kwargs):
1fded56b 31 self.this = gdic.new_wxGDIObject(*_args,**_kwargs)
9df61a29
RD
32 self.thisown = 1
33
34
35
36
37class wxBitmapPtr(wxGDIObjectPtr):
70551f47
RD
38 def __init__(self,this):
39 self.this = this
40 self.thisown = 0
b67a9327
RD
41 def __del__(self, delfunc=gdic.delete_wxBitmap):
42 if self.thisown == 1:
43 try:
44 delfunc(self)
45 except:
46 pass
2d091820 47 def GetPalette(self, *_args, **_kwargs):
1fded56b 48 val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs)
2d091820 49 if val: val = wxPalettePtr(val)
70551f47 50 return val
2d091820 51 def GetMask(self, *_args, **_kwargs):
1fded56b 52 val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs)
2d091820 53 if val: val = wxMaskPtr(val)
70551f47 54 return val
2d091820 55 def LoadFile(self, *_args, **_kwargs):
1fded56b 56 val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs)
70551f47 57 return val
2d091820 58 def SaveFile(self, *_args, **_kwargs):
1fded56b 59 val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs)
70551f47 60 return val
2d091820 61 def SetMask(self, *_args, **_kwargs):
1fded56b 62 val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs)
70551f47 63 return val
56f5d962 64 def Ok(self, *_args, **_kwargs):
1fded56b 65 val = gdic.wxBitmap_Ok(self, *_args, **_kwargs)
56f5d962
RD
66 return val
67 def GetWidth(self, *_args, **_kwargs):
1fded56b 68 val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs)
56f5d962
RD
69 return val
70 def GetHeight(self, *_args, **_kwargs):
1fded56b 71 val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs)
56f5d962
RD
72 return val
73 def GetDepth(self, *_args, **_kwargs):
1fded56b 74 val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs)
56f5d962 75 return val
2d091820 76 def SetWidth(self, *_args, **_kwargs):
1fded56b 77 val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs)
70551f47 78 return val
56f5d962 79 def SetHeight(self, *_args, **_kwargs):
1fded56b 80 val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs)
56f5d962
RD
81 return val
82 def SetDepth(self, *_args, **_kwargs):
1fded56b 83 val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs)
56f5d962 84 return val
f6bcfd97 85 def GetSubBitmap(self, *_args, **_kwargs):
1fded56b 86 val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs)
f6bcfd97
BP
87 if val: val = wxBitmapPtr(val) ; val.thisown = 1
88 return val
65191ae8 89 def CopyFromIcon(self, *_args, **_kwargs):
1fded56b 90 val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs)
65191ae8 91 return val
70551f47 92 def __repr__(self):
1fded56b 93 return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
f6bcfd97 94
b67a9327
RD
95 def SetMaskColour(self, colour):
96 mask = wxMaskColour(self, colour)
97 self.SetMask(mask)
98
1fded56b 99 def __nonzero__(self): return self.Ok()
70551f47 100class wxBitmap(wxBitmapPtr):
2d091820 101 def __init__(self,*_args,**_kwargs):
1fded56b 102 self.this = gdic.new_wxBitmap(*_args,**_kwargs)
70551f47
RD
103 self.thisown = 1
104
105
106
107
9df61a29 108class wxMaskPtr(wxObjectPtr):
70551f47
RD
109 def __init__(self,this):
110 self.this = this
111 self.thisown = 0
fbcadfca 112 def Destroy(self, *_args, **_kwargs):
1fded56b 113 val = gdic.wxMask_Destroy(self, *_args, **_kwargs)
fbcadfca 114 return val
70551f47 115 def __repr__(self):
1fded56b 116 return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70551f47 117class wxMask(wxMaskPtr):
2d091820 118 def __init__(self,*_args,**_kwargs):
1fded56b 119 self.this = gdic.new_wxMask(*_args,**_kwargs)
70551f47
RD
120 self.thisown = 1
121
122
123
124
9df61a29 125class wxIconPtr(wxGDIObjectPtr):
70551f47
RD
126 def __init__(self,this):
127 self.this = this
128 self.thisown = 0
b67a9327
RD
129 def __del__(self, delfunc=gdic.delete_wxIcon):
130 if self.thisown == 1:
131 try:
132 delfunc(self)
133 except:
134 pass
56f5d962 135 def LoadFile(self, *_args, **_kwargs):
1fded56b 136 val = gdic.wxIcon_LoadFile(self, *_args, **_kwargs)
70551f47 137 return val
56f5d962 138 def Ok(self, *_args, **_kwargs):
1fded56b 139 val = gdic.wxIcon_Ok(self, *_args, **_kwargs)
70551f47 140 return val
2d091820 141 def GetWidth(self, *_args, **_kwargs):
1fded56b 142 val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs)
70551f47 143 return val
56f5d962 144 def GetHeight(self, *_args, **_kwargs):
1fded56b 145 val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs)
70551f47 146 return val
56f5d962 147 def GetDepth(self, *_args, **_kwargs):
1fded56b 148 val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs)
70551f47 149 return val
56f5d962 150 def SetWidth(self, *_args, **_kwargs):
1fded56b 151 val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs)
70551f47 152 return val
2d091820 153 def SetHeight(self, *_args, **_kwargs):
1fded56b 154 val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs)
70551f47 155 return val
56f5d962 156 def SetDepth(self, *_args, **_kwargs):
1fded56b 157 val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs)
70551f47 158 return val
fbcadfca 159 def CopyFromBitmap(self, *_args, **_kwargs):
1fded56b 160 val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs)
fbcadfca 161 return val
70551f47 162 def __repr__(self):
1fded56b
RD
163 return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
164 def __nonzero__(self): return self.Ok()
70551f47 165class wxIcon(wxIconPtr):
2d091820 166 def __init__(self,*_args,**_kwargs):
1fded56b 167 self.this = gdic.new_wxIcon(*_args,**_kwargs)
8bf5d46e 168 self.thisown = 1
70551f47
RD
169
170
171
172
3ef86e32
RD
173class wxIconLocationPtr :
174 def __init__(self,this):
175 self.this = this
176 self.thisown = 0
177 def __del__(self, delfunc=gdic.delete_wxIconLocation):
178 if self.thisown == 1:
179 try:
180 delfunc(self)
181 except:
182 pass
183 def IsOk(self, *_args, **_kwargs):
184 val = gdic.wxIconLocation_IsOk(self, *_args, **_kwargs)
185 return val
186 def SetFileName(self, *_args, **_kwargs):
187 val = gdic.wxIconLocation_SetFileName(self, *_args, **_kwargs)
188 return val
189 def GetFileName(self, *_args, **_kwargs):
190 val = gdic.wxIconLocation_GetFileName(self, *_args, **_kwargs)
191 return val
192 def SetIndex(self, *_args, **_kwargs):
193 val = gdic.wxIconLocation_SetIndex(self, *_args, **_kwargs)
194 return val
195 def GetIndex(self, *_args, **_kwargs):
196 val = gdic.wxIconLocation_GetIndex(self, *_args, **_kwargs)
197 return val
198 def __repr__(self):
199 return "<%s.%s instance; proxy of C++ wxIconLocation instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
200class wxIconLocation(wxIconLocationPtr):
201 def __init__(self,*_args,**_kwargs):
202 self.this = gdic.new_wxIconLocation(*_args,**_kwargs)
203 self.thisown = 1
204
205
206
207
a323d3bd 208class wxIconBundlePtr :
70551f47
RD
209 def __init__(self,this):
210 self.this = this
211 self.thisown = 0
b67a9327
RD
212 def __del__(self, delfunc=gdic.delete_wxIconBundle):
213 if self.thisown == 1:
214 try:
215 delfunc(self)
216 except:
217 pass
a323d3bd 218 def AddIcon(self, *_args, **_kwargs):
1fded56b 219 val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs)
059a841c 220 return val
a323d3bd 221 def AddIconFromFile(self, *_args, **_kwargs):
1fded56b 222 val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs)
1893b029 223 return val
a323d3bd 224 def GetIcon(self, *_args, **_kwargs):
1fded56b 225 val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs)
a323d3bd 226 if val: val = wxIconPtr(val)
1893b029 227 return val
059a841c 228 def __repr__(self):
1fded56b 229 return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
a323d3bd 230class wxIconBundle(wxIconBundlePtr):
1893b029 231 def __init__(self,*_args,**_kwargs):
1fded56b 232 self.this = gdic.new_wxIconBundle(*_args,**_kwargs)
1893b029 233 self.thisown = 1
059a841c
RD
234
235
236
a323d3bd 237def wxIconBundleFromFile(*_args,**_kwargs):
1fded56b 238 val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs))
a323d3bd
RD
239 val.thisown = 1
240 return val
059a841c 241
a323d3bd 242def wxIconBundleFromIcon(*_args,**_kwargs):
1fded56b 243 val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs))
a323d3bd
RD
244 val.thisown = 1
245 return val
059a841c
RD
246
247
a323d3bd 248class wxCursorPtr(wxGDIObjectPtr):
70551f47
RD
249 def __init__(self,this):
250 self.this = this
251 self.thisown = 0
b67a9327
RD
252 def __del__(self, delfunc=gdic.delete_wxCursor):
253 if self.thisown == 1:
254 try:
255 delfunc(self)
256 except:
257 pass
d29aba2f 258 def Ok(self, *_args, **_kwargs):
1fded56b 259 val = gdic.wxCursor_Ok(self, *_args, **_kwargs)
7a9b33db 260 return val
5e40f9dd 261 def __repr__(self):
1fded56b
RD
262 return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
263 def __nonzero__(self): return self.Ok()
a323d3bd 264class wxCursor(wxCursorPtr):
1fded56b
RD
265 def __init__(self,*_args,**_kwargs):
266 self.this = gdic.new_wxCursor(*_args,**_kwargs)
267 self.thisown = 1
5e40f9dd
RD
268
269
270
271
9df61a29 272class wxColourPtr(wxObjectPtr):
70551f47
RD
273 def __init__(self,this):
274 self.this = this
275 self.thisown = 0
b67a9327
RD
276 def __del__(self, delfunc=gdic.delete_wxColour):
277 if self.thisown == 1:
278 try:
279 delfunc(self)
280 except:
281 pass
2d091820 282 def Red(self, *_args, **_kwargs):
1fded56b 283 val = gdic.wxColour_Red(self, *_args, **_kwargs)
70551f47 284 return val
2d091820 285 def Green(self, *_args, **_kwargs):
1fded56b 286 val = gdic.wxColour_Green(self, *_args, **_kwargs)
70551f47 287 return val
2d091820 288 def Blue(self, *_args, **_kwargs):
1fded56b 289 val = gdic.wxColour_Blue(self, *_args, **_kwargs)
70551f47 290 return val
2d091820 291 def Ok(self, *_args, **_kwargs):
1fded56b 292 val = gdic.wxColour_Ok(self, *_args, **_kwargs)
70551f47 293 return val
2d091820 294 def Set(self, *_args, **_kwargs):
1fded56b 295 val = gdic.wxColour_Set(self, *_args, **_kwargs)
70551f47 296 return val
2d091820 297 def Get(self, *_args, **_kwargs):
1fded56b 298 val = gdic.wxColour_Get(self, *_args, **_kwargs)
70551f47 299 return val
b67a9327 300 def __eq__(self, *_args, **_kwargs):
1fded56b 301 val = gdic.wxColour___eq__(self, *_args, **_kwargs)
b67a9327
RD
302 return val
303 def __ne__(self, *_args, **_kwargs):
1fded56b 304 val = gdic.wxColour___ne__(self, *_args, **_kwargs)
b67a9327 305 return val
70551f47 306 def __repr__(self):
1fded56b 307 return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
ab2208b5 308 asTuple = Get
b67a9327 309 def __str__(self): return str(self.asTuple())
1a8372ba 310 def __repr__(self): return 'wxColour' + str(self.asTuple())
b67a9327
RD
311 def __nonzero__(self): return self.Ok()
312 def __getinitargs__(self): return ()
313 def __getstate__(self): return self.asTuple()
314 def __setstate__(self, state): self.Set(*state)
315
70551f47 316class wxColour(wxColourPtr):
2d091820 317 def __init__(self,*_args,**_kwargs):
1fded56b 318 self.this = gdic.new_wxColour(*_args,**_kwargs)
70551f47
RD
319 self.thisown = 1
320
321
322
323
9df61a29 324class wxColourDatabasePtr(wxObjectPtr):
5e40f9dd
RD
325 def __init__(self,this):
326 self.this = this
327 self.thisown = 0
328 def FindColour(self, *_args, **_kwargs):
1fded56b 329 val = gdic.wxColourDatabase_FindColour(self, *_args, **_kwargs)
5e40f9dd
RD
330 if val: val = wxColourPtr(val)
331 return val
dd116e73
RD
332 def FindColourNoAdd(self, *_args, **_kwargs):
333 val = gdic.wxColourDatabase_FindColourNoAdd(self, *_args, **_kwargs)
334 if val: val = wxColourPtr(val)
335 return val
5e40f9dd 336 def FindName(self, *_args, **_kwargs):
1fded56b 337 val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs)
5e40f9dd 338 return val
dd116e73
RD
339 def AddColour(self, *_args, **_kwargs):
340 val = gdic.wxColourDatabase_AddColour(self, *_args, **_kwargs)
341 return val
5e40f9dd 342 def Append(self, *_args, **_kwargs):
1fded56b 343 val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs)
5e40f9dd
RD
344 return val
345 def __repr__(self):
1fded56b 346 return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
5e40f9dd
RD
347class wxColourDatabase(wxColourDatabasePtr):
348 def __init__(self,this):
349 self.this = this
350
351
352
353
9df61a29 354class wxPenPtr(wxGDIObjectPtr):
70551f47
RD
355 def __init__(self,this):
356 self.this = this
357 self.thisown = 0
b67a9327
RD
358 def __del__(self, delfunc=gdic.delete_wxPen):
359 if self.thisown == 1:
360 try:
361 delfunc(self)
362 except:
363 pass
2d091820 364 def GetCap(self, *_args, **_kwargs):
1fded56b 365 val = gdic.wxPen_GetCap(self, *_args, **_kwargs)
70551f47 366 return val
2d091820 367 def GetColour(self, *_args, **_kwargs):
1fded56b 368 val = gdic.wxPen_GetColour(self, *_args, **_kwargs)
84a81942 369 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 370 return val
2d091820 371 def GetJoin(self, *_args, **_kwargs):
1fded56b 372 val = gdic.wxPen_GetJoin(self, *_args, **_kwargs)
70551f47 373 return val
2d091820 374 def GetStyle(self, *_args, **_kwargs):
1fded56b 375 val = gdic.wxPen_GetStyle(self, *_args, **_kwargs)
70551f47 376 return val
2d091820 377 def GetWidth(self, *_args, **_kwargs):
1fded56b 378 val = gdic.wxPen_GetWidth(self, *_args, **_kwargs)
70551f47 379 return val
2d091820 380 def Ok(self, *_args, **_kwargs):
1fded56b 381 val = gdic.wxPen_Ok(self, *_args, **_kwargs)
70551f47 382 return val
2d091820 383 def SetCap(self, *_args, **_kwargs):
1fded56b 384 val = gdic.wxPen_SetCap(self, *_args, **_kwargs)
70551f47 385 return val
2d091820 386 def SetColour(self, *_args, **_kwargs):
1fded56b 387 val = gdic.wxPen_SetColour(self, *_args, **_kwargs)
70551f47 388 return val
2d091820 389 def SetJoin(self, *_args, **_kwargs):
1fded56b 390 val = gdic.wxPen_SetJoin(self, *_args, **_kwargs)
70551f47 391 return val
2d091820 392 def SetStyle(self, *_args, **_kwargs):
1fded56b 393 val = gdic.wxPen_SetStyle(self, *_args, **_kwargs)
70551f47 394 return val
2d091820 395 def SetWidth(self, *_args, **_kwargs):
1fded56b 396 val = gdic.wxPen_SetWidth(self, *_args, **_kwargs)
70551f47 397 return val
56f5d962 398 def SetDashes(self, *_args, **_kwargs):
1fded56b 399 val = gdic.wxPen_SetDashes(self, *_args, **_kwargs)
298ae144
RD
400 return val
401 def GetDashes(self, *_args, **_kwargs):
1fded56b 402 val = gdic.wxPen_GetDashes(self, *_args, **_kwargs)
56f5d962 403 return val
70551f47 404 def __repr__(self):
1fded56b
RD
405 return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
406 def __nonzero__(self): return self.Ok()
70551f47 407class wxPen(wxPenPtr):
2d091820 408 def __init__(self,*_args,**_kwargs):
1fded56b 409 self.this = gdic.new_wxPen(*_args,**_kwargs)
70551f47
RD
410 self.thisown = 1
411
412
413
414
65191ae8
RD
415class wxPyPenPtr(wxPenPtr):
416 def __init__(self,this):
417 self.this = this
418 self.thisown = 0
b67a9327
RD
419 def __del__(self, delfunc=gdic.delete_wxPyPen):
420 if self.thisown == 1:
421 try:
422 delfunc(self)
423 except:
424 pass
65191ae8 425 def SetDashes(self, *_args, **_kwargs):
1fded56b 426 val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs)
65191ae8
RD
427 return val
428 def __repr__(self):
1fded56b 429 return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
65191ae8
RD
430class wxPyPen(wxPyPenPtr):
431 def __init__(self,*_args,**_kwargs):
1fded56b 432 self.this = gdic.new_wxPyPen(*_args,**_kwargs)
65191ae8
RD
433 self.thisown = 1
434
435
436
437
9df61a29 438class wxPenListPtr(wxObjectPtr):
5e40f9dd
RD
439 def __init__(self,this):
440 self.this = this
441 self.thisown = 0
442 def AddPen(self, *_args, **_kwargs):
1fded56b 443 val = gdic.wxPenList_AddPen(self, *_args, **_kwargs)
5e40f9dd
RD
444 return val
445 def FindOrCreatePen(self, *_args, **_kwargs):
1fded56b 446 val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs)
5e40f9dd
RD
447 if val: val = wxPenPtr(val)
448 return val
449 def RemovePen(self, *_args, **_kwargs):
1fded56b 450 val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs)
5e40f9dd 451 return val
7a9b33db 452 def GetCount(self, *_args, **_kwargs):
1fded56b 453 val = gdic.wxPenList_GetCount(self, *_args, **_kwargs)
7a9b33db 454 return val
5e40f9dd 455 def __repr__(self):
1fded56b 456 return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
5e40f9dd
RD
457class wxPenList(wxPenListPtr):
458 def __init__(self,this):
459 self.this = this
460
461
462
463
9df61a29 464class wxBrushPtr(wxGDIObjectPtr):
70551f47
RD
465 def __init__(self,this):
466 self.this = this
467 self.thisown = 0
b67a9327
RD
468 def __del__(self, delfunc=gdic.delete_wxBrush):
469 if self.thisown == 1:
470 try:
471 delfunc(self)
472 except:
473 pass
2d091820 474 def GetColour(self, *_args, **_kwargs):
1fded56b 475 val = gdic.wxBrush_GetColour(self, *_args, **_kwargs)
84a81942 476 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 477 return val
2d091820 478 def GetStipple(self, *_args, **_kwargs):
1fded56b 479 val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs)
2d091820 480 if val: val = wxBitmapPtr(val)
70551f47 481 return val
2d091820 482 def GetStyle(self, *_args, **_kwargs):
1fded56b 483 val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs)
70551f47 484 return val
2d091820 485 def Ok(self, *_args, **_kwargs):
1fded56b 486 val = gdic.wxBrush_Ok(self, *_args, **_kwargs)
70551f47 487 return val
2d091820 488 def SetColour(self, *_args, **_kwargs):
1fded56b 489 val = gdic.wxBrush_SetColour(self, *_args, **_kwargs)
c95e68d8 490 return val
2d091820 491 def SetStipple(self, *_args, **_kwargs):
1fded56b 492 val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs)
c95e68d8 493 return val
2d091820 494 def SetStyle(self, *_args, **_kwargs):
1fded56b 495 val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs)
c95e68d8 496 return val
70551f47 497 def __repr__(self):
1fded56b
RD
498 return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
499 def __nonzero__(self): return self.Ok()
70551f47 500class wxBrush(wxBrushPtr):
2d091820 501 def __init__(self,*_args,**_kwargs):
1fded56b 502 self.this = gdic.new_wxBrush(*_args,**_kwargs)
70551f47
RD
503 self.thisown = 1
504
505
506
507
65191ae8 508class wxBrushListPtr(wxObjectPtr):
5e40f9dd
RD
509 def __init__(self,this):
510 self.this = this
511 self.thisown = 0
512 def AddBrush(self, *_args, **_kwargs):
1fded56b 513 val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs)
5e40f9dd
RD
514 return val
515 def FindOrCreateBrush(self, *_args, **_kwargs):
1fded56b 516 val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs)
5e40f9dd
RD
517 if val: val = wxBrushPtr(val)
518 return val
519 def RemoveBrush(self, *_args, **_kwargs):
1fded56b 520 val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs)
5e40f9dd 521 return val
7a9b33db 522 def GetCount(self, *_args, **_kwargs):
1fded56b 523 val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs)
7a9b33db 524 return val
5e40f9dd 525 def __repr__(self):
1fded56b 526 return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
5e40f9dd
RD
527class wxBrushList(wxBrushListPtr):
528 def __init__(self,this):
529 self.this = this
530
531
532
533
9df61a29 534class wxDCPtr(wxObjectPtr):
70551f47
RD
535 def __init__(self,this):
536 self.this = this
537 self.thisown = 0
b67a9327
RD
538 def __del__(self, delfunc=gdic.delete_wxDC):
539 if self.thisown == 1:
540 try:
541 delfunc(self)
542 except:
543 pass
2d091820 544 def BeginDrawing(self, *_args, **_kwargs):
1fded56b 545 val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs)
70551f47 546 return val
2d091820 547 def Blit(self, *_args, **_kwargs):
1fded56b 548 val = gdic.wxDC_Blit(self, *_args, **_kwargs)
70551f47 549 return val
2d091820 550 def Clear(self, *_args, **_kwargs):
1fded56b 551 val = gdic.wxDC_Clear(self, *_args, **_kwargs)
70551f47 552 return val
2d091820 553 def CrossHair(self, *_args, **_kwargs):
1fded56b 554 val = gdic.wxDC_CrossHair(self, *_args, **_kwargs)
70551f47 555 return val
2d091820 556 def DestroyClippingRegion(self, *_args, **_kwargs):
1fded56b 557 val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs)
70551f47 558 return val
2d091820 559 def DeviceToLogicalX(self, *_args, **_kwargs):
1fded56b 560 val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs)
70551f47 561 return val
2d091820 562 def DeviceToLogicalXRel(self, *_args, **_kwargs):
1fded56b 563 val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs)
70551f47 564 return val
2d091820 565 def DeviceToLogicalY(self, *_args, **_kwargs):
1fded56b 566 val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs)
70551f47 567 return val
2d091820 568 def DeviceToLogicalYRel(self, *_args, **_kwargs):
1fded56b 569 val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs)
70551f47 570 return val
2d091820 571 def DrawArc(self, *_args, **_kwargs):
1fded56b 572 val = gdic.wxDC_DrawArc(self, *_args, **_kwargs)
70551f47 573 return val
2d091820 574 def DrawCircle(self, *_args, **_kwargs):
1fded56b 575 val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs)
d24a34bb 576 return val
2d091820 577 def DrawEllipse(self, *_args, **_kwargs):
1fded56b 578 val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs)
70551f47 579 return val
2d091820 580 def DrawEllipticArc(self, *_args, **_kwargs):
1fded56b 581 val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs)
70551f47 582 return val
2d091820 583 def DrawIcon(self, *_args, **_kwargs):
1fded56b 584 val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs)
70551f47 585 return val
8cb49012 586 def DrawLabel(self, *_args, **_kwargs):
1fded56b 587 val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs)
8cb49012
RD
588 return val
589 def DrawImageLabel(self, *_args, **_kwargs):
1fded56b 590 val = gdic.wxDC_DrawImageLabel(self, *_args, **_kwargs)
8cb49012
RD
591 if val: val = wxRectPtr(val) ; val.thisown = 1
592 return val
2d091820 593 def DrawLine(self, *_args, **_kwargs):
1fded56b 594 val = gdic.wxDC_DrawLine(self, *_args, **_kwargs)
70551f47 595 return val
2d091820 596 def DrawLines(self, *_args, **_kwargs):
1fded56b 597 val = gdic.wxDC_DrawLines(self, *_args, **_kwargs)
70551f47 598 return val
2d091820 599 def DrawPolygon(self, *_args, **_kwargs):
1fded56b 600 val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs)
70551f47 601 return val
2d091820 602 def DrawPoint(self, *_args, **_kwargs):
1fded56b 603 val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs)
70551f47 604 return val
2d091820 605 def DrawRectangle(self, *_args, **_kwargs):
1fded56b 606 val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs)
70551f47 607 return val
b2a2e5bf 608 def DrawRectangleRect(self, *_args, **_kwargs):
1fded56b 609 val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs)
b2a2e5bf 610 return val
56f5d962 611 def DrawRotatedText(self, *_args, **_kwargs):
1fded56b 612 val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs)
56f5d962 613 return val
2d091820 614 def DrawRoundedRectangle(self, *_args, **_kwargs):
1fded56b 615 val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs)
70551f47 616 return val
2d091820 617 def DrawSpline(self, *_args, **_kwargs):
1fded56b 618 val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs)
70551f47 619 return val
2d091820 620 def DrawText(self, *_args, **_kwargs):
1fded56b 621 val = gdic.wxDC_DrawText(self, *_args, **_kwargs)
70551f47 622 return val
2d091820 623 def EndDoc(self, *_args, **_kwargs):
1fded56b 624 val = gdic.wxDC_EndDoc(self, *_args, **_kwargs)
70551f47 625 return val
2d091820 626 def EndDrawing(self, *_args, **_kwargs):
1fded56b 627 val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs)
70551f47 628 return val
2d091820 629 def EndPage(self, *_args, **_kwargs):
1fded56b 630 val = gdic.wxDC_EndPage(self, *_args, **_kwargs)
70551f47 631 return val
2d091820 632 def FloodFill(self, *_args, **_kwargs):
1fded56b 633 val = gdic.wxDC_FloodFill(self, *_args, **_kwargs)
70551f47 634 return val
2d091820 635 def GetBackground(self, *_args, **_kwargs):
1fded56b 636 val = gdic.wxDC_GetBackground(self, *_args, **_kwargs)
3e212503 637 if val: val = wxBrushPtr(val) ; val.thisown = 1
70551f47 638 return val
2d091820 639 def GetBrush(self, *_args, **_kwargs):
1fded56b 640 val = gdic.wxDC_GetBrush(self, *_args, **_kwargs)
3e212503 641 if val: val = wxBrushPtr(val) ; val.thisown = 1
70551f47 642 return val
2d091820 643 def GetCharHeight(self, *_args, **_kwargs):
1fded56b 644 val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs)
70551f47 645 return val
2d091820 646 def GetCharWidth(self, *_args, **_kwargs):
1fded56b 647 val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs)
70551f47 648 return val
2d091820 649 def GetClippingBox(self, *_args, **_kwargs):
1fded56b 650 val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs)
70551f47 651 return val
2d091820 652 def GetFont(self, *_args, **_kwargs):
1fded56b 653 val = gdic.wxDC_GetFont(self, *_args, **_kwargs)
3e212503 654 if val: val = wxFontPtr(val) ; val.thisown = 1
70551f47 655 return val
2d091820 656 def GetLogicalFunction(self, *_args, **_kwargs):
1fded56b 657 val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs)
70551f47 658 return val
e02c03a4 659 def GetLogicalScale(self, *_args, **_kwargs):
1fded56b 660 val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs)
e02c03a4 661 return val
2d091820 662 def GetMapMode(self, *_args, **_kwargs):
1fded56b 663 val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs)
70551f47 664 return val
2d091820 665 def GetOptimization(self, *_args, **_kwargs):
1fded56b 666 val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs)
70551f47 667 return val
2d091820 668 def GetPen(self, *_args, **_kwargs):
1fded56b 669 val = gdic.wxDC_GetPen(self, *_args, **_kwargs)
3e212503 670 if val: val = wxPenPtr(val) ; val.thisown = 1
70551f47 671 return val
2d091820 672 def GetPixel(self, *_args, **_kwargs):
1fded56b 673 val = gdic.wxDC_GetPixel(self, *_args, **_kwargs)
2d091820 674 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 675 return val
2d091820 676 def GetSizeTuple(self, *_args, **_kwargs):
1fded56b 677 val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs)
d24a34bb 678 return val
2d091820 679 def GetSize(self, *_args, **_kwargs):
1fded56b 680 val = gdic.wxDC_GetSize(self, *_args, **_kwargs)
2d091820 681 if val: val = wxSizePtr(val) ; val.thisown = 1
70551f47 682 return val
e02c03a4 683 def GetSizeMM(self, *_args, **_kwargs):
1fded56b 684 val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs)
e02c03a4
RD
685 if val: val = wxSizePtr(val) ; val.thisown = 1
686 return val
2d091820 687 def GetTextBackground(self, *_args, **_kwargs):
1fded56b 688 val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs)
84a81942 689 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 690 return val
2d091820 691 def GetTextExtent(self, *_args, **_kwargs):
1fded56b 692 val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs)
70551f47 693 return val
2d091820 694 def GetFullTextExtent(self, *_args, **_kwargs):
1fded56b 695 val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs)
21f8d7ea 696 return val
b67a9327 697 def GetMultiLineTextExtent(self, *_args, **_kwargs):
1fded56b 698 val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs)
b67a9327 699 return val
2d091820 700 def GetTextForeground(self, *_args, **_kwargs):
1fded56b 701 val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs)
84a81942 702 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 703 return val
e02c03a4 704 def GetUserScale(self, *_args, **_kwargs):
1fded56b 705 val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs)
e02c03a4 706 return val
2d091820 707 def LogicalToDeviceX(self, *_args, **_kwargs):
1fded56b 708 val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs)
70551f47 709 return val
2d091820 710 def LogicalToDeviceXRel(self, *_args, **_kwargs):
1fded56b 711 val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs)
70551f47 712 return val
2d091820 713 def LogicalToDeviceY(self, *_args, **_kwargs):
1fded56b 714 val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs)
70551f47 715 return val
2d091820 716 def LogicalToDeviceYRel(self, *_args, **_kwargs):
1fded56b 717 val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs)
70551f47 718 return val
2d091820 719 def MaxX(self, *_args, **_kwargs):
1fded56b 720 val = gdic.wxDC_MaxX(self, *_args, **_kwargs)
70551f47 721 return val
2d091820 722 def MaxY(self, *_args, **_kwargs):
1fded56b 723 val = gdic.wxDC_MaxY(self, *_args, **_kwargs)
70551f47 724 return val
2d091820 725 def MinX(self, *_args, **_kwargs):
1fded56b 726 val = gdic.wxDC_MinX(self, *_args, **_kwargs)
70551f47 727 return val
2d091820 728 def MinY(self, *_args, **_kwargs):
1fded56b 729 val = gdic.wxDC_MinY(self, *_args, **_kwargs)
70551f47 730 return val
2d091820 731 def Ok(self, *_args, **_kwargs):
1fded56b 732 val = gdic.wxDC_Ok(self, *_args, **_kwargs)
70551f47 733 return val
2d091820 734 def SetDeviceOrigin(self, *_args, **_kwargs):
1fded56b 735 val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs)
70551f47 736 return val
2d091820 737 def SetBackground(self, *_args, **_kwargs):
1fded56b 738 val = gdic.wxDC_SetBackground(self, *_args, **_kwargs)
70551f47 739 return val
2d091820 740 def SetBackgroundMode(self, *_args, **_kwargs):
1fded56b 741 val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs)
70551f47 742 return val
2d091820 743 def SetClippingRegion(self, *_args, **_kwargs):
1fded56b 744 val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs)
70551f47 745 return val
059a841c 746 def SetClippingRegionAsRegion(self, *_args, **_kwargs):
1fded56b 747 val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs)
059a841c 748 return val
b2a2e5bf 749 def SetClippingRect(self, *_args, **_kwargs):
1fded56b 750 val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs)
b2a2e5bf 751 return val
2d091820 752 def SetPalette(self, *_args, **_kwargs):
1fded56b 753 val = gdic.wxDC_SetPalette(self, *_args, **_kwargs)
70551f47 754 return val
2d091820 755 def SetBrush(self, *_args, **_kwargs):
1fded56b 756 val = gdic.wxDC_SetBrush(self, *_args, **_kwargs)
70551f47 757 return val
2d091820 758 def SetFont(self, *_args, **_kwargs):
1fded56b 759 val = gdic.wxDC_SetFont(self, *_args, **_kwargs)
70551f47 760 return val
2d091820 761 def SetLogicalFunction(self, *_args, **_kwargs):
1fded56b 762 val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs)
70551f47 763 return val
e02c03a4 764 def SetLogicalScale(self, *_args, **_kwargs):
1fded56b 765 val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs)
e02c03a4 766 return val
2d091820 767 def SetMapMode(self, *_args, **_kwargs):
1fded56b 768 val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs)
70551f47 769 return val
2d091820 770 def SetOptimization(self, *_args, **_kwargs):
1fded56b 771 val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs)
70551f47 772 return val
2d091820 773 def SetPen(self, *_args, **_kwargs):
1fded56b 774 val = gdic.wxDC_SetPen(self, *_args, **_kwargs)
70551f47 775 return val
2d091820 776 def SetTextBackground(self, *_args, **_kwargs):
1fded56b 777 val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs)
70551f47 778 return val
2d091820 779 def SetTextForeground(self, *_args, **_kwargs):
1fded56b 780 val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs)
70551f47 781 return val
2d091820 782 def SetUserScale(self, *_args, **_kwargs):
1fded56b 783 val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs)
70551f47 784 return val
2d091820 785 def StartDoc(self, *_args, **_kwargs):
1fded56b 786 val = gdic.wxDC_StartDoc(self, *_args, **_kwargs)
70551f47 787 return val
2d091820 788 def StartPage(self, *_args, **_kwargs):
1fded56b 789 val = gdic.wxDC_StartPage(self, *_args, **_kwargs)
70551f47 790 return val
2d091820 791 def DrawBitmap(self, *_args, **_kwargs):
1fded56b 792 val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs)
70551f47 793 return val
e02c03a4 794 def CanDrawBitmap(self, *_args, **_kwargs):
1fded56b 795 val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs)
e02c03a4
RD
796 return val
797 def CanGetTextExtent(self, *_args, **_kwargs):
1fded56b 798 val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs)
e02c03a4
RD
799 return val
800 def GetDepth(self, *_args, **_kwargs):
1fded56b 801 val = gdic.wxDC_GetDepth(self, *_args, **_kwargs)
e02c03a4
RD
802 return val
803 def GetPPI(self, *_args, **_kwargs):
1fded56b 804 val = gdic.wxDC_GetPPI(self, *_args, **_kwargs)
e02c03a4
RD
805 if val: val = wxSizePtr(val) ; val.thisown = 1
806 return val
807 def GetLogicalOrigin(self, *_args, **_kwargs):
1fded56b 808 val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs)
e02c03a4
RD
809 return val
810 def SetLogicalOrigin(self, *_args, **_kwargs):
1fded56b 811 val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs)
e02c03a4
RD
812 return val
813 def GetDeviceOrigin(self, *_args, **_kwargs):
1fded56b 814 val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs)
e02c03a4
RD
815 return val
816 def SetAxisOrientation(self, *_args, **_kwargs):
1fded56b 817 val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs)
e02c03a4 818 return val
f6bcfd97 819 def CalcBoundingBox(self, *_args, **_kwargs):
1fded56b 820 val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs)
f6bcfd97
BP
821 return val
822 def ResetBoundingBox(self, *_args, **_kwargs):
1fded56b 823 val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs)
f6bcfd97 824 return val
3bcd5e1c 825 def GetBoundingBox(self, *_args, **_kwargs):
1fded56b 826 val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs)
3bcd5e1c
RD
827 return val
828 def _DrawPointList(self, *_args, **_kwargs):
1fded56b 829 val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs)
3bcd5e1c
RD
830 return val
831 def _DrawLineList(self, *_args, **_kwargs):
1fded56b 832 val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs)
3bcd5e1c 833 return val
b67a9327 834 def _DrawRectangleList(self, *_args, **_kwargs):
1fded56b 835 val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs)
b67a9327
RD
836 return val
837 def _DrawEllipseList(self, *_args, **_kwargs):
1fded56b 838 val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs)
b67a9327
RD
839 return val
840 def _DrawPolygonList(self, *_args, **_kwargs):
1fded56b 841 val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs)
b67a9327
RD
842 return val
843 def _DrawTextList(self, *_args, **_kwargs):
1fded56b 844 val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs)
b67a9327 845 return val
70551f47 846 def __repr__(self):
1fded56b
RD
847 return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
848 def __nonzero__(self): return self.Ok()
3bcd5e1c
RD
849
850 def DrawPointList(self, points, pens=None):
851 if pens is None:
852 pens = []
853 elif isinstance(pens, wxPenPtr):
854 pens = [pens]
855 elif len(pens) != len(points):
856 raise ValueError('points and pens must have same length')
b67a9327
RD
857 return self._DrawPointList(points, pens, [])
858
3bcd5e1c
RD
859
860 def DrawLineList(self, lines, pens=None):
861 if pens is None:
862 pens = []
863 elif isinstance(pens, wxPenPtr):
864 pens = [pens]
865 elif len(pens) != len(lines):
866 raise ValueError('lines and pens must have same length')
b67a9327
RD
867 return self._DrawLineList(lines, pens, [])
868
869
870 def DrawRectangleList(self, rectangles, pens=None, brushes=None):
871 if pens is None:
872 pens = []
873 elif isinstance(pens, wxPenPtr):
874 pens = [pens]
875 elif len(pens) != len(rectangles):
876 raise ValueError('rectangles and pens must have same length')
877 if brushes is None:
878 brushes = []
879 elif isinstance(brushes, wxBrushPtr):
880 brushes = [brushes]
881 elif len(brushes) != len(rectangles):
882 raise ValueError('rectangles and brushes must have same length')
883 return self._DrawRectangleList(rectangles, pens, brushes)
884
885
886 def DrawEllipseList(self, ellipses, pens=None, brushes=None):
887 if pens is None:
888 pens = []
889 elif isinstance(pens, wxPenPtr):
890 pens = [pens]
891 elif len(pens) != len(ellipses):
892 raise ValueError('ellipses and pens must have same length')
893 if brushes is None:
894 brushes = []
895 elif isinstance(brushes, wxBrushPtr):
896 brushes = [brushes]
897 elif len(brushes) != len(ellipses):
898 raise ValueError('ellipses and brushes must have same length')
899 return self._DrawEllipseList(ellipses, pens, brushes)
900
901
902 def DrawPolygonList(self, polygons, pens=None, brushes=None):
903 ## Note: This does not currently support fill style or offset
904 ## you can always use the non-List version if need be.
905 ## I really would like to support fill-style, however,
906 ## but wxODDEVEN_RULE does not appear to be defined at the Python level
907 ## [It's in wx.py... --Robin]
908 if pens is None:
909 pens = []
910 elif isinstance(pens, wxPenPtr):
911 pens = [pens]
912 elif len(pens) != len(polygons):
913 raise ValueError('polygons and pens must have same length')
914 if brushes is None:
915 brushes = []
916 elif isinstance(brushes, wxBrushPtr):
917 brushes = [brushes]
918 elif len(brushes) != len(polygons):
919 raise ValueError('polygons and brushes must have same length')
920 return self._DrawPolygonList(polygons, pens, brushes)
921
922
923 def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None):
924 ## NOTE: this does not currently support changing the font
925 ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode)
926 ## If you want backgounds to do anything.
927 if type(textList) == type(''):
928 textList = [textList]
929 elif len(textList) != len(coords):
930 raise ValueError('textlist and coords must have same length')
931 if foregrounds is None:
932 foregrounds = []
933 elif isinstance(foregrounds, wxColourPtr):
934 foregrounds = [foregrounds]
935 elif len(foregrounds) != len(coords):
936 raise ValueError('foregrounds and coords must have same length')
937 if backgrounds is None:
938 backgrounds = []
939 elif isinstance(backgrounds, wxColourPtr):
940 backgrounds = [backgrounds]
941 elif len(backgrounds) != len(coords):
942 raise ValueError('backgrounds and coords must have same length')
943 return self._DrawTextList(textList, coords, foregrounds, backgrounds)
3bcd5e1c 944
70551f47
RD
945class wxDC(wxDCPtr):
946 def __init__(self,this):
947 self.this = this
948
949
950
951
952class wxMemoryDCPtr(wxDCPtr):
953 def __init__(self,this):
954 self.this = this
955 self.thisown = 0
2d091820 956 def SelectObject(self, *_args, **_kwargs):
1fded56b 957 val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs)
70551f47
RD
958 return val
959 def __repr__(self):
1fded56b 960 return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70551f47 961class wxMemoryDC(wxMemoryDCPtr):
2d091820 962 def __init__(self,*_args,**_kwargs):
1fded56b 963 self.this = gdic.new_wxMemoryDC(*_args,**_kwargs)
70551f47
RD
964 self.thisown = 1
965
966
967
968
a884bee5
RD
969class wxBufferedDCPtr(wxMemoryDCPtr):
970 def __init__(self,this):
971 self.this = this
972 self.thisown = 0
301dfd67 973 def UnMask(self, *_args, **_kwargs):
1fded56b 974 val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs)
301dfd67 975 return val
a884bee5 976 def __repr__(self):
1fded56b 977 return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
a884bee5
RD
978class wxBufferedDC(wxBufferedDCPtr):
979 def __init__(self,*_args,**_kwargs):
1fded56b 980 self.this = gdic.new_wxBufferedDC(*_args,**_kwargs)
a884bee5 981 self.thisown = 1
301dfd67 982 self._dc = _args[0] # save a ref so the other dc won't be deleted before self
a884bee5
RD
983
984
985
986def wxBufferedDCInternalBuffer(*_args,**_kwargs):
1fded56b 987 val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs))
a884bee5 988 val.thisown = 1
301dfd67 989 val._dc = _args[0] # save a ref so the other dc won't be deleted before self
a884bee5
RD
990 return val
991
992
993class wxBufferedPaintDCPtr(wxBufferedDCPtr):
994 def __init__(self,this):
995 self.this = this
996 self.thisown = 0
997 def __repr__(self):
1fded56b 998 return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
a884bee5
RD
999class wxBufferedPaintDC(wxBufferedPaintDCPtr):
1000 def __init__(self,*_args,**_kwargs):
1fded56b 1001 self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs)
a884bee5
RD
1002 self.thisown = 1
1003
1004
1005
1006
70551f47
RD
1007class wxScreenDCPtr(wxDCPtr):
1008 def __init__(self,this):
1009 self.this = this
1010 self.thisown = 0
2fc99549 1011 def StartDrawingOnTopWin(self, *_args, **_kwargs):
1fded56b 1012 val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs)
2fc99549 1013 return val
2d091820 1014 def StartDrawingOnTop(self, *_args, **_kwargs):
1fded56b 1015 val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs)
70551f47 1016 return val
2d091820 1017 def EndDrawingOnTop(self, *_args, **_kwargs):
1fded56b 1018 val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs)
70551f47
RD
1019 return val
1020 def __repr__(self):
1fded56b 1021 return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70551f47 1022class wxScreenDC(wxScreenDCPtr):
2d091820 1023 def __init__(self,*_args,**_kwargs):
1fded56b 1024 self.this = gdic.new_wxScreenDC(*_args,**_kwargs)
70551f47
RD
1025 self.thisown = 1
1026
1027
1028
1029
1030class wxClientDCPtr(wxDCPtr):
1031 def __init__(self,this):
1032 self.this = this
1033 self.thisown = 0
1034 def __repr__(self):
1fded56b 1035 return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70551f47 1036class wxClientDC(wxClientDCPtr):
2d091820 1037 def __init__(self,*_args,**_kwargs):
1fded56b 1038 self.this = gdic.new_wxClientDC(*_args,**_kwargs)
70551f47
RD
1039 self.thisown = 1
1040
1041
1042
1043
1044class wxPaintDCPtr(wxDCPtr):
1045 def __init__(self,this):
1046 self.this = this
1047 self.thisown = 0
1048 def __repr__(self):
1fded56b 1049 return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70551f47 1050class wxPaintDC(wxPaintDCPtr):
2d091820 1051 def __init__(self,*_args,**_kwargs):
1fded56b 1052 self.this = gdic.new_wxPaintDC(*_args,**_kwargs)
70551f47
RD
1053 self.thisown = 1
1054
1055
1056
1057
c95e68d8
RD
1058class wxWindowDCPtr(wxDCPtr):
1059 def __init__(self,this):
1060 self.this = this
1061 self.thisown = 0
1062 def __repr__(self):
1fded56b 1063 return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
c95e68d8 1064class wxWindowDC(wxWindowDCPtr):
2d091820 1065 def __init__(self,*_args,**_kwargs):
1fded56b 1066 self.this = gdic.new_wxWindowDC(*_args,**_kwargs)
c95e68d8
RD
1067 self.thisown = 1
1068
1069
1070
1071
3ef86e32
RD
1072class wxMirrorDCPtr(wxDCPtr):
1073 def __init__(self,this):
1074 self.this = this
1075 self.thisown = 0
1076 def __repr__(self):
1077 return "<%s.%s instance; proxy of C++ wxMirrorDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1078class wxMirrorDC(wxMirrorDCPtr):
1079 def __init__(self,*_args,**_kwargs):
1080 self.this = gdic.new_wxMirrorDC(*_args,**_kwargs)
1081 self.thisown = 1
1082
1083
1084
1085
9df61a29 1086class wxPalettePtr(wxGDIObjectPtr):
105e45b9
RD
1087 def __init__(self,this):
1088 self.this = this
1089 self.thisown = 0
b67a9327
RD
1090 def __del__(self, delfunc=gdic.delete_wxPalette):
1091 if self.thisown == 1:
1092 try:
1093 delfunc(self)
1094 except:
1095 pass
2d091820 1096 def GetPixel(self, *_args, **_kwargs):
1fded56b 1097 val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs)
105e45b9 1098 return val
2d091820 1099 def GetRGB(self, *_args, **_kwargs):
1fded56b 1100 val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs)
105e45b9 1101 return val
2d091820 1102 def Ok(self, *_args, **_kwargs):
1fded56b 1103 val = gdic.wxPalette_Ok(self, *_args, **_kwargs)
105e45b9
RD
1104 return val
1105 def __repr__(self):
1fded56b
RD
1106 return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
1107 def __nonzero__(self): return self.Ok()
105e45b9 1108class wxPalette(wxPalettePtr):
2d091820 1109 def __init__(self,*_args,**_kwargs):
1fded56b 1110 self.this = gdic.new_wxPalette(*_args,**_kwargs)
105e45b9
RD
1111 self.thisown = 1
1112
1113
1114
1115
9df61a29 1116class wxImageListPtr(wxObjectPtr):
21f8d7ea
RD
1117 def __init__(self,this):
1118 self.this = this
1119 self.thisown = 0
b67a9327
RD
1120 def __del__(self, delfunc=gdic.delete_wxImageList):
1121 if self.thisown == 1:
1122 try:
1123 delfunc(self)
1124 except:
1125 pass
2d091820 1126 def Add(self, *_args, **_kwargs):
1fded56b 1127 val = gdic.wxImageList_Add(self, *_args, **_kwargs)
21f8d7ea 1128 return val
f6bcfd97 1129 def AddWithColourMask(self, *_args, **_kwargs):
1fded56b 1130 val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs)
f6bcfd97
BP
1131 return val
1132 def AddIcon(self, *_args, **_kwargs):
1fded56b 1133 val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs)
f6bcfd97 1134 return val
2d091820 1135 def Replace(self, *_args, **_kwargs):
1fded56b 1136 val = gdic.wxImageList_Replace(self, *_args, **_kwargs)
21f8d7ea 1137 return val
2d091820 1138 def Draw(self, *_args, **_kwargs):
1fded56b 1139 val = gdic.wxImageList_Draw(self, *_args, **_kwargs)
21f8d7ea 1140 return val
2d091820 1141 def GetImageCount(self, *_args, **_kwargs):
1fded56b 1142 val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs)
21f8d7ea 1143 return val
2d091820 1144 def Remove(self, *_args, **_kwargs):
1fded56b 1145 val = gdic.wxImageList_Remove(self, *_args, **_kwargs)
21f8d7ea 1146 return val
2d091820 1147 def RemoveAll(self, *_args, **_kwargs):
1fded56b 1148 val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs)
21f8d7ea 1149 return val
f6bcfd97 1150 def GetSize(self, *_args, **_kwargs):
1fded56b 1151 val = gdic.wxImageList_GetSize(self, *_args, **_kwargs)
f6bcfd97 1152 return val
21f8d7ea 1153 def __repr__(self):
1fded56b 1154 return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
21f8d7ea 1155class wxImageList(wxImageListPtr):
2d091820 1156 def __init__(self,*_args,**_kwargs):
1fded56b 1157 self.this = gdic.new_wxImageList(*_args,**_kwargs)
21f8d7ea
RD
1158 self.thisown = 1
1159
1160
1161
1162
9df61a29
RD
1163class wxRegionPtr(wxGDIObjectPtr):
1164 def __init__(self,this):
1165 self.this = this
1166 self.thisown = 0
b67a9327
RD
1167 def __del__(self, delfunc=gdic.delete_wxRegion):
1168 if self.thisown == 1:
1169 try:
1170 delfunc(self)
1171 except:
1172 pass
9df61a29 1173 def Clear(self, *_args, **_kwargs):
1fded56b 1174 val = gdic.wxRegion_Clear(self, *_args, **_kwargs)
9df61a29 1175 return val
8cb49012 1176 def Offset(self, *_args, **_kwargs):
1fded56b 1177 val = gdic.wxRegion_Offset(self, *_args, **_kwargs)
8cb49012 1178 return val
9df61a29 1179 def Contains(self, *_args, **_kwargs):
1fded56b 1180 val = gdic.wxRegion_Contains(self, *_args, **_kwargs)
9df61a29
RD
1181 return val
1182 def ContainsPoint(self, *_args, **_kwargs):
1fded56b 1183 val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs)
9df61a29
RD
1184 return val
1185 def ContainsRect(self, *_args, **_kwargs):
1fded56b 1186 val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs)
9df61a29
RD
1187 return val
1188 def ContainsRectDim(self, *_args, **_kwargs):
1fded56b 1189 val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs)
9df61a29
RD
1190 return val
1191 def GetBox(self, *_args, **_kwargs):
1fded56b 1192 val = gdic.wxRegion_GetBox(self, *_args, **_kwargs)
9df61a29
RD
1193 if val: val = wxRectPtr(val) ; val.thisown = 1
1194 return val
1195 def Intersect(self, *_args, **_kwargs):
1fded56b 1196 val = gdic.wxRegion_Intersect(self, *_args, **_kwargs)
9df61a29
RD
1197 return val
1198 def IntersectRect(self, *_args, **_kwargs):
1fded56b 1199 val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs)
9df61a29
RD
1200 return val
1201 def IntersectRegion(self, *_args, **_kwargs):
1fded56b 1202 val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs)
9df61a29
RD
1203 return val
1204 def IsEmpty(self, *_args, **_kwargs):
1fded56b 1205 val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs)
9df61a29
RD
1206 return val
1207 def Union(self, *_args, **_kwargs):
1fded56b 1208 val = gdic.wxRegion_Union(self, *_args, **_kwargs)
9df61a29
RD
1209 return val
1210 def UnionRect(self, *_args, **_kwargs):
1fded56b 1211 val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs)
9df61a29
RD
1212 return val
1213 def UnionRegion(self, *_args, **_kwargs):
1fded56b 1214 val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs)
9df61a29
RD
1215 return val
1216 def Subtract(self, *_args, **_kwargs):
1fded56b 1217 val = gdic.wxRegion_Subtract(self, *_args, **_kwargs)
9df61a29
RD
1218 return val
1219 def SubtractRect(self, *_args, **_kwargs):
1fded56b 1220 val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs)
9df61a29
RD
1221 return val
1222 def SubtractRegion(self, *_args, **_kwargs):
1fded56b 1223 val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs)
9df61a29
RD
1224 return val
1225 def Xor(self, *_args, **_kwargs):
1fded56b 1226 val = gdic.wxRegion_Xor(self, *_args, **_kwargs)
9df61a29
RD
1227 return val
1228 def XorRect(self, *_args, **_kwargs):
1fded56b 1229 val = gdic.wxRegion_XorRect(self, *_args, **_kwargs)
9df61a29
RD
1230 return val
1231 def XorRegion(self, *_args, **_kwargs):
1fded56b
RD
1232 val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs)
1233 return val
1234 def ConvertToBitmap(self, *_args, **_kwargs):
1235 val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs)
1236 if val: val = wxBitmapPtr(val) ; val.thisown = 1
1237 return val
1238 def UnionBitmap(self, *_args, **_kwargs):
1239 val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs)
9df61a29
RD
1240 return val
1241 def __repr__(self):
1fded56b 1242 return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9df61a29
RD
1243class wxRegion(wxRegionPtr):
1244 def __init__(self,*_args,**_kwargs):
1fded56b 1245 self.this = gdic.new_wxRegion(*_args,**_kwargs)
9df61a29
RD
1246 self.thisown = 1
1247
1248
1249
3efe9549 1250def wxRegionFromPoints(*_args,**_kwargs):
1fded56b
RD
1251 val = wxRegionPtr(gdic.new_wxRegionFromPoints(*_args,**_kwargs))
1252 val.thisown = 1
1253 return val
1254
1255def wxRegionFromBitmap(*_args,**_kwargs):
1256 val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs))
3efe9549
RD
1257 val.thisown = 1
1258 return val
1259
9df61a29
RD
1260
1261class wxRegionIteratorPtr(wxObjectPtr):
1262 def __init__(self,this):
1263 self.this = this
1264 self.thisown = 0
b67a9327
RD
1265 def __del__(self, delfunc=gdic.delete_wxRegionIterator):
1266 if self.thisown == 1:
1267 try:
1268 delfunc(self)
1269 except:
1270 pass
9df61a29 1271 def GetX(self, *_args, **_kwargs):
1fded56b 1272 val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs)
9df61a29
RD
1273 return val
1274 def GetY(self, *_args, **_kwargs):
1fded56b 1275 val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs)
9df61a29
RD
1276 return val
1277 def GetW(self, *_args, **_kwargs):
1fded56b 1278 val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs)
9df61a29
RD
1279 return val
1280 def GetWidth(self, *_args, **_kwargs):
1fded56b 1281 val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs)
9df61a29
RD
1282 return val
1283 def GetH(self, *_args, **_kwargs):
1fded56b 1284 val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs)
9df61a29
RD
1285 return val
1286 def GetHeight(self, *_args, **_kwargs):
1fded56b 1287 val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs)
9df61a29
RD
1288 return val
1289 def GetRect(self, *_args, **_kwargs):
1fded56b 1290 val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs)
9df61a29
RD
1291 if val: val = wxRectPtr(val) ; val.thisown = 1
1292 return val
1293 def HaveRects(self, *_args, **_kwargs):
1fded56b 1294 val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs)
9df61a29
RD
1295 return val
1296 def Reset(self, *_args, **_kwargs):
1fded56b 1297 val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs)
9df61a29
RD
1298 return val
1299 def Next(self, *_args, **_kwargs):
1fded56b 1300 val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs)
9df61a29 1301 return val
1a8372ba
RD
1302 def __nonzero__(self, *_args, **_kwargs):
1303 val = gdic.wxRegionIterator___nonzero__(self, *_args, **_kwargs)
1304 return val
9df61a29 1305 def __repr__(self):
1fded56b 1306 return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
9df61a29
RD
1307class wxRegionIterator(wxRegionIteratorPtr):
1308 def __init__(self,*_args,**_kwargs):
1fded56b 1309 self.this = gdic.new_wxRegionIterator(*_args,**_kwargs)
9df61a29
RD
1310 self.thisown = 1
1311
1312
1313
1314
70551f47
RD
1315
1316
1317#-------------- FUNCTION WRAPPERS ------------------
1318
2d091820 1319def wxEmptyBitmap(*_args, **_kwargs):
1fded56b 1320 val = gdic.wxEmptyBitmap(*_args,**_kwargs)
2d091820 1321 if val: val = wxBitmapPtr(val); val.thisown = 1
70551f47
RD
1322 return val
1323
fbcadfca 1324def wxBitmapFromXPMData(*_args, **_kwargs):
1fded56b 1325 val = gdic.wxBitmapFromXPMData(*_args,**_kwargs)
fbcadfca
RD
1326 if val: val = wxBitmapPtr(val); val.thisown = 1
1327 return val
1328
1329def wxBitmapFromIcon(*_args, **_kwargs):
1fded56b 1330 val = gdic.wxBitmapFromIcon(*_args,**_kwargs)
fbcadfca
RD
1331 if val: val = wxBitmapPtr(val); val.thisown = 1
1332 return val
1333
9d6da64a 1334def wxBitmapFromBits(*_args, **_kwargs):
1fded56b 1335 val = gdic.wxBitmapFromBits(*_args,**_kwargs)
9d6da64a
RD
1336 if val: val = wxBitmapPtr(val); val.thisown = 1
1337 return val
1338
2d091820 1339def wxMaskColour(*_args, **_kwargs):
1fded56b 1340 val = gdic.wxMaskColour(*_args,**_kwargs)
2d091820 1341 if val: val = wxMaskPtr(val); val.thisown = 1
70551f47
RD
1342 return val
1343
fbcadfca 1344def wxEmptyIcon(*_args, **_kwargs):
1fded56b 1345 val = gdic.wxEmptyIcon(*_args,**_kwargs)
fbcadfca
RD
1346 if val: val = wxIconPtr(val); val.thisown = 1
1347 return val
1348
1349def wxIconFromXPMData(*_args, **_kwargs):
1fded56b 1350 val = gdic.wxIconFromXPMData(*_args,**_kwargs)
fbcadfca
RD
1351 if val: val = wxIconPtr(val); val.thisown = 1
1352 return val
1353
4be61064 1354def wxIconFromBitmap(*_args, **_kwargs):
1fded56b 1355 val = gdic.wxIconFromBitmap(*_args,**_kwargs)
4be61064
RD
1356 if val: val = wxIconPtr(val); val.thisown = 1
1357 return val
1358
3ef86e32
RD
1359def wxIconFromLocation(*_args, **_kwargs):
1360 val = gdic.wxIconFromLocation(*_args,**_kwargs)
1361 if val: val = wxIconPtr(val); val.thisown = 1
1362 return val
1363
2d091820 1364def wxStockCursor(*_args, **_kwargs):
1fded56b 1365 val = gdic.wxStockCursor(*_args,**_kwargs)
2d091820 1366 if val: val = wxCursorPtr(val); val.thisown = 1
70551f47
RD
1367 return val
1368
b67a9327 1369def wxCursorFromImage(*_args, **_kwargs):
1fded56b
RD
1370 val = gdic.wxCursorFromImage(*_args,**_kwargs)
1371 if val: val = wxCursorPtr(val); val.thisown = 1
1372 return val
1373
1374def wxCursorFromBits(*_args, **_kwargs):
1375 val = gdic.wxCursorFromBits(*_args,**_kwargs)
b67a9327
RD
1376 if val: val = wxCursorPtr(val); val.thisown = 1
1377 return val
1378
2d091820 1379def wxNamedColour(*_args, **_kwargs):
1fded56b 1380 val = gdic.wxNamedColour(*_args,**_kwargs)
2d091820 1381 if val: val = wxColourPtr(val); val.thisown = 1
70551f47
RD
1382 return val
1383
2d091820 1384def wxMemoryDCFromDC(*_args, **_kwargs):
1fded56b 1385 val = gdic.wxMemoryDCFromDC(*_args,**_kwargs)
2d091820 1386 if val: val = wxMemoryDCPtr(val); val.thisown = 1
70551f47
RD
1387 return val
1388
1389
1390
1391#-------------- VARIABLE WRAPPERS ------------------
1392
3e212503
RD
1393wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
1394wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
1395wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
1396wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
1397wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
1398wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
1399wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
1400wxOutRegion = gdic.wxOutRegion
1401wxPartRegion = gdic.wxPartRegion
1402wxInRegion = gdic.wxInRegion
70551f47
RD
1403cvar = gdic.cvar
1404wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
1405wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
1406wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
1407wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
1408wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
1409wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
1410wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
1411wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
1412wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
1413wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
1414wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
1415wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
1416wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
1417wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
1418wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
1419wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
1420wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
1421wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
1422wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
1423wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
1424wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
1425wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
1426wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
1427wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
1428wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
1429wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
1430wxRED = wxColourPtr(gdic.cvar.wxRED)
1431wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
1432wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
1433wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
1434wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
1435wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
1436wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
1437wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
1438wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
1439wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
1440wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
1441wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
1442wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
21f8d7ea 1443wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
70551f47
RD
1444wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
1445wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
5e40f9dd
RD
1446wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
1447wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
65191ae8 1448wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList)
5e40f9dd 1449wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)