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