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