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