]>
Commit | Line | Data |
---|---|---|
8ab979d7 RD |
1 | # This file was created automatically by SWIG. |
2 | import gdic | |
3 | ||
4 | from misc import * | |
5 | class wxBitmapPtr : | |
6 | def __init__(self,this): | |
7 | self.this = this | |
8 | self.thisown = 0 | |
9 | def __del__(self): | |
10 | if self.thisown == 1 : | |
11 | gdic.delete_wxBitmap(self.this) | |
12 | def Create(self,arg0,arg1,*args): | |
13 | val = apply(gdic.wxBitmap_Create,(self.this,arg0,arg1,)+args) | |
14 | return val | |
15 | def GetDepth(self): | |
16 | val = gdic.wxBitmap_GetDepth(self.this) | |
17 | return val | |
18 | def GetHeight(self): | |
19 | val = gdic.wxBitmap_GetHeight(self.this) | |
20 | return val | |
21 | def GetPalette(self): | |
22 | val = gdic.wxBitmap_GetPalette(self.this) | |
b639c3c5 | 23 | val = wxPalettePtr(val) |
8ab979d7 RD |
24 | return val |
25 | def GetMask(self): | |
26 | val = gdic.wxBitmap_GetMask(self.this) | |
27 | val = wxMaskPtr(val) | |
28 | return val | |
29 | def GetWidth(self): | |
30 | val = gdic.wxBitmap_GetWidth(self.this) | |
31 | return val | |
32 | def LoadFile(self,arg0,arg1): | |
33 | val = gdic.wxBitmap_LoadFile(self.this,arg0,arg1) | |
34 | return val | |
35 | def Ok(self): | |
36 | val = gdic.wxBitmap_Ok(self.this) | |
37 | return val | |
38 | def SaveFile(self,arg0,arg1,*args): | |
b639c3c5 RD |
39 | argl = map(None,args) |
40 | try: argl[0] = argl[0].this | |
41 | except: pass | |
42 | args = tuple(argl) | |
8ab979d7 RD |
43 | val = apply(gdic.wxBitmap_SaveFile,(self.this,arg0,arg1,)+args) |
44 | return val | |
45 | def SetDepth(self,arg0): | |
46 | val = gdic.wxBitmap_SetDepth(self.this,arg0) | |
47 | return val | |
48 | def SetHeight(self,arg0): | |
49 | val = gdic.wxBitmap_SetHeight(self.this,arg0) | |
50 | return val | |
51 | def SetMask(self,arg0): | |
52 | val = gdic.wxBitmap_SetMask(self.this,arg0.this) | |
53 | return val | |
54 | def SetPalette(self,arg0): | |
b639c3c5 | 55 | val = gdic.wxBitmap_SetPalette(self.this,arg0.this) |
8ab979d7 RD |
56 | return val |
57 | def SetWidth(self,arg0): | |
58 | val = gdic.wxBitmap_SetWidth(self.this,arg0) | |
59 | return val | |
60 | def __repr__(self): | |
61 | return "<C wxBitmap instance>" | |
62 | class wxBitmap(wxBitmapPtr): | |
63 | def __init__(self,arg0,arg1) : | |
64 | self.this = gdic.new_wxBitmap(arg0,arg1) | |
65 | self.thisown = 1 | |
66 | ||
67 | ||
68 | ||
69 | ||
70 | class wxMaskPtr : | |
71 | def __init__(self,this): | |
72 | self.this = this | |
73 | self.thisown = 0 | |
74 | def __del__(self): | |
75 | if self.thisown == 1 : | |
76 | gdic.delete_wxMask(self.this) | |
77 | def __repr__(self): | |
78 | return "<C wxMask instance>" | |
79 | class wxMask(wxMaskPtr): | |
80 | def __init__(self,arg0) : | |
81 | self.this = gdic.new_wxMask(arg0.this) | |
82 | self.thisown = 1 | |
83 | ||
84 | ||
85 | ||
86 | ||
87 | class wxIconPtr(wxBitmapPtr): | |
88 | def __init__(self,this): | |
89 | self.this = this | |
90 | self.thisown = 0 | |
91 | def __del__(self): | |
92 | if self.thisown == 1 : | |
93 | gdic.delete_wxIcon(self.this) | |
94 | def GetDepth(self): | |
95 | val = gdic.wxIcon_GetDepth(self.this) | |
96 | return val | |
97 | def GetHeight(self): | |
98 | val = gdic.wxIcon_GetHeight(self.this) | |
99 | return val | |
100 | def GetWidth(self): | |
101 | val = gdic.wxIcon_GetWidth(self.this) | |
102 | return val | |
103 | def LoadFile(self,arg0,arg1): | |
104 | val = gdic.wxIcon_LoadFile(self.this,arg0,arg1) | |
105 | return val | |
106 | def Ok(self): | |
107 | val = gdic.wxIcon_Ok(self.this) | |
108 | return val | |
109 | def SetDepth(self,arg0): | |
110 | val = gdic.wxIcon_SetDepth(self.this,arg0) | |
111 | return val | |
112 | def SetHeight(self,arg0): | |
113 | val = gdic.wxIcon_SetHeight(self.this,arg0) | |
114 | return val | |
115 | def SetWidth(self,arg0): | |
116 | val = gdic.wxIcon_SetWidth(self.this,arg0) | |
117 | return val | |
118 | def __repr__(self): | |
119 | return "<C wxIcon instance>" | |
120 | class wxIcon(wxIconPtr): | |
121 | def __init__(self,arg0,arg1,*args) : | |
122 | self.this = apply(gdic.new_wxIcon,(arg0,arg1,)+args) | |
123 | self.thisown = 1 | |
124 | ||
125 | ||
126 | ||
127 | ||
128 | class wxCursorPtr(wxBitmapPtr): | |
129 | def __init__(self,this): | |
130 | self.this = this | |
131 | self.thisown = 0 | |
132 | def __del__(self): | |
133 | if self.thisown == 1 : | |
134 | gdic.delete_wxCursor(self.this) | |
135 | def Ok(self): | |
136 | val = gdic.wxCursor_Ok(self.this) | |
137 | return val | |
138 | def __repr__(self): | |
139 | return "<C wxCursor instance>" | |
140 | class wxCursor(wxCursorPtr): | |
141 | def __init__(self,arg0,arg1,*args) : | |
142 | self.this = apply(gdic.new_wxCursor,(arg0,arg1,)+args) | |
143 | self.thisown = 1 | |
144 | ||
145 | ||
146 | ||
147 | ||
148 | class wxFontPtr : | |
149 | def __init__(self,this): | |
150 | self.this = this | |
151 | self.thisown = 0 | |
152 | def GetFaceName(self): | |
153 | val = gdic.wxFont_GetFaceName(self.this) | |
154 | return val | |
155 | def GetFamily(self): | |
156 | val = gdic.wxFont_GetFamily(self.this) | |
157 | return val | |
158 | def GetFontId(self): | |
159 | val = gdic.wxFont_GetFontId(self.this) | |
160 | return val | |
161 | def GetPointSize(self): | |
162 | val = gdic.wxFont_GetPointSize(self.this) | |
163 | return val | |
164 | def GetStyle(self): | |
165 | val = gdic.wxFont_GetStyle(self.this) | |
166 | return val | |
167 | def GetUnderlined(self): | |
168 | val = gdic.wxFont_GetUnderlined(self.this) | |
169 | return val | |
170 | def GetWeight(self): | |
171 | val = gdic.wxFont_GetWeight(self.this) | |
172 | return val | |
173 | def SetFaceName(self,arg0): | |
174 | val = gdic.wxFont_SetFaceName(self.this,arg0) | |
175 | return val | |
176 | def SetFamily(self,arg0): | |
177 | val = gdic.wxFont_SetFamily(self.this,arg0) | |
178 | return val | |
179 | def SetPointSize(self,arg0): | |
180 | val = gdic.wxFont_SetPointSize(self.this,arg0) | |
181 | return val | |
182 | def SetStyle(self,arg0): | |
183 | val = gdic.wxFont_SetStyle(self.this,arg0) | |
184 | return val | |
185 | def SetUnderlined(self,arg0): | |
186 | val = gdic.wxFont_SetUnderlined(self.this,arg0) | |
187 | return val | |
188 | def SetWeight(self,arg0): | |
189 | val = gdic.wxFont_SetWeight(self.this,arg0) | |
190 | return val | |
191 | def __repr__(self): | |
192 | return "<C wxFont instance>" | |
193 | class wxFont(wxFontPtr): | |
194 | def __init__(self,arg0,arg1,arg2,arg3,*args) : | |
195 | self.this = apply(gdic.new_wxFont,(arg0,arg1,arg2,arg3,)+args) | |
196 | self.thisown = 1 | |
197 | ||
198 | ||
199 | ||
200 | ||
201 | class wxColourPtr : | |
202 | def __init__(self,this): | |
203 | self.this = this | |
204 | self.thisown = 0 | |
205 | def __del__(self): | |
206 | if self.thisown == 1 : | |
207 | gdic.delete_wxColour(self.this) | |
208 | def Red(self): | |
209 | val = gdic.wxColour_Red(self.this) | |
210 | return val | |
211 | def Green(self): | |
212 | val = gdic.wxColour_Green(self.this) | |
213 | return val | |
214 | def Blue(self): | |
215 | val = gdic.wxColour_Blue(self.this) | |
216 | return val | |
217 | def Ok(self): | |
218 | val = gdic.wxColour_Ok(self.this) | |
219 | return val | |
220 | def Set(self,arg0,arg1,arg2): | |
221 | val = gdic.wxColour_Set(self.this,arg0,arg1,arg2) | |
222 | return val | |
223 | def Get(self): | |
224 | val = gdic.wxColour_Get(self.this) | |
225 | return val | |
226 | def __repr__(self): | |
227 | return "<C wxColour instance>" | |
228 | class wxColour(wxColourPtr): | |
229 | def __init__(self,*args) : | |
230 | self.this = apply(gdic.new_wxColour,()+args) | |
231 | self.thisown = 1 | |
232 | ||
233 | ||
234 | ||
235 | ||
236 | class wxPenPtr : | |
237 | def __init__(self,this): | |
238 | self.this = this | |
239 | self.thisown = 0 | |
240 | def GetCap(self): | |
241 | val = gdic.wxPen_GetCap(self.this) | |
242 | return val | |
243 | def GetColour(self): | |
244 | val = gdic.wxPen_GetColour(self.this) | |
245 | val = wxColourPtr(val) | |
246 | return val | |
8ab979d7 RD |
247 | def GetJoin(self): |
248 | val = gdic.wxPen_GetJoin(self.this) | |
249 | return val | |
250 | def GetStyle(self): | |
251 | val = gdic.wxPen_GetStyle(self.this) | |
252 | return val | |
253 | def GetWidth(self): | |
254 | val = gdic.wxPen_GetWidth(self.this) | |
255 | return val | |
256 | def Ok(self): | |
257 | val = gdic.wxPen_Ok(self.this) | |
258 | return val | |
259 | def SetCap(self,arg0): | |
260 | val = gdic.wxPen_SetCap(self.this,arg0) | |
261 | return val | |
262 | def SetColour(self,arg0): | |
263 | val = gdic.wxPen_SetColour(self.this,arg0.this) | |
264 | return val | |
8ab979d7 RD |
265 | def SetJoin(self,arg0): |
266 | val = gdic.wxPen_SetJoin(self.this,arg0) | |
267 | return val | |
268 | def SetStyle(self,arg0): | |
269 | val = gdic.wxPen_SetStyle(self.this,arg0) | |
270 | return val | |
271 | def SetWidth(self,arg0): | |
272 | val = gdic.wxPen_SetWidth(self.this,arg0) | |
273 | return val | |
2ea09579 RD |
274 | def GetDashes(self,arg0): |
275 | val = gdic.wxPen_GetDashes(self.this,arg0) | |
276 | return val | |
277 | def GetStipple(self): | |
278 | val = gdic.wxPen_GetStipple(self.this) | |
279 | val = wxBitmapPtr(val) | |
280 | return val | |
281 | def SetDashes(self,arg0,*args): | |
282 | val = apply(gdic.wxPen_SetDashes,(self.this,arg0,)+args) | |
283 | return val | |
284 | def SetStipple(self,arg0): | |
285 | val = gdic.wxPen_SetStipple(self.this,arg0.this) | |
286 | return val | |
8ab979d7 RD |
287 | def __repr__(self): |
288 | return "<C wxPen instance>" | |
289 | class wxPen(wxPenPtr): | |
290 | def __init__(self,arg0,*args) : | |
291 | self.this = apply(gdic.new_wxPen,(arg0.this,)+args) | |
292 | self.thisown = 1 | |
293 | ||
294 | ||
295 | ||
296 | ||
297 | class wxBrushPtr : | |
298 | def __init__(self,this): | |
299 | self.this = this | |
300 | self.thisown = 0 | |
301 | def GetColour(self): | |
302 | val = gdic.wxBrush_GetColour(self.this) | |
303 | val = wxColourPtr(val) | |
304 | return val | |
305 | def GetStipple(self): | |
306 | val = gdic.wxBrush_GetStipple(self.this) | |
307 | val = wxBitmapPtr(val) | |
308 | return val | |
309 | def GetStyle(self): | |
310 | val = gdic.wxBrush_GetStyle(self.this) | |
311 | return val | |
312 | def Ok(self): | |
313 | val = gdic.wxBrush_Ok(self.this) | |
314 | return val | |
315 | def SetColour(self,arg0): | |
316 | val = gdic.wxBrush_SetColour(self.this,arg0.this) | |
317 | return val | |
318 | def SetStipple(self,arg0): | |
319 | val = gdic.wxBrush_SetStipple(self.this,arg0.this) | |
320 | return val | |
321 | def SetStyle(self,arg0): | |
322 | val = gdic.wxBrush_SetStyle(self.this,arg0) | |
323 | return val | |
324 | def __repr__(self): | |
325 | return "<C wxBrush instance>" | |
326 | class wxBrush(wxBrushPtr): | |
327 | def __init__(self,arg0,*args) : | |
328 | self.this = apply(gdic.new_wxBrush,(arg0.this,)+args) | |
329 | self.thisown = 1 | |
330 | ||
331 | ||
332 | ||
333 | ||
334 | class wxDCPtr : | |
335 | def __init__(self,this): | |
336 | self.this = this | |
337 | self.thisown = 0 | |
338 | def __del__(self): | |
339 | if self.thisown == 1 : | |
340 | gdic.delete_wxDC(self.this) | |
341 | def BeginDrawing(self): | |
342 | val = gdic.wxDC_BeginDrawing(self.this) | |
343 | return val | |
344 | def Blit(self,arg0,arg1,arg2,arg3,arg4,arg5,arg6,arg7): | |
345 | val = gdic.wxDC_Blit(self.this,arg0,arg1,arg2,arg3,arg4.this,arg5,arg6,arg7) | |
346 | return val | |
347 | def Clear(self): | |
348 | val = gdic.wxDC_Clear(self.this) | |
349 | return val | |
350 | def CrossHair(self,arg0,arg1): | |
351 | val = gdic.wxDC_CrossHair(self.this,arg0,arg1) | |
352 | return val | |
353 | def DestroyClippingRegion(self): | |
354 | val = gdic.wxDC_DestroyClippingRegion(self.this) | |
355 | return val | |
356 | def DeviceToLogicalX(self,arg0): | |
357 | val = gdic.wxDC_DeviceToLogicalX(self.this,arg0) | |
358 | return val | |
359 | def DeviceToLogicalXRel(self,arg0): | |
360 | val = gdic.wxDC_DeviceToLogicalXRel(self.this,arg0) | |
361 | return val | |
362 | def DeviceToLogicalY(self,arg0): | |
363 | val = gdic.wxDC_DeviceToLogicalY(self.this,arg0) | |
364 | return val | |
365 | def DeviceToLogicalYRel(self,arg0): | |
366 | val = gdic.wxDC_DeviceToLogicalYRel(self.this,arg0) | |
367 | return val | |
368 | def DrawArc(self,arg0,arg1,arg2,arg3,arg4,arg5): | |
369 | val = gdic.wxDC_DrawArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5) | |
370 | return val | |
371 | def DrawEllipse(self,arg0,arg1,arg2,arg3): | |
372 | val = gdic.wxDC_DrawEllipse(self.this,arg0,arg1,arg2,arg3) | |
373 | return val | |
374 | def DrawEllipticArc(self,arg0,arg1,arg2,arg3,arg4,arg5): | |
375 | val = gdic.wxDC_DrawEllipticArc(self.this,arg0,arg1,arg2,arg3,arg4,arg5) | |
376 | return val | |
377 | def DrawIcon(self,arg0,arg1,arg2): | |
378 | val = gdic.wxDC_DrawIcon(self.this,arg0.this,arg1,arg2) | |
379 | return val | |
380 | def DrawLine(self,arg0,arg1,arg2,arg3): | |
381 | val = gdic.wxDC_DrawLine(self.this,arg0,arg1,arg2,arg3) | |
382 | return val | |
383 | def DrawLines(self,arg0,*args): | |
384 | argl = map(None,args) | |
385 | try: argl[0] = argl[0].this | |
386 | except: pass | |
387 | args = tuple(argl) | |
388 | val = apply(gdic.wxDC_DrawLines,(self.this,arg0,)+args) | |
389 | return val | |
390 | def DrawPolygon(self,arg0,*args): | |
391 | argl = map(None,args) | |
392 | try: argl[0] = argl[0].this | |
393 | except: pass | |
394 | args = tuple(argl) | |
395 | val = apply(gdic.wxDC_DrawPolygon,(self.this,arg0,)+args) | |
396 | return val | |
397 | def DrawPoint(self,arg0,arg1): | |
398 | val = gdic.wxDC_DrawPoint(self.this,arg0,arg1) | |
399 | return val | |
400 | def DrawRectangle(self,arg0,arg1,arg2,arg3): | |
401 | val = gdic.wxDC_DrawRectangle(self.this,arg0,arg1,arg2,arg3) | |
402 | return val | |
403 | def DrawRoundedRectangle(self,arg0,arg1,arg2,arg3,*args): | |
404 | val = apply(gdic.wxDC_DrawRoundedRectangle,(self.this,arg0,arg1,arg2,arg3,)+args) | |
405 | return val | |
406 | def DrawSpline(self,arg0,*args): | |
407 | argl = map(None,args) | |
408 | try: argl[0] = argl[0].this | |
409 | except: pass | |
410 | args = tuple(argl) | |
411 | val = apply(gdic.wxDC_DrawSpline,(self.this,arg0,)+args) | |
412 | return val | |
413 | def DrawText(self,arg0,arg1,arg2): | |
414 | val = gdic.wxDC_DrawText(self.this,arg0,arg1,arg2) | |
415 | return val | |
416 | def EndDoc(self): | |
417 | val = gdic.wxDC_EndDoc(self.this) | |
418 | return val | |
419 | def EndDrawing(self): | |
420 | val = gdic.wxDC_EndDrawing(self.this) | |
421 | return val | |
422 | def EndPage(self): | |
423 | val = gdic.wxDC_EndPage(self.this) | |
424 | return val | |
be4d9c1f RD |
425 | def FloodFill(self,arg0,arg1,arg2,*args): |
426 | val = apply(gdic.wxDC_FloodFill,(self.this,arg0,arg1,arg2.this,)+args) | |
427 | return val | |
8ab979d7 RD |
428 | def GetBackground(self): |
429 | val = gdic.wxDC_GetBackground(self.this) | |
430 | val = wxBrushPtr(val) | |
431 | return val | |
432 | def GetBrush(self): | |
433 | val = gdic.wxDC_GetBrush(self.this) | |
434 | val = wxBrushPtr(val) | |
435 | return val | |
436 | def GetCharHeight(self): | |
437 | val = gdic.wxDC_GetCharHeight(self.this) | |
438 | return val | |
439 | def GetCharWidth(self): | |
440 | val = gdic.wxDC_GetCharWidth(self.this) | |
441 | return val | |
442 | def GetClippingBox(self): | |
443 | val = gdic.wxDC_GetClippingBox(self.this) | |
444 | return val | |
445 | def GetFont(self): | |
446 | val = gdic.wxDC_GetFont(self.this) | |
447 | val = wxFontPtr(val) | |
448 | return val | |
449 | def GetLogicalFunction(self): | |
450 | val = gdic.wxDC_GetLogicalFunction(self.this) | |
451 | return val | |
452 | def GetMapMode(self): | |
453 | val = gdic.wxDC_GetMapMode(self.this) | |
454 | return val | |
455 | def GetOptimization(self): | |
456 | val = gdic.wxDC_GetOptimization(self.this) | |
457 | return val | |
458 | def GetPen(self): | |
459 | val = gdic.wxDC_GetPen(self.this) | |
460 | val = wxPenPtr(val) | |
461 | return val | |
462 | def GetPixel(self,arg0,arg1): | |
463 | val = gdic.wxDC_GetPixel(self.this,arg0,arg1) | |
464 | val = wxColourPtr(val) | |
465 | val.thisown = 1 | |
466 | return val | |
467 | def GetSize(self): | |
468 | val = gdic.wxDC_GetSize(self.this) | |
469 | return val | |
470 | def GetTextBackground(self): | |
471 | val = gdic.wxDC_GetTextBackground(self.this) | |
472 | val = wxColourPtr(val) | |
473 | return val | |
474 | def GetTextExtent(self,arg0): | |
475 | val = gdic.wxDC_GetTextExtent(self.this,arg0) | |
476 | return val | |
477 | def GetTextForeground(self): | |
478 | val = gdic.wxDC_GetTextForeground(self.this) | |
479 | val = wxColourPtr(val) | |
480 | return val | |
481 | def LogicalToDeviceX(self,arg0): | |
482 | val = gdic.wxDC_LogicalToDeviceX(self.this,arg0) | |
483 | return val | |
484 | def LogicalToDeviceXRel(self,arg0): | |
485 | val = gdic.wxDC_LogicalToDeviceXRel(self.this,arg0) | |
486 | return val | |
487 | def LogicalToDeviceY(self,arg0): | |
488 | val = gdic.wxDC_LogicalToDeviceY(self.this,arg0) | |
489 | return val | |
490 | def LogicalToDeviceYRel(self,arg0): | |
491 | val = gdic.wxDC_LogicalToDeviceYRel(self.this,arg0) | |
492 | return val | |
493 | def MaxX(self): | |
494 | val = gdic.wxDC_MaxX(self.this) | |
495 | return val | |
496 | def MaxY(self): | |
497 | val = gdic.wxDC_MaxY(self.this) | |
498 | return val | |
499 | def MinX(self): | |
500 | val = gdic.wxDC_MinX(self.this) | |
501 | return val | |
502 | def MinY(self): | |
503 | val = gdic.wxDC_MinY(self.this) | |
504 | return val | |
505 | def Ok(self): | |
506 | val = gdic.wxDC_Ok(self.this) | |
507 | return val | |
508 | def SetDeviceOrigin(self,arg0,arg1): | |
509 | val = gdic.wxDC_SetDeviceOrigin(self.this,arg0,arg1) | |
510 | return val | |
511 | def SetBackground(self,arg0): | |
512 | val = gdic.wxDC_SetBackground(self.this,arg0.this) | |
513 | return val | |
514 | def SetBackgroundMode(self,arg0): | |
515 | val = gdic.wxDC_SetBackgroundMode(self.this,arg0) | |
516 | return val | |
517 | def SetClippingRegion(self,arg0,arg1,arg2,arg3): | |
518 | val = gdic.wxDC_SetClippingRegion(self.this,arg0,arg1,arg2,arg3) | |
519 | return val | |
520 | def SetPalette(self,arg0): | |
b639c3c5 | 521 | val = gdic.wxDC_SetPalette(self.this,arg0.this) |
8ab979d7 RD |
522 | return val |
523 | def SetBrush(self,arg0): | |
524 | val = gdic.wxDC_SetBrush(self.this,arg0.this) | |
525 | return val | |
526 | def SetFont(self,arg0): | |
527 | val = gdic.wxDC_SetFont(self.this,arg0.this) | |
528 | return val | |
529 | def SetLogicalFunction(self,arg0): | |
530 | val = gdic.wxDC_SetLogicalFunction(self.this,arg0) | |
531 | return val | |
532 | def SetMapMode(self,arg0): | |
533 | val = gdic.wxDC_SetMapMode(self.this,arg0) | |
534 | return val | |
535 | def SetOptimization(self,arg0): | |
536 | val = gdic.wxDC_SetOptimization(self.this,arg0) | |
537 | return val | |
538 | def SetPen(self,arg0): | |
539 | val = gdic.wxDC_SetPen(self.this,arg0.this) | |
540 | return val | |
541 | def SetTextBackground(self,arg0): | |
542 | val = gdic.wxDC_SetTextBackground(self.this,arg0.this) | |
543 | return val | |
544 | def SetTextForeground(self,arg0): | |
545 | val = gdic.wxDC_SetTextForeground(self.this,arg0.this) | |
546 | return val | |
547 | def SetUserScale(self,arg0,arg1): | |
548 | val = gdic.wxDC_SetUserScale(self.this,arg0,arg1) | |
549 | return val | |
550 | def StartDoc(self,arg0): | |
551 | val = gdic.wxDC_StartDoc(self.this,arg0) | |
552 | return val | |
553 | def StartPage(self): | |
554 | val = gdic.wxDC_StartPage(self.this) | |
555 | return val | |
556 | def DrawBitmap(self,arg0,arg1,arg2,*args): | |
557 | val = apply(gdic.wxDC_DrawBitmap,(self.this,arg0.this,arg1,arg2,)+args) | |
558 | return val | |
559 | def __repr__(self): | |
560 | return "<C wxDC instance>" | |
561 | class wxDC(wxDCPtr): | |
562 | def __init__(self,this): | |
563 | self.this = this | |
564 | ||
565 | ||
566 | ||
567 | ||
568 | class wxMemoryDCPtr(wxDCPtr): | |
569 | def __init__(self,this): | |
570 | self.this = this | |
571 | self.thisown = 0 | |
572 | def SelectObject(self,arg0): | |
573 | val = gdic.wxMemoryDC_SelectObject(self.this,arg0.this) | |
574 | return val | |
575 | def __repr__(self): | |
576 | return "<C wxMemoryDC instance>" | |
577 | class wxMemoryDC(wxMemoryDCPtr): | |
578 | def __init__(self) : | |
579 | self.this = gdic.new_wxMemoryDC() | |
580 | self.thisown = 1 | |
581 | ||
582 | ||
583 | ||
584 | ||
585 | class wxScreenDCPtr(wxDCPtr): | |
586 | def __init__(self,this): | |
587 | self.this = this | |
588 | self.thisown = 0 | |
589 | def StartDrawingOnTop(self,arg0): | |
590 | val = gdic.wxScreenDC_StartDrawingOnTop(self.this,arg0.this) | |
591 | return val | |
592 | def StartDrawingOnTopRect(self,*args): | |
593 | argl = map(None,args) | |
594 | try: argl[0] = argl[0].this | |
595 | except: pass | |
596 | args = tuple(argl) | |
597 | val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self.this,)+args) | |
598 | return val | |
599 | def EndDrawingOnTop(self): | |
600 | val = gdic.wxScreenDC_EndDrawingOnTop(self.this) | |
601 | return val | |
602 | def __repr__(self): | |
603 | return "<C wxScreenDC instance>" | |
604 | class wxScreenDC(wxScreenDCPtr): | |
605 | def __init__(self) : | |
606 | self.this = gdic.new_wxScreenDC() | |
607 | self.thisown = 1 | |
608 | ||
609 | ||
610 | ||
611 | ||
612 | class wxClientDCPtr(wxDCPtr): | |
613 | def __init__(self,this): | |
614 | self.this = this | |
615 | self.thisown = 0 | |
616 | def __repr__(self): | |
617 | return "<C wxClientDC instance>" | |
618 | class wxClientDC(wxClientDCPtr): | |
619 | def __init__(self,arg0) : | |
620 | self.this = gdic.new_wxClientDC(arg0.this) | |
621 | self.thisown = 1 | |
622 | ||
623 | ||
624 | ||
625 | ||
626 | class wxPaintDCPtr(wxDCPtr): | |
627 | def __init__(self,this): | |
628 | self.this = this | |
629 | self.thisown = 0 | |
630 | def __repr__(self): | |
631 | return "<C wxPaintDC instance>" | |
632 | class wxPaintDC(wxPaintDCPtr): | |
633 | def __init__(self,arg0) : | |
634 | self.this = gdic.new_wxPaintDC(arg0.this) | |
635 | self.thisown = 1 | |
636 | ||
637 | ||
638 | ||
639 | ||
b639c3c5 RD |
640 | class wxWindowDCPtr(wxDCPtr): |
641 | def __init__(self,this): | |
642 | self.this = this | |
643 | self.thisown = 0 | |
644 | def __repr__(self): | |
645 | return "<C wxWindowDC instance>" | |
646 | class wxWindowDC(wxWindowDCPtr): | |
647 | def __init__(self,arg0) : | |
648 | self.this = gdic.new_wxWindowDC(arg0.this) | |
649 | self.thisown = 1 | |
650 | ||
651 | ||
652 | ||
653 | ||
8ab979d7 RD |
654 | class wxPrinterDCPtr(wxDCPtr): |
655 | def __init__(self,this): | |
656 | self.this = this | |
657 | self.thisown = 0 | |
658 | def __repr__(self): | |
659 | return "<C wxPrinterDC instance>" | |
660 | class wxPrinterDC(wxPrinterDCPtr): | |
661 | def __init__(self,arg0,arg1,arg2,*args) : | |
662 | self.this = apply(gdic.new_wxPrinterDC,(arg0,arg1,arg2,)+args) | |
663 | self.thisown = 1 | |
664 | ||
665 | ||
666 | ||
667 | ||
668 | class wxMetaFileDCPtr(wxDCPtr): | |
669 | def __init__(self,this): | |
670 | self.this = this | |
671 | self.thisown = 0 | |
672 | def Close(self): | |
673 | val = gdic.wxMetaFileDC_Close(self.this) | |
674 | return val | |
675 | def __repr__(self): | |
676 | return "<C wxMetaFileDC instance>" | |
677 | class wxMetaFileDC(wxMetaFileDCPtr): | |
678 | def __init__(self,*args) : | |
679 | self.this = apply(gdic.new_wxMetaFileDC,()+args) | |
680 | self.thisown = 1 | |
681 | ||
682 | ||
683 | ||
684 | ||
b639c3c5 RD |
685 | class wxPalettePtr : |
686 | def __init__(self,this): | |
687 | self.this = this | |
688 | self.thisown = 0 | |
689 | def __del__(self): | |
690 | if self.thisown == 1 : | |
691 | gdic.delete_wxPalette(self.this) | |
692 | def GetPixel(self,arg0,arg1,arg2): | |
693 | val = gdic.wxPalette_GetPixel(self.this,arg0,arg1,arg2) | |
694 | return val | |
695 | def GetRGB(self,arg0,arg1,arg2,arg3): | |
696 | val = gdic.wxPalette_GetRGB(self.this,arg0,arg1,arg2,arg3) | |
697 | return val | |
698 | def Ok(self): | |
699 | val = gdic.wxPalette_Ok(self.this) | |
700 | return val | |
701 | def __repr__(self): | |
702 | return "<C wxPalette instance>" | |
703 | class wxPalette(wxPalettePtr): | |
704 | def __init__(self,arg0,arg1,arg2) : | |
705 | self.this = gdic.new_wxPalette(arg0,arg1,arg2) | |
706 | self.thisown = 1 | |
707 | ||
708 | ||
709 | ||
710 | ||
8ab979d7 RD |
711 | |
712 | ||
713 | #-------------- FUNCTION WRAPPERS ------------------ | |
714 | ||
715 | def wxEmptyBitmap(arg0,arg1,*args): | |
716 | val = apply(gdic.wxEmptyBitmap,(arg0,arg1,)+args) | |
717 | val = wxBitmapPtr(val) | |
718 | val.thisown = 1 | |
719 | return val | |
720 | ||
721 | def wxNoRefBitmap(arg0,arg1): | |
722 | val = gdic.wxNoRefBitmap(arg0,arg1) | |
723 | val = wxBitmapPtr(val) | |
724 | return val | |
725 | ||
726 | def wxMaskColour(arg0,arg1): | |
727 | val = gdic.wxMaskColour(arg0.this,arg1.this) | |
728 | val = wxMaskPtr(val) | |
729 | val.thisown = 1 | |
730 | return val | |
731 | ||
732 | def wxStockCursor(arg0): | |
733 | val = gdic.wxStockCursor(arg0) | |
734 | val = wxCursorPtr(val) | |
735 | val.thisown = 1 | |
736 | return val | |
737 | ||
738 | def wxNamedColour(arg0): | |
739 | val = gdic.wxNamedColour(arg0) | |
740 | val = wxColourPtr(val) | |
741 | val.thisown = 1 | |
742 | return val | |
743 | ||
744 | def wxMemoryDCFromDC(arg0): | |
745 | val = gdic.wxMemoryDCFromDC(arg0.this) | |
746 | val = wxMemoryDCPtr(val) | |
747 | val.thisown = 1 | |
748 | return val | |
749 | ||
750 | ||
751 | ||
752 | #-------------- VARIABLE WRAPPERS ------------------ | |
753 | ||
754 | cvar = gdic.cvar | |
755 | wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT) | |
756 | wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT) | |
757 | wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT) | |
758 | wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT) | |
759 | wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN) | |
760 | wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN) | |
761 | wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN) | |
762 | wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN) | |
763 | wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN) | |
764 | wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN) | |
765 | wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN) | |
766 | wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN) | |
767 | wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN) | |
768 | wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN) | |
769 | wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH) | |
770 | wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH) | |
771 | wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH) | |
772 | wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH) | |
773 | wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH) | |
774 | wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH) | |
775 | wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH) | |
776 | wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH) | |
777 | wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH) | |
778 | wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH) | |
779 | wxBLACK = wxColourPtr(gdic.cvar.wxBLACK) | |
780 | wxWHITE = wxColourPtr(gdic.cvar.wxWHITE) | |
781 | wxRED = wxColourPtr(gdic.cvar.wxRED) | |
782 | wxBLUE = wxColourPtr(gdic.cvar.wxBLUE) | |
783 | wxGREEN = wxColourPtr(gdic.cvar.wxGREEN) | |
784 | wxCYAN = wxColourPtr(gdic.cvar.wxCYAN) | |
785 | wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY) | |
786 | wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR) | |
787 | wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR) | |
788 | wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR) | |
789 | wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap) | |
790 | wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon) | |
791 | wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor) | |
792 | wxNullPen = wxPenPtr(gdic.cvar.wxNullPen) | |
793 | wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush) | |
794 | wxNullFont = wxFontPtr(gdic.cvar.wxNullFont) | |
795 | wxNullColour = wxColourPtr(gdic.cvar.wxNullColour) |