]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/gdi.py
new wxMenu stuff and thread implementations
[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
134d79dc
RD
159 def GetEncoding(self, *_args, **_kwargs):
160 val = apply(gdic.wxFont_GetEncoding,(self,) + _args, _kwargs)
161 return val
2d091820
RD
162 def SetFaceName(self, *_args, **_kwargs):
163 val = apply(gdic.wxFont_SetFaceName,(self,) + _args, _kwargs)
d3b4d113 164 return val
2d091820
RD
165 def SetFamily(self, *_args, **_kwargs):
166 val = apply(gdic.wxFont_SetFamily,(self,) + _args, _kwargs)
d3b4d113 167 return val
2d091820
RD
168 def SetPointSize(self, *_args, **_kwargs):
169 val = apply(gdic.wxFont_SetPointSize,(self,) + _args, _kwargs)
d3b4d113 170 return val
2d091820
RD
171 def SetStyle(self, *_args, **_kwargs):
172 val = apply(gdic.wxFont_SetStyle,(self,) + _args, _kwargs)
d3b4d113 173 return val
2d091820
RD
174 def SetUnderlined(self, *_args, **_kwargs):
175 val = apply(gdic.wxFont_SetUnderlined,(self,) + _args, _kwargs)
d3b4d113 176 return val
2d091820
RD
177 def SetWeight(self, *_args, **_kwargs):
178 val = apply(gdic.wxFont_SetWeight,(self,) + _args, _kwargs)
d3b4d113 179 return val
134d79dc
RD
180 def SetEncoding(self, *_args, **_kwargs):
181 val = apply(gdic.wxFont_SetEncoding,(self,) + _args, _kwargs)
182 return val
183 def GetFamilyString(self, *_args, **_kwargs):
184 val = apply(gdic.wxFont_GetFamilyString,(self,) + _args, _kwargs)
185 return val
186 def GetStyleString(self, *_args, **_kwargs):
187 val = apply(gdic.wxFont_GetStyleString,(self,) + _args, _kwargs)
188 return val
189 def GetWeightString(self, *_args, **_kwargs):
190 val = apply(gdic.wxFont_GetWeightString,(self,) + _args, _kwargs)
191 return val
70551f47 192 def __repr__(self):
2d091820 193 return "<C wxFont instance at %s>" % (self.this,)
70551f47 194class wxFont(wxFontPtr):
2d091820
RD
195 def __init__(self,*_args,**_kwargs):
196 self.this = apply(gdic.new_wxFont,_args,_kwargs)
70551f47
RD
197 self.thisown = 1
198
199
200
201
202class wxColourPtr :
203 def __init__(self,this):
204 self.this = this
205 self.thisown = 0
2d091820 206 def __del__(self,gdic=gdic):
70551f47 207 if self.thisown == 1 :
2d091820
RD
208 gdic.delete_wxColour(self)
209 def Red(self, *_args, **_kwargs):
210 val = apply(gdic.wxColour_Red,(self,) + _args, _kwargs)
70551f47 211 return val
2d091820
RD
212 def Green(self, *_args, **_kwargs):
213 val = apply(gdic.wxColour_Green,(self,) + _args, _kwargs)
70551f47 214 return val
2d091820
RD
215 def Blue(self, *_args, **_kwargs):
216 val = apply(gdic.wxColour_Blue,(self,) + _args, _kwargs)
70551f47 217 return val
2d091820
RD
218 def Ok(self, *_args, **_kwargs):
219 val = apply(gdic.wxColour_Ok,(self,) + _args, _kwargs)
70551f47 220 return val
2d091820
RD
221 def Set(self, *_args, **_kwargs):
222 val = apply(gdic.wxColour_Set,(self,) + _args, _kwargs)
70551f47 223 return val
2d091820
RD
224 def Get(self, *_args, **_kwargs):
225 val = apply(gdic.wxColour_Get,(self,) + _args, _kwargs)
70551f47
RD
226 return val
227 def __repr__(self):
2d091820 228 return "<C wxColour instance at %s>" % (self.this,)
70551f47 229class wxColour(wxColourPtr):
2d091820
RD
230 def __init__(self,*_args,**_kwargs):
231 self.this = apply(gdic.new_wxColour,_args,_kwargs)
70551f47
RD
232 self.thisown = 1
233
234
235
236
237class wxPenPtr :
238 def __init__(self,this):
239 self.this = this
240 self.thisown = 0
2d091820
RD
241 def GetCap(self, *_args, **_kwargs):
242 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
70551f47 243 return val
2d091820
RD
244 def GetColour(self, *_args, **_kwargs):
245 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
246 if val: val = wxColourPtr(val)
70551f47 247 return val
2d091820
RD
248 def GetJoin(self, *_args, **_kwargs):
249 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
70551f47 250 return val
2d091820
RD
251 def GetStyle(self, *_args, **_kwargs):
252 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
70551f47 253 return val
2d091820
RD
254 def GetWidth(self, *_args, **_kwargs):
255 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
70551f47 256 return val
2d091820
RD
257 def Ok(self, *_args, **_kwargs):
258 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
70551f47 259 return val
2d091820
RD
260 def SetCap(self, *_args, **_kwargs):
261 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
70551f47 262 return val
2d091820
RD
263 def SetColour(self, *_args, **_kwargs):
264 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
70551f47 265 return val
2d091820
RD
266 def SetJoin(self, *_args, **_kwargs):
267 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
70551f47 268 return val
2d091820
RD
269 def SetStyle(self, *_args, **_kwargs):
270 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
70551f47 271 return val
2d091820
RD
272 def SetWidth(self, *_args, **_kwargs):
273 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
70551f47
RD
274 return val
275 def __repr__(self):
2d091820 276 return "<C wxPen instance at %s>" % (self.this,)
70551f47 277class wxPen(wxPenPtr):
2d091820
RD
278 def __init__(self,*_args,**_kwargs):
279 self.this = apply(gdic.new_wxPen,_args,_kwargs)
70551f47
RD
280 self.thisown = 1
281
282
283
284
285class wxBrushPtr :
286 def __init__(self,this):
287 self.this = this
288 self.thisown = 0
2d091820
RD
289 def GetColour(self, *_args, **_kwargs):
290 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
291 if val: val = wxColourPtr(val)
70551f47 292 return val
2d091820
RD
293 def GetStipple(self, *_args, **_kwargs):
294 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
295 if val: val = wxBitmapPtr(val)
70551f47 296 return val
2d091820
RD
297 def GetStyle(self, *_args, **_kwargs):
298 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
70551f47 299 return val
2d091820
RD
300 def Ok(self, *_args, **_kwargs):
301 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
70551f47 302 return val
2d091820
RD
303 def SetColour(self, *_args, **_kwargs):
304 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
c95e68d8 305 return val
2d091820
RD
306 def SetStipple(self, *_args, **_kwargs):
307 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
c95e68d8 308 return val
2d091820
RD
309 def SetStyle(self, *_args, **_kwargs):
310 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
c95e68d8 311 return val
70551f47 312 def __repr__(self):
2d091820 313 return "<C wxBrush instance at %s>" % (self.this,)
70551f47 314class wxBrush(wxBrushPtr):
2d091820
RD
315 def __init__(self,*_args,**_kwargs):
316 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
70551f47
RD
317 self.thisown = 1
318
319
320
321
322class wxDCPtr :
323 def __init__(self,this):
324 self.this = this
325 self.thisown = 0
2d091820 326 def __del__(self,gdic=gdic):
70551f47 327 if self.thisown == 1 :
2d091820
RD
328 gdic.delete_wxDC(self)
329 def BeginDrawing(self, *_args, **_kwargs):
330 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
70551f47 331 return val
2d091820
RD
332 def Blit(self, *_args, **_kwargs):
333 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
70551f47 334 return val
2d091820
RD
335 def Clear(self, *_args, **_kwargs):
336 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
70551f47 337 return val
2d091820
RD
338 def CrossHair(self, *_args, **_kwargs):
339 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
70551f47 340 return val
2d091820
RD
341 def DestroyClippingRegion(self, *_args, **_kwargs):
342 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
70551f47 343 return val
2d091820
RD
344 def DeviceToLogicalX(self, *_args, **_kwargs):
345 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
70551f47 346 return val
2d091820
RD
347 def DeviceToLogicalXRel(self, *_args, **_kwargs):
348 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
70551f47 349 return val
2d091820
RD
350 def DeviceToLogicalY(self, *_args, **_kwargs):
351 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
70551f47 352 return val
2d091820
RD
353 def DeviceToLogicalYRel(self, *_args, **_kwargs):
354 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
70551f47 355 return val
2d091820
RD
356 def DrawArc(self, *_args, **_kwargs):
357 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
70551f47 358 return val
2d091820
RD
359 def DrawCircle(self, *_args, **_kwargs):
360 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
d24a34bb 361 return val
2d091820
RD
362 def DrawEllipse(self, *_args, **_kwargs):
363 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
70551f47 364 return val
2d091820
RD
365 def DrawEllipticArc(self, *_args, **_kwargs):
366 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
70551f47 367 return val
2d091820
RD
368 def DrawIcon(self, *_args, **_kwargs):
369 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
70551f47 370 return val
2d091820
RD
371 def DrawLine(self, *_args, **_kwargs):
372 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
70551f47 373 return val
2d091820
RD
374 def DrawLines(self, *_args, **_kwargs):
375 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
70551f47 376 return val
2d091820
RD
377 def DrawPolygon(self, *_args, **_kwargs):
378 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
70551f47 379 return val
2d091820
RD
380 def DrawPoint(self, *_args, **_kwargs):
381 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
70551f47 382 return val
2d091820
RD
383 def DrawRectangle(self, *_args, **_kwargs):
384 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
70551f47 385 return val
2d091820
RD
386 def DrawRoundedRectangle(self, *_args, **_kwargs):
387 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
70551f47 388 return val
2d091820
RD
389 def DrawSpline(self, *_args, **_kwargs):
390 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
70551f47 391 return val
2d091820
RD
392 def DrawText(self, *_args, **_kwargs):
393 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
70551f47 394 return val
2d091820
RD
395 def EndDoc(self, *_args, **_kwargs):
396 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
70551f47 397 return val
2d091820
RD
398 def EndDrawing(self, *_args, **_kwargs):
399 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
70551f47 400 return val
2d091820
RD
401 def EndPage(self, *_args, **_kwargs):
402 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
70551f47 403 return val
2d091820
RD
404 def FloodFill(self, *_args, **_kwargs):
405 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
70551f47 406 return val
2d091820
RD
407 def GetBackground(self, *_args, **_kwargs):
408 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
409 if val: val = wxBrushPtr(val)
70551f47 410 return val
2d091820
RD
411 def GetBrush(self, *_args, **_kwargs):
412 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
413 if val: val = wxBrushPtr(val)
70551f47 414 return val
2d091820
RD
415 def GetCharHeight(self, *_args, **_kwargs):
416 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
70551f47 417 return val
2d091820
RD
418 def GetCharWidth(self, *_args, **_kwargs):
419 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
70551f47 420 return val
2d091820
RD
421 def GetClippingBox(self, *_args, **_kwargs):
422 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
70551f47 423 return val
2d091820
RD
424 def GetFont(self, *_args, **_kwargs):
425 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
426 if val: val = wxFontPtr(val)
70551f47 427 return val
2d091820
RD
428 def GetLogicalFunction(self, *_args, **_kwargs):
429 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
70551f47 430 return val
2d091820
RD
431 def GetMapMode(self, *_args, **_kwargs):
432 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
70551f47 433 return val
2d091820
RD
434 def GetOptimization(self, *_args, **_kwargs):
435 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
70551f47 436 return val
2d091820
RD
437 def GetPen(self, *_args, **_kwargs):
438 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
439 if val: val = wxPenPtr(val)
70551f47 440 return val
2d091820
RD
441 def GetPixel(self, *_args, **_kwargs):
442 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
443 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 444 return val
2d091820
RD
445 def GetSizeTuple(self, *_args, **_kwargs):
446 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
d24a34bb 447 return val
2d091820
RD
448 def GetSize(self, *_args, **_kwargs):
449 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
450 if val: val = wxSizePtr(val) ; val.thisown = 1
70551f47 451 return val
2d091820
RD
452 def GetTextBackground(self, *_args, **_kwargs):
453 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
454 if val: val = wxColourPtr(val)
70551f47 455 return val
2d091820
RD
456 def GetTextExtent(self, *_args, **_kwargs):
457 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
70551f47 458 return val
2d091820
RD
459 def GetFullTextExtent(self, *_args, **_kwargs):
460 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
21f8d7ea 461 return val
2d091820
RD
462 def GetTextForeground(self, *_args, **_kwargs):
463 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
464 if val: val = wxColourPtr(val)
70551f47 465 return val
2d091820
RD
466 def LogicalToDeviceX(self, *_args, **_kwargs):
467 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
70551f47 468 return val
2d091820
RD
469 def LogicalToDeviceXRel(self, *_args, **_kwargs):
470 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
70551f47 471 return val
2d091820
RD
472 def LogicalToDeviceY(self, *_args, **_kwargs):
473 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
70551f47 474 return val
2d091820
RD
475 def LogicalToDeviceYRel(self, *_args, **_kwargs):
476 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
70551f47 477 return val
2d091820
RD
478 def MaxX(self, *_args, **_kwargs):
479 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
70551f47 480 return val
2d091820
RD
481 def MaxY(self, *_args, **_kwargs):
482 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
70551f47 483 return val
2d091820
RD
484 def MinX(self, *_args, **_kwargs):
485 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
70551f47 486 return val
2d091820
RD
487 def MinY(self, *_args, **_kwargs):
488 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
70551f47 489 return val
2d091820
RD
490 def Ok(self, *_args, **_kwargs):
491 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
70551f47 492 return val
2d091820
RD
493 def SetDeviceOrigin(self, *_args, **_kwargs):
494 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
70551f47 495 return val
2d091820
RD
496 def SetBackground(self, *_args, **_kwargs):
497 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
70551f47 498 return val
2d091820
RD
499 def SetBackgroundMode(self, *_args, **_kwargs):
500 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
70551f47 501 return val
2d091820
RD
502 def SetClippingRegion(self, *_args, **_kwargs):
503 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
70551f47 504 return val
2d091820
RD
505 def SetPalette(self, *_args, **_kwargs):
506 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
70551f47 507 return val
2d091820
RD
508 def SetBrush(self, *_args, **_kwargs):
509 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
70551f47 510 return val
2d091820
RD
511 def SetFont(self, *_args, **_kwargs):
512 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
70551f47 513 return val
2d091820
RD
514 def SetLogicalFunction(self, *_args, **_kwargs):
515 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
70551f47 516 return val
2d091820
RD
517 def SetMapMode(self, *_args, **_kwargs):
518 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
70551f47 519 return val
2d091820
RD
520 def SetOptimization(self, *_args, **_kwargs):
521 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
70551f47 522 return val
2d091820
RD
523 def SetPen(self, *_args, **_kwargs):
524 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
70551f47 525 return val
2d091820
RD
526 def SetTextBackground(self, *_args, **_kwargs):
527 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
70551f47 528 return val
2d091820
RD
529 def SetTextForeground(self, *_args, **_kwargs):
530 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
70551f47 531 return val
2d091820
RD
532 def SetUserScale(self, *_args, **_kwargs):
533 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
70551f47 534 return val
2d091820
RD
535 def StartDoc(self, *_args, **_kwargs):
536 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
70551f47 537 return val
2d091820
RD
538 def StartPage(self, *_args, **_kwargs):
539 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
70551f47 540 return val
2d091820
RD
541 def DrawBitmap(self, *_args, **_kwargs):
542 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
70551f47
RD
543 return val
544 def __repr__(self):
2d091820 545 return "<C wxDC instance at %s>" % (self.this,)
70551f47
RD
546class wxDC(wxDCPtr):
547 def __init__(self,this):
548 self.this = this
549
550
551
552
553class wxMemoryDCPtr(wxDCPtr):
554 def __init__(self,this):
555 self.this = this
556 self.thisown = 0
2d091820
RD
557 def SelectObject(self, *_args, **_kwargs):
558 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
70551f47
RD
559 return val
560 def __repr__(self):
2d091820 561 return "<C wxMemoryDC instance at %s>" % (self.this,)
70551f47 562class wxMemoryDC(wxMemoryDCPtr):
2d091820
RD
563 def __init__(self,*_args,**_kwargs):
564 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
70551f47
RD
565 self.thisown = 1
566
567
568
569
570class wxScreenDCPtr(wxDCPtr):
571 def __init__(self,this):
572 self.this = this
573 self.thisown = 0
2d091820
RD
574 def StartDrawingOnTop(self, *_args, **_kwargs):
575 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
70551f47 576 return val
2d091820
RD
577 def StartDrawingOnTopRect(self, *_args, **_kwargs):
578 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
70551f47 579 return val
2d091820
RD
580 def EndDrawingOnTop(self, *_args, **_kwargs):
581 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
70551f47
RD
582 return val
583 def __repr__(self):
2d091820 584 return "<C wxScreenDC instance at %s>" % (self.this,)
70551f47 585class wxScreenDC(wxScreenDCPtr):
2d091820
RD
586 def __init__(self,*_args,**_kwargs):
587 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
70551f47
RD
588 self.thisown = 1
589
590
591
592
593class wxClientDCPtr(wxDCPtr):
594 def __init__(self,this):
595 self.this = this
596 self.thisown = 0
597 def __repr__(self):
2d091820 598 return "<C wxClientDC instance at %s>" % (self.this,)
70551f47 599class wxClientDC(wxClientDCPtr):
2d091820
RD
600 def __init__(self,*_args,**_kwargs):
601 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
70551f47
RD
602 self.thisown = 1
603
604
605
606
607class wxPaintDCPtr(wxDCPtr):
608 def __init__(self,this):
609 self.this = this
610 self.thisown = 0
611 def __repr__(self):
2d091820 612 return "<C wxPaintDC instance at %s>" % (self.this,)
70551f47 613class wxPaintDC(wxPaintDCPtr):
2d091820
RD
614 def __init__(self,*_args,**_kwargs):
615 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
70551f47
RD
616 self.thisown = 1
617
618
619
620
c95e68d8
RD
621class wxWindowDCPtr(wxDCPtr):
622 def __init__(self,this):
623 self.this = this
624 self.thisown = 0
625 def __repr__(self):
2d091820 626 return "<C wxWindowDC instance at %s>" % (self.this,)
c95e68d8 627class wxWindowDC(wxWindowDCPtr):
2d091820
RD
628 def __init__(self,*_args,**_kwargs):
629 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
c95e68d8
RD
630 self.thisown = 1
631
632
633
634
70551f47
RD
635class wxPostScriptDCPtr(wxDCPtr):
636 def __init__(self,this):
637 self.this = this
638 self.thisown = 0
639 def __repr__(self):
2d091820 640 return "<C wxPostScriptDC instance at %s>" % (self.this,)
70551f47 641class wxPostScriptDC(wxPostScriptDCPtr):
2d091820
RD
642 def __init__(self,*_args,**_kwargs):
643 self.this = apply(gdic.new_wxPostScriptDC,_args,_kwargs)
70551f47
RD
644 self.thisown = 1
645
646
647
648
105e45b9
RD
649class wxPalettePtr :
650 def __init__(self,this):
651 self.this = this
652 self.thisown = 0
2d091820 653 def __del__(self,gdic=gdic):
105e45b9 654 if self.thisown == 1 :
2d091820
RD
655 gdic.delete_wxPalette(self)
656 def GetPixel(self, *_args, **_kwargs):
657 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
105e45b9 658 return val
2d091820
RD
659 def GetRGB(self, *_args, **_kwargs):
660 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
105e45b9 661 return val
2d091820
RD
662 def Ok(self, *_args, **_kwargs):
663 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
105e45b9
RD
664 return val
665 def __repr__(self):
2d091820 666 return "<C wxPalette instance at %s>" % (self.this,)
105e45b9 667class wxPalette(wxPalettePtr):
2d091820
RD
668 def __init__(self,*_args,**_kwargs):
669 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
105e45b9
RD
670 self.thisown = 1
671
672
673
674
21f8d7ea
RD
675class wxImageListPtr :
676 def __init__(self,this):
677 self.this = this
678 self.thisown = 0
2d091820 679 def __del__(self,gdic=gdic):
21f8d7ea 680 if self.thisown == 1 :
2d091820
RD
681 gdic.delete_wxImageList(self)
682 def Add(self, *_args, **_kwargs):
683 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
21f8d7ea 684 return val
2d091820
RD
685 def Replace(self, *_args, **_kwargs):
686 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
21f8d7ea 687 return val
2d091820
RD
688 def Draw(self, *_args, **_kwargs):
689 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
21f8d7ea 690 return val
2d091820
RD
691 def GetImageCount(self, *_args, **_kwargs):
692 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
21f8d7ea 693 return val
2d091820
RD
694 def Remove(self, *_args, **_kwargs):
695 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
21f8d7ea 696 return val
2d091820
RD
697 def RemoveAll(self, *_args, **_kwargs):
698 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
21f8d7ea
RD
699 return val
700 def __repr__(self):
2d091820 701 return "<C wxImageList instance at %s>" % (self.this,)
21f8d7ea 702class wxImageList(wxImageListPtr):
2d091820
RD
703 def __init__(self,*_args,**_kwargs):
704 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
21f8d7ea
RD
705 self.thisown = 1
706
707
708
709
70551f47
RD
710
711
712#-------------- FUNCTION WRAPPERS ------------------
713
2d091820
RD
714def wxEmptyBitmap(*_args, **_kwargs):
715 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
716 if val: val = wxBitmapPtr(val); val.thisown = 1
70551f47
RD
717 return val
718
2d091820
RD
719def wxNoRefBitmap(*_args, **_kwargs):
720 val = apply(gdic.wxNoRefBitmap,_args,_kwargs)
721 if val: val = wxBitmapPtr(val)
70551f47
RD
722 return val
723
2d091820
RD
724def wxMaskColour(*_args, **_kwargs):
725 val = apply(gdic.wxMaskColour,_args,_kwargs)
726 if val: val = wxMaskPtr(val); val.thisown = 1
70551f47
RD
727 return val
728
2d091820
RD
729def wxStockCursor(*_args, **_kwargs):
730 val = apply(gdic.wxStockCursor,_args,_kwargs)
731 if val: val = wxCursorPtr(val); val.thisown = 1
70551f47
RD
732 return val
733
134d79dc
RD
734wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding
735
736wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding
737
2d091820
RD
738def wxNamedColour(*_args, **_kwargs):
739 val = apply(gdic.wxNamedColour,_args,_kwargs)
740 if val: val = wxColourPtr(val); val.thisown = 1
70551f47
RD
741 return val
742
2d091820
RD
743def wxMemoryDCFromDC(*_args, **_kwargs):
744 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
745 if val: val = wxMemoryDCPtr(val); val.thisown = 1
70551f47
RD
746 return val
747
748
749
750#-------------- VARIABLE WRAPPERS ------------------
751
134d79dc
RD
752wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM
753wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT
754wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1
755wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2
756wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3
757wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4
758wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5
759wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6
760wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7
761wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8
762wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9
763wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10
764wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11
765wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12
766wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13
767wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14
768wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15
769wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8
770wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE
771wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN
772wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437
773wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850
774wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852
775wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855
776wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866
777wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250
778wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251
779wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252
780wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX
70551f47
RD
781cvar = gdic.cvar
782wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
783wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
784wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
785wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
786wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
787wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
788wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
789wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
790wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
791wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
792wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
793wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
794wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
795wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
796wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
797wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
798wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
799wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
800wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
801wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
802wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
803wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
804wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
805wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
806wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
807wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
808wxRED = wxColourPtr(gdic.cvar.wxRED)
809wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
810wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
811wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
812wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
813wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
814wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
815wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
816wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
817wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
818wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
819wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
820wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
21f8d7ea 821wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
70551f47
RD
822wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
823wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
21f8d7ea
RD
824wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
825wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
826wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
827wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
828wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
829wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
830wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE