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