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