]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/gdi.py
fixed clipping of items with icons text in report mode
[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
9416aa89 247class wxFontPtr(wxGDIObjectPtr):
1dc2f865
RD
248 def __init__(self,this):
249 self.this = this
250 self.thisown = 0
0569df0f
RD
251 def __del__(self,gdic=gdic):
252 if self.thisown == 1 :
253 gdic.delete_wxFont(self)
694759cf
RD
254 def Ok(self, *_args, **_kwargs):
255 val = apply(gdic.wxFont_Ok,(self,) + _args, _kwargs)
256 return val
1d99702e
RD
257 def GetFaceName(self, *_args, **_kwargs):
258 val = apply(gdic.wxFont_GetFaceName,(self,) + _args, _kwargs)
1dc2f865 259 return val
1d99702e
RD
260 def GetFamily(self, *_args, **_kwargs):
261 val = apply(gdic.wxFont_GetFamily,(self,) + _args, _kwargs)
1dc2f865 262 return val
1d99702e
RD
263 def GetFontId(self, *_args, **_kwargs):
264 val = apply(gdic.wxFont_GetFontId,(self,) + _args, _kwargs)
1dc2f865 265 return val
1d99702e
RD
266 def GetPointSize(self, *_args, **_kwargs):
267 val = apply(gdic.wxFont_GetPointSize,(self,) + _args, _kwargs)
1dc2f865 268 return val
1d99702e
RD
269 def GetStyle(self, *_args, **_kwargs):
270 val = apply(gdic.wxFont_GetStyle,(self,) + _args, _kwargs)
1dc2f865 271 return val
1d99702e
RD
272 def GetUnderlined(self, *_args, **_kwargs):
273 val = apply(gdic.wxFont_GetUnderlined,(self,) + _args, _kwargs)
1dc2f865 274 return val
1d99702e
RD
275 def GetWeight(self, *_args, **_kwargs):
276 val = apply(gdic.wxFont_GetWeight,(self,) + _args, _kwargs)
1dc2f865 277 return val
f0261a72
RD
278 def GetEncoding(self, *_args, **_kwargs):
279 val = apply(gdic.wxFont_GetEncoding,(self,) + _args, _kwargs)
280 return val
1d99702e
RD
281 def SetFaceName(self, *_args, **_kwargs):
282 val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs)
1dc2f865 283 return val
1d99702e
RD
284 def SetFamily(self, *_args, **_kwargs):
285 val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs)
1dc2f865 286 return val
1d99702e
RD
287 def SetPointSize(self, *_args, **_kwargs):
288 val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs)
1dc2f865 289 return val
1d99702e
RD
290 def SetStyle(self, *_args, **_kwargs):
291 val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs)
1dc2f865 292 return val
1d99702e
RD
293 def SetUnderlined(self, *_args, **_kwargs):
294 val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs)
1dc2f865 295 return val
1d99702e
RD
296 def SetWeight(self, *_args, **_kwargs):
297 val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs)
1dc2f865 298 return val
f0261a72
RD
299 def SetEncoding(self, *_args, **_kwargs):
300 val = apply(gdic.wxFont_SetEncoding,(self,) + _args, _kwargs)
301 return val
302 def GetFamilyString(self, *_args, **_kwargs):
303 val = apply(gdic.wxFont_GetFamilyString,(self,) + _args, _kwargs)
304 return val
305 def GetStyleString(self, *_args, **_kwargs):
306 val = apply(gdic.wxFont_GetStyleString,(self,) + _args, _kwargs)
307 return val
308 def GetWeightString(self, *_args, **_kwargs):
309 val = apply(gdic.wxFont_GetWeightString,(self,) + _args, _kwargs)
310 return val
1dc2f865 311 def __repr__(self):
1d99702e 312 return "<C wxFont instance at %s>" % (self.this,)
1dc2f865 313class wxFont(wxFontPtr):
1d99702e
RD
314 def __init__(self,*_args,**_kwargs):
315 self.this = apply(gdic.new_wxFont,_args,_kwargs)
1dc2f865 316 self.thisown = 1
8ab979d7
RD
317
318
8ab979d7
RD
319
320
9416aa89 321class wxFontListPtr(wxObjectPtr):
0569df0f
RD
322 def __init__(self,this):
323 self.this = this
324 self.thisown = 0
325 def AddFont(self, *_args, **_kwargs):
326 val = apply(gdic.wxFontList_AddFont,(self,) + _args, _kwargs)
327 return val
328 def FindOrCreateFont(self, *_args, **_kwargs):
329 val = apply(gdic.wxFontList_FindOrCreateFont,(self,) + _args, _kwargs)
330 if val: val = wxFontPtr(val)
331 return val
332 def RemoveFont(self, *_args, **_kwargs):
333 val = apply(gdic.wxFontList_RemoveFont,(self,) + _args, _kwargs)
334 return val
335 def __repr__(self):
336 return "<C wxFontList instance at %s>" % (self.this,)
337class wxFontList(wxFontListPtr):
338 def __init__(self,this):
339 self.this = this
340
341
342
343
9416aa89 344class wxColourPtr(wxObjectPtr):
1dc2f865
RD
345 def __init__(self,this):
346 self.this = this
347 self.thisown = 0
1d99702e 348 def __del__(self,gdic=gdic):
1dc2f865 349 if self.thisown == 1 :
1d99702e
RD
350 gdic.delete_wxColour(self)
351 def Red(self, *_args, **_kwargs):
352 val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
1dc2f865 353 return val
1d99702e
RD
354 def Green(self, *_args, **_kwargs):
355 val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
1dc2f865 356 return val
1d99702e
RD
357 def Blue(self, *_args, **_kwargs):
358 val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
1dc2f865 359 return val
1d99702e
RD
360 def Ok(self, *_args, **_kwargs):
361 val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
1dc2f865 362 return val
1d99702e
RD
363 def Set(self, *_args, **_kwargs):
364 val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
1dc2f865 365 return val
1d99702e
RD
366 def Get(self, *_args, **_kwargs):
367 val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
1dc2f865
RD
368 return val
369 def __repr__(self):
1d99702e 370 return "<C wxColour instance at %s>" % (self.this,)
9b3d3bc4
RD
371 asTuple = Get
372 def __str__(self): return str(self.asTuple())
373 def __repr__(self): return str(self.asTuple())
1dc2f865 374class wxColour(wxColourPtr):
1d99702e
RD
375 def __init__(self,*_args,**_kwargs):
376 self.this = apply(gdic.new_wxColour,_args,_kwargs)
1dc2f865 377 self.thisown = 1
8ab979d7
RD
378
379
8ab979d7
RD
380
381
9416aa89 382class wxColourDatabasePtr(wxObjectPtr):
0569df0f
RD
383 def __init__(self,this):
384 self.this = this
385 self.thisown = 0
386 def FindColour(self, *_args, **_kwargs):
387 val = apply(gdic.wxColourDatabase_FindColour,(self,) + _args, _kwargs)
388 if val: val = wxColourPtr(val)
389 return val
390 def FindName(self, *_args, **_kwargs):
391 val = apply(gdic.wxColourDatabase_FindName,(self,) + _args, _kwargs)
392 return val
393 def Append(self, *_args, **_kwargs):
394 val = apply(gdic.wxColourDatabase_Append,(self,) + _args, _kwargs)
395 return val
396 def __repr__(self):
397 return "<C wxColourDatabase instance at %s>" % (self.this,)
398class wxColourDatabase(wxColourDatabasePtr):
399 def __init__(self,this):
400 self.this = this
401
402
403
404
9416aa89 405class wxPenPtr(wxGDIObjectPtr):
1dc2f865
RD
406 def __init__(self,this):
407 self.this = this
408 self.thisown = 0
0569df0f
RD
409 def __del__(self,gdic=gdic):
410 if self.thisown == 1 :
411 gdic.delete_wxPen(self)
1d99702e
RD
412 def GetCap(self, *_args, **_kwargs):
413 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
1dc2f865 414 return val
1d99702e
RD
415 def GetColour(self, *_args, **_kwargs):
416 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
25832b3f 417 if val: val = wxColourPtr(val) ; val.thisown = 1
1dc2f865 418 return val
1d99702e
RD
419 def GetJoin(self, *_args, **_kwargs):
420 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
1dc2f865 421 return val
1d99702e
RD
422 def GetStyle(self, *_args, **_kwargs):
423 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
1dc2f865 424 return val
1d99702e
RD
425 def GetWidth(self, *_args, **_kwargs):
426 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
1dc2f865 427 return val
1d99702e
RD
428 def Ok(self, *_args, **_kwargs):
429 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
1dc2f865 430 return val
1d99702e
RD
431 def SetCap(self, *_args, **_kwargs):
432 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
1dc2f865 433 return val
1d99702e
RD
434 def SetColour(self, *_args, **_kwargs):
435 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
1dc2f865 436 return val
1d99702e
RD
437 def SetJoin(self, *_args, **_kwargs):
438 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
1dc2f865 439 return val
1d99702e
RD
440 def SetStyle(self, *_args, **_kwargs):
441 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
1dc2f865 442 return val
1d99702e
RD
443 def SetWidth(self, *_args, **_kwargs):
444 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
1dc2f865 445 return val
1d99702e
RD
446 def GetDashes(self, *_args, **_kwargs):
447 val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
1dc2f865 448 return val
6999b0d8
RD
449 def SetDashes(self, *_args, **_kwargs):
450 val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
451 return val
1d99702e
RD
452 def GetStipple(self, *_args, **_kwargs):
453 val = apply(gdic.wxPen_GetStipple,(self,) + _args, _kwargs)
454 if val: val = wxBitmapPtr(val)
1dc2f865 455 return val
1d99702e
RD
456 def SetStipple(self, *_args, **_kwargs):
457 val = apply(gdic.wxPen_SetStipple,(self,) + _args, _kwargs)
1dc2f865
RD
458 return val
459 def __repr__(self):
1d99702e 460 return "<C wxPen instance at %s>" % (self.this,)
1dc2f865 461class wxPen(wxPenPtr):
1d99702e
RD
462 def __init__(self,*_args,**_kwargs):
463 self.this = apply(gdic.new_wxPen,_args,_kwargs)
1dc2f865 464 self.thisown = 1
8ab979d7
RD
465
466
8ab979d7
RD
467
468
9416aa89 469class wxPenListPtr(wxObjectPtr):
0569df0f
RD
470 def __init__(self,this):
471 self.this = this
472 self.thisown = 0
473 def AddPen(self, *_args, **_kwargs):
474 val = apply(gdic.wxPenList_AddPen,(self,) + _args, _kwargs)
475 return val
476 def FindOrCreatePen(self, *_args, **_kwargs):
477 val = apply(gdic.wxPenList_FindOrCreatePen,(self,) + _args, _kwargs)
478 if val: val = wxPenPtr(val)
479 return val
480 def RemovePen(self, *_args, **_kwargs):
481 val = apply(gdic.wxPenList_RemovePen,(self,) + _args, _kwargs)
482 return val
483 def __repr__(self):
484 return "<C wxPenList instance at %s>" % (self.this,)
485class wxPenList(wxPenListPtr):
486 def __init__(self,this):
487 self.this = this
488
489
490
491
9416aa89 492class wxBrushPtr(wxGDIObjectPtr):
1dc2f865
RD
493 def __init__(self,this):
494 self.this = this
495 self.thisown = 0
0569df0f
RD
496 def __del__(self,gdic=gdic):
497 if self.thisown == 1 :
498 gdic.delete_wxBrush(self)
1d99702e
RD
499 def GetColour(self, *_args, **_kwargs):
500 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
25832b3f 501 if val: val = wxColourPtr(val) ; val.thisown = 1
1dc2f865 502 return val
1d99702e
RD
503 def GetStipple(self, *_args, **_kwargs):
504 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
505 if val: val = wxBitmapPtr(val)
1dc2f865 506 return val
1d99702e
RD
507 def GetStyle(self, *_args, **_kwargs):
508 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
1dc2f865 509 return val
1d99702e
RD
510 def Ok(self, *_args, **_kwargs):
511 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
1dc2f865 512 return val
1d99702e
RD
513 def SetColour(self, *_args, **_kwargs):
514 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
1dc2f865 515 return val
1d99702e
RD
516 def SetStipple(self, *_args, **_kwargs):
517 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
1dc2f865 518 return val
1d99702e
RD
519 def SetStyle(self, *_args, **_kwargs):
520 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
1dc2f865
RD
521 return val
522 def __repr__(self):
1d99702e 523 return "<C wxBrush instance at %s>" % (self.this,)
1dc2f865 524class wxBrush(wxBrushPtr):
1d99702e
RD
525 def __init__(self,*_args,**_kwargs):
526 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
1dc2f865 527 self.thisown = 1
8ab979d7
RD
528
529
8ab979d7
RD
530
531
0569df0f
RD
532class wxBrushListPtr :
533 def __init__(self,this):
534 self.this = this
535 self.thisown = 0
536 def AddBrush(self, *_args, **_kwargs):
537 val = apply(gdic.wxBrushList_AddBrush,(self,) + _args, _kwargs)
538 return val
539 def FindOrCreateBrush(self, *_args, **_kwargs):
540 val = apply(gdic.wxBrushList_FindOrCreateBrush,(self,) + _args, _kwargs)
541 if val: val = wxBrushPtr(val)
542 return val
543 def RemoveBrush(self, *_args, **_kwargs):
544 val = apply(gdic.wxBrushList_RemoveBrush,(self,) + _args, _kwargs)
545 return val
546 def __repr__(self):
547 return "<C wxBrushList instance at %s>" % (self.this,)
548class wxBrushList(wxBrushListPtr):
549 def __init__(self,this):
550 self.this = this
551
552
553
554
9416aa89 555class wxDCPtr(wxObjectPtr):
1dc2f865
RD
556 def __init__(self,this):
557 self.this = this
558 self.thisown = 0
1d99702e 559 def __del__(self,gdic=gdic):
1dc2f865 560 if self.thisown == 1 :
1d99702e
RD
561 gdic.delete_wxDC(self)
562 def BeginDrawing(self, *_args, **_kwargs):
563 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
1dc2f865 564 return val
1d99702e
RD
565 def Blit(self, *_args, **_kwargs):
566 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
1dc2f865 567 return val
1d99702e
RD
568 def Clear(self, *_args, **_kwargs):
569 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
1dc2f865 570 return val
1d99702e
RD
571 def CrossHair(self, *_args, **_kwargs):
572 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
1dc2f865 573 return val
1d99702e
RD
574 def DestroyClippingRegion(self, *_args, **_kwargs):
575 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
1dc2f865 576 return val
1d99702e
RD
577 def DeviceToLogicalX(self, *_args, **_kwargs):
578 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
1dc2f865 579 return val
1d99702e
RD
580 def DeviceToLogicalXRel(self, *_args, **_kwargs):
581 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
1dc2f865 582 return val
1d99702e
RD
583 def DeviceToLogicalY(self, *_args, **_kwargs):
584 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
1dc2f865 585 return val
1d99702e
RD
586 def DeviceToLogicalYRel(self, *_args, **_kwargs):
587 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
1dc2f865 588 return val
1d99702e
RD
589 def DrawArc(self, *_args, **_kwargs):
590 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
1dc2f865 591 return val
1d99702e
RD
592 def DrawCircle(self, *_args, **_kwargs):
593 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
1dc2f865 594 return val
1d99702e
RD
595 def DrawEllipse(self, *_args, **_kwargs):
596 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
1dc2f865 597 return val
1d99702e
RD
598 def DrawEllipticArc(self, *_args, **_kwargs):
599 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
1dc2f865 600 return val
1d99702e
RD
601 def DrawIcon(self, *_args, **_kwargs):
602 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
1dc2f865 603 return val
1d99702e
RD
604 def DrawLine(self, *_args, **_kwargs):
605 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
1dc2f865 606 return val
1d99702e
RD
607 def DrawLines(self, *_args, **_kwargs):
608 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
1dc2f865 609 return val
1d99702e
RD
610 def DrawPolygon(self, *_args, **_kwargs):
611 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
1dc2f865 612 return val
1d99702e
RD
613 def DrawPoint(self, *_args, **_kwargs):
614 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
1dc2f865 615 return val
1d99702e
RD
616 def DrawRectangle(self, *_args, **_kwargs):
617 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
1dc2f865 618 return val
6999b0d8
RD
619 def DrawRotatedText(self, *_args, **_kwargs):
620 val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs)
621 return val
1d99702e
RD
622 def DrawRoundedRectangle(self, *_args, **_kwargs):
623 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
1dc2f865 624 return val
1d99702e
RD
625 def DrawSpline(self, *_args, **_kwargs):
626 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
1dc2f865 627 return val
1d99702e
RD
628 def DrawText(self, *_args, **_kwargs):
629 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
1dc2f865 630 return val
1d99702e
RD
631 def EndDoc(self, *_args, **_kwargs):
632 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
1dc2f865 633 return val
1d99702e
RD
634 def EndDrawing(self, *_args, **_kwargs):
635 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
1dc2f865 636 return val
1d99702e
RD
637 def EndPage(self, *_args, **_kwargs):
638 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
1dc2f865 639 return val
1d99702e
RD
640 def FloodFill(self, *_args, **_kwargs):
641 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
1dc2f865 642 return val
1d99702e
RD
643 def GetBackground(self, *_args, **_kwargs):
644 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
645 if val: val = wxBrushPtr(val)
1dc2f865 646 return val
1d99702e
RD
647 def GetBrush(self, *_args, **_kwargs):
648 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
649 if val: val = wxBrushPtr(val)
1dc2f865 650 return val
1d99702e
RD
651 def GetCharHeight(self, *_args, **_kwargs):
652 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
1dc2f865 653 return val
1d99702e
RD
654 def GetCharWidth(self, *_args, **_kwargs):
655 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
1dc2f865 656 return val
1d99702e
RD
657 def GetClippingBox(self, *_args, **_kwargs):
658 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
1dc2f865 659 return val
1d99702e
RD
660 def GetFont(self, *_args, **_kwargs):
661 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
662 if val: val = wxFontPtr(val)
1dc2f865 663 return val
1d99702e
RD
664 def GetLogicalFunction(self, *_args, **_kwargs):
665 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
1dc2f865 666 return val
eec92d76
RD
667 def GetLogicalScale(self, *_args, **_kwargs):
668 val = apply(gdic.wxDC_GetLogicalScale,(self,) + _args, _kwargs)
669 return val
1d99702e
RD
670 def GetMapMode(self, *_args, **_kwargs):
671 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
1dc2f865 672 return val
1d99702e
RD
673 def GetOptimization(self, *_args, **_kwargs):
674 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
1dc2f865 675 return val
1d99702e
RD
676 def GetPen(self, *_args, **_kwargs):
677 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
678 if val: val = wxPenPtr(val)
1dc2f865 679 return val
1d99702e
RD
680 def GetPixel(self, *_args, **_kwargs):
681 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
682 if val: val = wxColourPtr(val) ; val.thisown = 1
1dc2f865 683 return val
1d99702e
RD
684 def GetSizeTuple(self, *_args, **_kwargs):
685 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
1dc2f865 686 return val
1d99702e
RD
687 def GetSize(self, *_args, **_kwargs):
688 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
689 if val: val = wxSizePtr(val) ; val.thisown = 1
1dc2f865 690 return val
eec92d76
RD
691 def GetSizeMM(self, *_args, **_kwargs):
692 val = apply(gdic.wxDC_GetSizeMM,(self,) + _args, _kwargs)
693 if val: val = wxSizePtr(val) ; val.thisown = 1
694 return val
1d99702e
RD
695 def GetTextBackground(self, *_args, **_kwargs):
696 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
25832b3f 697 if val: val = wxColourPtr(val) ; val.thisown = 1
1dc2f865 698 return val
1d99702e
RD
699 def GetTextExtent(self, *_args, **_kwargs):
700 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
1dc2f865 701 return val
1d99702e
RD
702 def GetFullTextExtent(self, *_args, **_kwargs):
703 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
1dc2f865 704 return val
1d99702e
RD
705 def GetTextForeground(self, *_args, **_kwargs):
706 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
25832b3f 707 if val: val = wxColourPtr(val) ; val.thisown = 1
1dc2f865 708 return val
eec92d76
RD
709 def GetUserScale(self, *_args, **_kwargs):
710 val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)
711 return val
1d99702e
RD
712 def LogicalToDeviceX(self, *_args, **_kwargs):
713 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
1dc2f865 714 return val
1d99702e
RD
715 def LogicalToDeviceXRel(self, *_args, **_kwargs):
716 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
1dc2f865 717 return val
1d99702e
RD
718 def LogicalToDeviceY(self, *_args, **_kwargs):
719 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
1dc2f865 720 return val
1d99702e
RD
721 def LogicalToDeviceYRel(self, *_args, **_kwargs):
722 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
1dc2f865 723 return val
1d99702e
RD
724 def MaxX(self, *_args, **_kwargs):
725 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
1dc2f865 726 return val
1d99702e
RD
727 def MaxY(self, *_args, **_kwargs):
728 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
1dc2f865 729 return val
1d99702e
RD
730 def MinX(self, *_args, **_kwargs):
731 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
1dc2f865 732 return val
1d99702e
RD
733 def MinY(self, *_args, **_kwargs):
734 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
1dc2f865 735 return val
1d99702e
RD
736 def Ok(self, *_args, **_kwargs):
737 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
1dc2f865 738 return val
1d99702e
RD
739 def SetDeviceOrigin(self, *_args, **_kwargs):
740 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
1dc2f865 741 return val
1d99702e
RD
742 def SetBackground(self, *_args, **_kwargs):
743 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
1dc2f865 744 return val
1d99702e
RD
745 def SetBackgroundMode(self, *_args, **_kwargs):
746 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
1dc2f865 747 return val
1d99702e
RD
748 def SetClippingRegion(self, *_args, **_kwargs):
749 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
1dc2f865 750 return val
1d99702e
RD
751 def SetPalette(self, *_args, **_kwargs):
752 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
1dc2f865 753 return val
1d99702e
RD
754 def SetBrush(self, *_args, **_kwargs):
755 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
1dc2f865 756 return val
1d99702e
RD
757 def SetFont(self, *_args, **_kwargs):
758 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
1dc2f865 759 return val
1d99702e
RD
760 def SetLogicalFunction(self, *_args, **_kwargs):
761 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
1dc2f865 762 return val
eec92d76
RD
763 def SetLogicalScale(self, *_args, **_kwargs):
764 val = apply(gdic.wxDC_SetLogicalScale,(self,) + _args, _kwargs)
765 return val
1d99702e
RD
766 def SetMapMode(self, *_args, **_kwargs):
767 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
1dc2f865 768 return val
1d99702e
RD
769 def SetOptimization(self, *_args, **_kwargs):
770 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
1dc2f865 771 return val
1d99702e
RD
772 def SetPen(self, *_args, **_kwargs):
773 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
1dc2f865 774 return val
1d99702e
RD
775 def SetTextBackground(self, *_args, **_kwargs):
776 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
1dc2f865 777 return val
1d99702e
RD
778 def SetTextForeground(self, *_args, **_kwargs):
779 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
1dc2f865 780 return val
1d99702e
RD
781 def SetUserScale(self, *_args, **_kwargs):
782 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
1dc2f865 783 return val
1d99702e
RD
784 def StartDoc(self, *_args, **_kwargs):
785 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
1dc2f865 786 return val
1d99702e
RD
787 def StartPage(self, *_args, **_kwargs):
788 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
1dc2f865 789 return val
1d99702e
RD
790 def DrawBitmap(self, *_args, **_kwargs):
791 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
1dc2f865 792 return val
eec92d76
RD
793 def CanDrawBitmap(self, *_args, **_kwargs):
794 val = apply(gdic.wxDC_CanDrawBitmap,(self,) + _args, _kwargs)
795 return val
796 def CanGetTextExtent(self, *_args, **_kwargs):
797 val = apply(gdic.wxDC_CanGetTextExtent,(self,) + _args, _kwargs)
798 return val
799 def GetDepth(self, *_args, **_kwargs):
800 val = apply(gdic.wxDC_GetDepth,(self,) + _args, _kwargs)
801 return val
802 def GetPPI(self, *_args, **_kwargs):
803 val = apply(gdic.wxDC_GetPPI,(self,) + _args, _kwargs)
804 if val: val = wxSizePtr(val) ; val.thisown = 1
805 return val
806 def GetLogicalOrigin(self, *_args, **_kwargs):
807 val = apply(gdic.wxDC_GetLogicalOrigin,(self,) + _args, _kwargs)
808 return val
809 def SetLogicalOrigin(self, *_args, **_kwargs):
810 val = apply(gdic.wxDC_SetLogicalOrigin,(self,) + _args, _kwargs)
811 return val
812 def GetDeviceOrigin(self, *_args, **_kwargs):
813 val = apply(gdic.wxDC_GetDeviceOrigin,(self,) + _args, _kwargs)
814 return val
815 def SetAxisOrientation(self, *_args, **_kwargs):
816 val = apply(gdic.wxDC_SetAxisOrientation,(self,) + _args, _kwargs)
817 return val
f6bcfd97
BP
818 def CalcBoundingBox(self, *_args, **_kwargs):
819 val = apply(gdic.wxDC_CalcBoundingBox,(self,) + _args, _kwargs)
820 return val
821 def ResetBoundingBox(self, *_args, **_kwargs):
822 val = apply(gdic.wxDC_ResetBoundingBox,(self,) + _args, _kwargs)
823 return val
c7e7022c
RD
824 def GetHDC(self, *_args, **_kwargs):
825 val = apply(gdic.wxDC_GetHDC,(self,) + _args, _kwargs)
826 return val
1dc2f865 827 def __repr__(self):
1d99702e 828 return "<C wxDC instance at %s>" % (self.this,)
1dc2f865
RD
829class wxDC(wxDCPtr):
830 def __init__(self,this):
831 self.this = this
8ab979d7
RD
832
833
8ab979d7
RD
834
835
1dc2f865
RD
836class wxMemoryDCPtr(wxDCPtr):
837 def __init__(self,this):
838 self.this = this
839 self.thisown = 0
1d99702e
RD
840 def SelectObject(self, *_args, **_kwargs):
841 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
1dc2f865
RD
842 return val
843 def __repr__(self):
1d99702e 844 return "<C wxMemoryDC instance at %s>" % (self.this,)
1dc2f865 845class wxMemoryDC(wxMemoryDCPtr):
1d99702e
RD
846 def __init__(self,*_args,**_kwargs):
847 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
1dc2f865 848 self.thisown = 1
8ab979d7
RD
849
850
b639c3c5
RD
851
852
1dc2f865
RD
853class wxScreenDCPtr(wxDCPtr):
854 def __init__(self,this):
855 self.this = this
856 self.thisown = 0
26b9cf27
RD
857 def StartDrawingOnTopWin(self, *_args, **_kwargs):
858 val = apply(gdic.wxScreenDC_StartDrawingOnTopWin,(self,) + _args, _kwargs)
859 return val
1d99702e
RD
860 def StartDrawingOnTop(self, *_args, **_kwargs):
861 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
1dc2f865 862 return val
1d99702e
RD
863 def EndDrawingOnTop(self, *_args, **_kwargs):
864 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
1dc2f865
RD
865 return val
866 def __repr__(self):
1d99702e 867 return "<C wxScreenDC instance at %s>" % (self.this,)
1dc2f865 868class wxScreenDC(wxScreenDCPtr):
1d99702e
RD
869 def __init__(self,*_args,**_kwargs):
870 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
1dc2f865 871 self.thisown = 1
b639c3c5
RD
872
873
8ab979d7
RD
874
875
1dc2f865
RD
876class wxClientDCPtr(wxDCPtr):
877 def __init__(self,this):
878 self.this = this
879 self.thisown = 0
880 def __repr__(self):
1d99702e 881 return "<C wxClientDC instance at %s>" % (self.this,)
1dc2f865 882class wxClientDC(wxClientDCPtr):
1d99702e
RD
883 def __init__(self,*_args,**_kwargs):
884 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
1dc2f865 885 self.thisown = 1
8ab979d7
RD
886
887
8ab979d7
RD
888
889
1dc2f865
RD
890class wxPaintDCPtr(wxDCPtr):
891 def __init__(self,this):
892 self.this = this
893 self.thisown = 0
894 def __repr__(self):
1d99702e 895 return "<C wxPaintDC instance at %s>" % (self.this,)
1dc2f865 896class wxPaintDC(wxPaintDCPtr):
1d99702e
RD
897 def __init__(self,*_args,**_kwargs):
898 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
1dc2f865 899 self.thisown = 1
8ab979d7
RD
900
901
b639c3c5
RD
902
903
1dc2f865
RD
904class wxWindowDCPtr(wxDCPtr):
905 def __init__(self,this):
906 self.this = this
907 self.thisown = 0
908 def __repr__(self):
1d99702e 909 return "<C wxWindowDC instance at %s>" % (self.this,)
1dc2f865 910class wxWindowDC(wxWindowDCPtr):
1d99702e
RD
911 def __init__(self,*_args,**_kwargs):
912 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
1dc2f865 913 self.thisown = 1
b639c3c5
RD
914
915
8bf5d46e 916
8bf5d46e 917
1dc2f865
RD
918class wxMetaFileDCPtr(wxDCPtr):
919 def __init__(self,this):
920 self.this = this
921 self.thisown = 0
1d99702e
RD
922 def Close(self, *_args, **_kwargs):
923 val = apply(gdic.wxMetaFileDC_Close,(self,) + _args, _kwargs)
1dc2f865
RD
924 return val
925 def __repr__(self):
1d99702e 926 return "<C wxMetaFileDC instance at %s>" % (self.this,)
1dc2f865 927class wxMetaFileDC(wxMetaFileDCPtr):
1d99702e
RD
928 def __init__(self,*_args,**_kwargs):
929 self.this = apply(gdic.new_wxMetaFileDC,_args,_kwargs)
1dc2f865 930 self.thisown = 1
8bf5d46e 931
8bf5d46e 932
8bf5d46e 933
8bf5d46e 934
9416aa89 935class wxPalettePtr(wxGDIObjectPtr):
1dc2f865
RD
936 def __init__(self,this):
937 self.this = this
938 self.thisown = 0
1d99702e 939 def __del__(self,gdic=gdic):
1dc2f865 940 if self.thisown == 1 :
1d99702e
RD
941 gdic.delete_wxPalette(self)
942 def GetPixel(self, *_args, **_kwargs):
943 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
1dc2f865 944 return val
1d99702e
RD
945 def GetRGB(self, *_args, **_kwargs):
946 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
1dc2f865 947 return val
1d99702e
RD
948 def Ok(self, *_args, **_kwargs):
949 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
1dc2f865
RD
950 return val
951 def __repr__(self):
1d99702e 952 return "<C wxPalette instance at %s>" % (self.this,)
1dc2f865 953class wxPalette(wxPalettePtr):
1d99702e
RD
954 def __init__(self,*_args,**_kwargs):
955 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
1dc2f865 956 self.thisown = 1
8bf5d46e 957
8bf5d46e 958
8bf5d46e 959
8bf5d46e 960
9416aa89 961class wxImageListPtr(wxObjectPtr):
1dc2f865
RD
962 def __init__(self,this):
963 self.this = this
964 self.thisown = 0
1d99702e 965 def __del__(self,gdic=gdic):
1dc2f865 966 if self.thisown == 1 :
1d99702e
RD
967 gdic.delete_wxImageList(self)
968 def Add(self, *_args, **_kwargs):
969 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
1dc2f865 970 return val
1d99702e
RD
971 def AddWithColourMask(self, *_args, **_kwargs):
972 val = apply(gdic.wxImageList_AddWithColourMask,(self,) + _args, _kwargs)
1dc2f865 973 return val
1d99702e
RD
974 def AddIcon(self, *_args, **_kwargs):
975 val = apply(gdic.wxImageList_AddIcon,(self,) + _args, _kwargs)
1dc2f865 976 return val
1d99702e
RD
977 def Replace(self, *_args, **_kwargs):
978 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
1dc2f865 979 return val
1d99702e
RD
980 def Draw(self, *_args, **_kwargs):
981 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
1dc2f865 982 return val
1d99702e
RD
983 def GetImageCount(self, *_args, **_kwargs):
984 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
1dc2f865 985 return val
1d99702e
RD
986 def Remove(self, *_args, **_kwargs):
987 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
1dc2f865 988 return val
1d99702e
RD
989 def RemoveAll(self, *_args, **_kwargs):
990 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
1dc2f865 991 return val
f6bcfd97
BP
992 def GetSize(self, *_args, **_kwargs):
993 val = apply(gdic.wxImageList_GetSize,(self,) + _args, _kwargs)
994 return val
1dc2f865 995 def __repr__(self):
1d99702e 996 return "<C wxImageList instance at %s>" % (self.this,)
1dc2f865 997class wxImageList(wxImageListPtr):
1d99702e
RD
998 def __init__(self,*_args,**_kwargs):
999 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
1dc2f865 1000 self.thisown = 1
af309447
RD
1001
1002
1003
1004
9416aa89
RD
1005class wxRegionPtr(wxGDIObjectPtr):
1006 def __init__(self,this):
1007 self.this = this
1008 self.thisown = 0
1009 def __del__(self,gdic=gdic):
1010 if self.thisown == 1 :
1011 gdic.delete_wxRegion(self)
1012 def Clear(self, *_args, **_kwargs):
1013 val = apply(gdic.wxRegion_Clear,(self,) + _args, _kwargs)
1014 return val
1015 def Contains(self, *_args, **_kwargs):
1016 val = apply(gdic.wxRegion_Contains,(self,) + _args, _kwargs)
1017 return val
1018 def ContainsPoint(self, *_args, **_kwargs):
1019 val = apply(gdic.wxRegion_ContainsPoint,(self,) + _args, _kwargs)
1020 return val
1021 def ContainsRect(self, *_args, **_kwargs):
1022 val = apply(gdic.wxRegion_ContainsRect,(self,) + _args, _kwargs)
1023 return val
1024 def ContainsRectDim(self, *_args, **_kwargs):
1025 val = apply(gdic.wxRegion_ContainsRectDim,(self,) + _args, _kwargs)
1026 return val
1027 def GetBox(self, *_args, **_kwargs):
1028 val = apply(gdic.wxRegion_GetBox,(self,) + _args, _kwargs)
1029 if val: val = wxRectPtr(val) ; val.thisown = 1
1030 return val
1031 def Intersect(self, *_args, **_kwargs):
1032 val = apply(gdic.wxRegion_Intersect,(self,) + _args, _kwargs)
1033 return val
1034 def IntersectRect(self, *_args, **_kwargs):
1035 val = apply(gdic.wxRegion_IntersectRect,(self,) + _args, _kwargs)
1036 return val
1037 def IntersectRegion(self, *_args, **_kwargs):
1038 val = apply(gdic.wxRegion_IntersectRegion,(self,) + _args, _kwargs)
1039 return val
1040 def IsEmpty(self, *_args, **_kwargs):
1041 val = apply(gdic.wxRegion_IsEmpty,(self,) + _args, _kwargs)
1042 return val
1043 def Union(self, *_args, **_kwargs):
1044 val = apply(gdic.wxRegion_Union,(self,) + _args, _kwargs)
1045 return val
1046 def UnionRect(self, *_args, **_kwargs):
1047 val = apply(gdic.wxRegion_UnionRect,(self,) + _args, _kwargs)
1048 return val
1049 def UnionRegion(self, *_args, **_kwargs):
1050 val = apply(gdic.wxRegion_UnionRegion,(self,) + _args, _kwargs)
1051 return val
1052 def Subtract(self, *_args, **_kwargs):
1053 val = apply(gdic.wxRegion_Subtract,(self,) + _args, _kwargs)
1054 return val
1055 def SubtractRect(self, *_args, **_kwargs):
1056 val = apply(gdic.wxRegion_SubtractRect,(self,) + _args, _kwargs)
1057 return val
1058 def SubtractRegion(self, *_args, **_kwargs):
1059 val = apply(gdic.wxRegion_SubtractRegion,(self,) + _args, _kwargs)
1060 return val
1061 def Xor(self, *_args, **_kwargs):
1062 val = apply(gdic.wxRegion_Xor,(self,) + _args, _kwargs)
1063 return val
1064 def XorRect(self, *_args, **_kwargs):
1065 val = apply(gdic.wxRegion_XorRect,(self,) + _args, _kwargs)
1066 return val
1067 def XorRegion(self, *_args, **_kwargs):
1068 val = apply(gdic.wxRegion_XorRegion,(self,) + _args, _kwargs)
1069 return val
1070 def __repr__(self):
1071 return "<C wxRegion instance at %s>" % (self.this,)
1072class wxRegion(wxRegionPtr):
1073 def __init__(self,*_args,**_kwargs):
1074 self.this = apply(gdic.new_wxRegion,_args,_kwargs)
1075 self.thisown = 1
1076
1077
1078
1079
1080class wxRegionIteratorPtr(wxObjectPtr):
1081 def __init__(self,this):
1082 self.this = this
1083 self.thisown = 0
1084 def __del__(self,gdic=gdic):
1085 if self.thisown == 1 :
1086 gdic.delete_wxRegionIterator(self)
1087 def GetX(self, *_args, **_kwargs):
1088 val = apply(gdic.wxRegionIterator_GetX,(self,) + _args, _kwargs)
1089 return val
1090 def GetY(self, *_args, **_kwargs):
1091 val = apply(gdic.wxRegionIterator_GetY,(self,) + _args, _kwargs)
1092 return val
1093 def GetW(self, *_args, **_kwargs):
1094 val = apply(gdic.wxRegionIterator_GetW,(self,) + _args, _kwargs)
1095 return val
1096 def GetWidth(self, *_args, **_kwargs):
1097 val = apply(gdic.wxRegionIterator_GetWidth,(self,) + _args, _kwargs)
1098 return val
1099 def GetH(self, *_args, **_kwargs):
1100 val = apply(gdic.wxRegionIterator_GetH,(self,) + _args, _kwargs)
1101 return val
1102 def GetHeight(self, *_args, **_kwargs):
1103 val = apply(gdic.wxRegionIterator_GetHeight,(self,) + _args, _kwargs)
1104 return val
1105 def GetRect(self, *_args, **_kwargs):
1106 val = apply(gdic.wxRegionIterator_GetRect,(self,) + _args, _kwargs)
1107 if val: val = wxRectPtr(val) ; val.thisown = 1
1108 return val
1109 def HaveRects(self, *_args, **_kwargs):
1110 val = apply(gdic.wxRegionIterator_HaveRects,(self,) + _args, _kwargs)
1111 return val
1112 def Reset(self, *_args, **_kwargs):
1113 val = apply(gdic.wxRegionIterator_Reset,(self,) + _args, _kwargs)
1114 return val
1115 def Next(self, *_args, **_kwargs):
1116 val = apply(gdic.wxRegionIterator_Next,(self,) + _args, _kwargs)
1117 return val
1118 def __repr__(self):
1119 return "<C wxRegionIterator instance at %s>" % (self.this,)
1120class wxRegionIterator(wxRegionIteratorPtr):
1121 def __init__(self,*_args,**_kwargs):
1122 self.this = apply(gdic.new_wxRegionIterator,_args,_kwargs)
1123 self.thisown = 1
1124
1125
1126
1127
8ab979d7
RD
1128
1129
1dc2f865
RD
1130#-------------- FUNCTION WRAPPERS ------------------
1131
1d99702e
RD
1132def wxEmptyBitmap(*_args, **_kwargs):
1133 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
1134 if val: val = wxBitmapPtr(val); val.thisown = 1
1dc2f865
RD
1135 return val
1136
96bfd053
RD
1137def wxBitmapFromXPMData(*_args, **_kwargs):
1138 val = apply(gdic.wxBitmapFromXPMData,_args,_kwargs)
1139 if val: val = wxBitmapPtr(val); val.thisown = 1
1140 return val
1141
1142def wxBitmapFromIcon(*_args, **_kwargs):
1143 val = apply(gdic.wxBitmapFromIcon,_args,_kwargs)
1144 if val: val = wxBitmapPtr(val); val.thisown = 1
1145 return val
1146
d56cebe7
RD
1147def wxBitmapFromBits(*_args, **_kwargs):
1148 val = apply(gdic.wxBitmapFromBits,_args,_kwargs)
1d99702e 1149 if val: val = wxBitmapPtr(val); val.thisown = 1
1dc2f865
RD
1150 return val
1151
1d99702e
RD
1152def wxMaskColour(*_args, **_kwargs):
1153 val = apply(gdic.wxMaskColour,_args,_kwargs)
1154 if val: val = wxMaskPtr(val); val.thisown = 1
1dc2f865
RD
1155 return val
1156
96bfd053
RD
1157def wxEmptyIcon(*_args, **_kwargs):
1158 val = apply(gdic.wxEmptyIcon,_args,_kwargs)
1159 if val: val = wxIconPtr(val); val.thisown = 1
1160 return val
1161
1162def wxIconFromXPMData(*_args, **_kwargs):
1163 val = apply(gdic.wxIconFromXPMData,_args,_kwargs)
1164 if val: val = wxIconPtr(val); val.thisown = 1
1165 return val
1166
1d99702e
RD
1167def wxStockCursor(*_args, **_kwargs):
1168 val = apply(gdic.wxStockCursor,_args,_kwargs)
1169 if val: val = wxCursorPtr(val); val.thisown = 1
1dc2f865
RD
1170 return val
1171
f0261a72
RD
1172wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding
1173
1174wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding
1175
1d99702e
RD
1176def wxNamedColour(*_args, **_kwargs):
1177 val = apply(gdic.wxNamedColour,_args,_kwargs)
1178 if val: val = wxColourPtr(val); val.thisown = 1
1dc2f865
RD
1179 return val
1180
1d99702e
RD
1181def wxMemoryDCFromDC(*_args, **_kwargs):
1182 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
1183 if val: val = wxMemoryDCPtr(val); val.thisown = 1
1dc2f865
RD
1184 return val
1185
1186
1187
1188#-------------- VARIABLE WRAPPERS ------------------
1189
f0261a72
RD
1190wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM
1191wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT
1192wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1
1193wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2
1194wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3
1195wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4
1196wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5
1197wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6
1198wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7
1199wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8
1200wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9
1201wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10
1202wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11
1203wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12
1204wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13
1205wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14
1206wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15
1207wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8
1208wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE
1209wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN
1210wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437
1211wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850
1212wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852
1213wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855
1214wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866
1215wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250
1216wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251
1217wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252
1218wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX
1dc2f865
RD
1219cvar = gdic.cvar
1220wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
1221wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
1222wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
1223wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
1224wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
1225wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
1226wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
1227wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
1228wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
1229wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
1230wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
1231wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
1232wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
1233wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
1234wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
1235wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
1236wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
1237wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
1238wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
1239wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
1240wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
1241wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
1242wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
1243wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
1244wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
1245wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
1246wxRED = wxColourPtr(gdic.cvar.wxRED)
1247wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
1248wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
1249wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
1250wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
1251wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
1252wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
1253wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
1254wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
1255wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
1256wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
1257wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
1258wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
1259wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
1260wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
1261wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
0569df0f
RD
1262wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList)
1263wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList)
1264wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase)
1dc2f865
RD
1265wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
1266wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
1267wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
1268wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
1269wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
1270wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
1271wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE
9416aa89
RD
1272wxOutRegion = gdic.wxOutRegion
1273wxPartRegion = gdic.wxPartRegion
1274wxInRegion = gdic.wxInRegion