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