]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/gtk/gdi.py
it is now possible to add custom buttons into wxHtmlHelpFrame's toolbar
[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 11 gdic.delete_wxBitmap(self)
2d091820
RD
12 def GetPalette(self, *_args, **_kwargs):
13 val = apply(gdic.wxBitmap_GetPalette,(self,) + _args, _kwargs)
14 if val: val = wxPalettePtr(val)
70551f47 15 return val
2d091820
RD
16 def GetMask(self, *_args, **_kwargs):
17 val = apply(gdic.wxBitmap_GetMask,(self,) + _args, _kwargs)
18 if val: val = wxMaskPtr(val)
70551f47 19 return val
2d091820
RD
20 def LoadFile(self, *_args, **_kwargs):
21 val = apply(gdic.wxBitmap_LoadFile,(self,) + _args, _kwargs)
70551f47 22 return val
2d091820
RD
23 def SaveFile(self, *_args, **_kwargs):
24 val = apply(gdic.wxBitmap_SaveFile,(self,) + _args, _kwargs)
70551f47 25 return val
2d091820
RD
26 def SetMask(self, *_args, **_kwargs):
27 val = apply(gdic.wxBitmap_SetMask,(self,) + _args, _kwargs)
70551f47 28 return val
56f5d962
RD
29 def Ok(self, *_args, **_kwargs):
30 val = apply(gdic.wxBitmap_Ok,(self,) + _args, _kwargs)
31 return val
32 def GetWidth(self, *_args, **_kwargs):
33 val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs)
34 return val
35 def GetHeight(self, *_args, **_kwargs):
36 val = apply(gdic.wxBitmap_GetHeight,(self,) + _args, _kwargs)
37 return val
38 def GetDepth(self, *_args, **_kwargs):
39 val = apply(gdic.wxBitmap_GetDepth,(self,) + _args, _kwargs)
40 return val
2d091820
RD
41 def SetWidth(self, *_args, **_kwargs):
42 val = apply(gdic.wxBitmap_SetWidth,(self,) + _args, _kwargs)
70551f47 43 return val
56f5d962
RD
44 def SetHeight(self, *_args, **_kwargs):
45 val = apply(gdic.wxBitmap_SetHeight,(self,) + _args, _kwargs)
46 return val
47 def SetDepth(self, *_args, **_kwargs):
48 val = apply(gdic.wxBitmap_SetDepth,(self,) + _args, _kwargs)
49 return val
70551f47 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
70551f47 64 def __repr__(self):
2d091820 65 return "<C wxMask instance at %s>" % (self.this,)
70551f47 66class wxMask(wxMaskPtr):
2d091820
RD
67 def __init__(self,*_args,**_kwargs):
68 self.this = apply(gdic.new_wxMask,_args,_kwargs)
70551f47
RD
69 self.thisown = 1
70
71
72
73
56f5d962 74class wxIconPtr :
70551f47
RD
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
2d091820 78 def __del__(self,gdic=gdic):
70551f47 79 if self.thisown == 1 :
2d091820 80 gdic.delete_wxIcon(self)
56f5d962
RD
81 def LoadFile(self, *_args, **_kwargs):
82 val = apply(gdic.wxIcon_LoadFile,(self,) + _args, _kwargs)
70551f47 83 return val
56f5d962
RD
84 def Ok(self, *_args, **_kwargs):
85 val = apply(gdic.wxIcon_Ok,(self,) + _args, _kwargs)
70551f47 86 return val
2d091820
RD
87 def GetWidth(self, *_args, **_kwargs):
88 val = apply(gdic.wxIcon_GetWidth,(self,) + _args, _kwargs)
70551f47 89 return val
56f5d962
RD
90 def GetHeight(self, *_args, **_kwargs):
91 val = apply(gdic.wxIcon_GetHeight,(self,) + _args, _kwargs)
70551f47 92 return val
56f5d962
RD
93 def GetDepth(self, *_args, **_kwargs):
94 val = apply(gdic.wxIcon_GetDepth,(self,) + _args, _kwargs)
70551f47 95 return val
56f5d962
RD
96 def SetWidth(self, *_args, **_kwargs):
97 val = apply(gdic.wxIcon_SetWidth,(self,) + _args, _kwargs)
70551f47 98 return val
2d091820
RD
99 def SetHeight(self, *_args, **_kwargs):
100 val = apply(gdic.wxIcon_SetHeight,(self,) + _args, _kwargs)
70551f47 101 return val
56f5d962
RD
102 def SetDepth(self, *_args, **_kwargs):
103 val = apply(gdic.wxIcon_SetDepth,(self,) + _args, _kwargs)
70551f47
RD
104 return val
105 def __repr__(self):
2d091820 106 return "<C wxIcon instance at %s>" % (self.this,)
70551f47 107class wxIcon(wxIconPtr):
2d091820
RD
108 def __init__(self,*_args,**_kwargs):
109 self.this = apply(gdic.new_wxIcon,_args,_kwargs)
8bf5d46e 110 self.thisown = 1
70551f47
RD
111
112
113
114
56f5d962 115class wxCursorPtr :
70551f47
RD
116 def __init__(self,this):
117 self.this = this
118 self.thisown = 0
2d091820 119 def __del__(self,gdic=gdic):
70551f47 120 if self.thisown == 1 :
2d091820
RD
121 gdic.delete_wxCursor(self)
122 def Ok(self, *_args, **_kwargs):
123 val = apply(gdic.wxCursor_Ok,(self,) + _args, _kwargs)
70551f47
RD
124 return val
125 def __repr__(self):
2d091820 126 return "<C wxCursor instance at %s>" % (self.this,)
70551f47
RD
127class wxCursor(wxCursorPtr):
128 def __init__(self,this):
129 self.this = this
130
131
132
133
134class wxFontPtr :
135 def __init__(self,this):
136 self.this = this
137 self.thisown = 0
d29aba2f
RD
138 def Ok(self, *_args, **_kwargs):
139 val = apply(gdic.wxFont_Ok,(self,) + _args, _kwargs)
140 return val
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,)
ab2208b5
RD
229 asTuple = Get
230 def __str__(self): return str(self.asTuple())
231 def __repr__(self): return str(self.asTuple())
70551f47 232class wxColour(wxColourPtr):
2d091820
RD
233 def __init__(self,*_args,**_kwargs):
234 self.this = apply(gdic.new_wxColour,_args,_kwargs)
70551f47
RD
235 self.thisown = 1
236
237
238
239
240class wxPenPtr :
241 def __init__(self,this):
242 self.this = this
243 self.thisown = 0
2d091820
RD
244 def GetCap(self, *_args, **_kwargs):
245 val = apply(gdic.wxPen_GetCap,(self,) + _args, _kwargs)
70551f47 246 return val
2d091820
RD
247 def GetColour(self, *_args, **_kwargs):
248 val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
249 if val: val = wxColourPtr(val)
70551f47 250 return val
2d091820
RD
251 def GetJoin(self, *_args, **_kwargs):
252 val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
70551f47 253 return val
2d091820
RD
254 def GetStyle(self, *_args, **_kwargs):
255 val = apply(gdic.wxPen_GetStyle,(self,) + _args, _kwargs)
70551f47 256 return val
2d091820
RD
257 def GetWidth(self, *_args, **_kwargs):
258 val = apply(gdic.wxPen_GetWidth,(self,) + _args, _kwargs)
70551f47 259 return val
2d091820
RD
260 def Ok(self, *_args, **_kwargs):
261 val = apply(gdic.wxPen_Ok,(self,) + _args, _kwargs)
70551f47 262 return val
2d091820
RD
263 def SetCap(self, *_args, **_kwargs):
264 val = apply(gdic.wxPen_SetCap,(self,) + _args, _kwargs)
70551f47 265 return val
2d091820
RD
266 def SetColour(self, *_args, **_kwargs):
267 val = apply(gdic.wxPen_SetColour,(self,) + _args, _kwargs)
70551f47 268 return val
2d091820
RD
269 def SetJoin(self, *_args, **_kwargs):
270 val = apply(gdic.wxPen_SetJoin,(self,) + _args, _kwargs)
70551f47 271 return val
2d091820
RD
272 def SetStyle(self, *_args, **_kwargs):
273 val = apply(gdic.wxPen_SetStyle,(self,) + _args, _kwargs)
70551f47 274 return val
2d091820
RD
275 def SetWidth(self, *_args, **_kwargs):
276 val = apply(gdic.wxPen_SetWidth,(self,) + _args, _kwargs)
70551f47 277 return val
56f5d962
RD
278 def GetDashes(self, *_args, **_kwargs):
279 val = apply(gdic.wxPen_GetDashes,(self,) + _args, _kwargs)
280 return val
281 def SetDashes(self, *_args, **_kwargs):
282 val = apply(gdic.wxPen_SetDashes,(self,) + _args, _kwargs)
283 return val
70551f47 284 def __repr__(self):
2d091820 285 return "<C wxPen instance at %s>" % (self.this,)
70551f47 286class wxPen(wxPenPtr):
2d091820
RD
287 def __init__(self,*_args,**_kwargs):
288 self.this = apply(gdic.new_wxPen,_args,_kwargs)
70551f47
RD
289 self.thisown = 1
290
291
292
293
294class wxBrushPtr :
295 def __init__(self,this):
296 self.this = this
297 self.thisown = 0
2d091820
RD
298 def GetColour(self, *_args, **_kwargs):
299 val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
300 if val: val = wxColourPtr(val)
70551f47 301 return val
2d091820
RD
302 def GetStipple(self, *_args, **_kwargs):
303 val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
304 if val: val = wxBitmapPtr(val)
70551f47 305 return val
2d091820
RD
306 def GetStyle(self, *_args, **_kwargs):
307 val = apply(gdic.wxBrush_GetStyle,(self,) + _args, _kwargs)
70551f47 308 return val
2d091820
RD
309 def Ok(self, *_args, **_kwargs):
310 val = apply(gdic.wxBrush_Ok,(self,) + _args, _kwargs)
70551f47 311 return val
2d091820
RD
312 def SetColour(self, *_args, **_kwargs):
313 val = apply(gdic.wxBrush_SetColour,(self,) + _args, _kwargs)
c95e68d8 314 return val
2d091820
RD
315 def SetStipple(self, *_args, **_kwargs):
316 val = apply(gdic.wxBrush_SetStipple,(self,) + _args, _kwargs)
c95e68d8 317 return val
2d091820
RD
318 def SetStyle(self, *_args, **_kwargs):
319 val = apply(gdic.wxBrush_SetStyle,(self,) + _args, _kwargs)
c95e68d8 320 return val
70551f47 321 def __repr__(self):
2d091820 322 return "<C wxBrush instance at %s>" % (self.this,)
70551f47 323class wxBrush(wxBrushPtr):
2d091820
RD
324 def __init__(self,*_args,**_kwargs):
325 self.this = apply(gdic.new_wxBrush,_args,_kwargs)
70551f47
RD
326 self.thisown = 1
327
328
329
330
331class wxDCPtr :
332 def __init__(self,this):
333 self.this = this
334 self.thisown = 0
2d091820 335 def __del__(self,gdic=gdic):
70551f47 336 if self.thisown == 1 :
2d091820
RD
337 gdic.delete_wxDC(self)
338 def BeginDrawing(self, *_args, **_kwargs):
339 val = apply(gdic.wxDC_BeginDrawing,(self,) + _args, _kwargs)
70551f47 340 return val
2d091820
RD
341 def Blit(self, *_args, **_kwargs):
342 val = apply(gdic.wxDC_Blit,(self,) + _args, _kwargs)
70551f47 343 return val
2d091820
RD
344 def Clear(self, *_args, **_kwargs):
345 val = apply(gdic.wxDC_Clear,(self,) + _args, _kwargs)
70551f47 346 return val
2d091820
RD
347 def CrossHair(self, *_args, **_kwargs):
348 val = apply(gdic.wxDC_CrossHair,(self,) + _args, _kwargs)
70551f47 349 return val
2d091820
RD
350 def DestroyClippingRegion(self, *_args, **_kwargs):
351 val = apply(gdic.wxDC_DestroyClippingRegion,(self,) + _args, _kwargs)
70551f47 352 return val
2d091820
RD
353 def DeviceToLogicalX(self, *_args, **_kwargs):
354 val = apply(gdic.wxDC_DeviceToLogicalX,(self,) + _args, _kwargs)
70551f47 355 return val
2d091820
RD
356 def DeviceToLogicalXRel(self, *_args, **_kwargs):
357 val = apply(gdic.wxDC_DeviceToLogicalXRel,(self,) + _args, _kwargs)
70551f47 358 return val
2d091820
RD
359 def DeviceToLogicalY(self, *_args, **_kwargs):
360 val = apply(gdic.wxDC_DeviceToLogicalY,(self,) + _args, _kwargs)
70551f47 361 return val
2d091820
RD
362 def DeviceToLogicalYRel(self, *_args, **_kwargs):
363 val = apply(gdic.wxDC_DeviceToLogicalYRel,(self,) + _args, _kwargs)
70551f47 364 return val
2d091820
RD
365 def DrawArc(self, *_args, **_kwargs):
366 val = apply(gdic.wxDC_DrawArc,(self,) + _args, _kwargs)
70551f47 367 return val
2d091820
RD
368 def DrawCircle(self, *_args, **_kwargs):
369 val = apply(gdic.wxDC_DrawCircle,(self,) + _args, _kwargs)
d24a34bb 370 return val
2d091820
RD
371 def DrawEllipse(self, *_args, **_kwargs):
372 val = apply(gdic.wxDC_DrawEllipse,(self,) + _args, _kwargs)
70551f47 373 return val
2d091820
RD
374 def DrawEllipticArc(self, *_args, **_kwargs):
375 val = apply(gdic.wxDC_DrawEllipticArc,(self,) + _args, _kwargs)
70551f47 376 return val
2d091820
RD
377 def DrawIcon(self, *_args, **_kwargs):
378 val = apply(gdic.wxDC_DrawIcon,(self,) + _args, _kwargs)
70551f47 379 return val
2d091820
RD
380 def DrawLine(self, *_args, **_kwargs):
381 val = apply(gdic.wxDC_DrawLine,(self,) + _args, _kwargs)
70551f47 382 return val
2d091820
RD
383 def DrawLines(self, *_args, **_kwargs):
384 val = apply(gdic.wxDC_DrawLines,(self,) + _args, _kwargs)
70551f47 385 return val
2d091820
RD
386 def DrawPolygon(self, *_args, **_kwargs):
387 val = apply(gdic.wxDC_DrawPolygon,(self,) + _args, _kwargs)
70551f47 388 return val
2d091820
RD
389 def DrawPoint(self, *_args, **_kwargs):
390 val = apply(gdic.wxDC_DrawPoint,(self,) + _args, _kwargs)
70551f47 391 return val
2d091820
RD
392 def DrawRectangle(self, *_args, **_kwargs):
393 val = apply(gdic.wxDC_DrawRectangle,(self,) + _args, _kwargs)
70551f47 394 return val
56f5d962
RD
395 def DrawRotatedText(self, *_args, **_kwargs):
396 val = apply(gdic.wxDC_DrawRotatedText,(self,) + _args, _kwargs)
397 return val
2d091820
RD
398 def DrawRoundedRectangle(self, *_args, **_kwargs):
399 val = apply(gdic.wxDC_DrawRoundedRectangle,(self,) + _args, _kwargs)
70551f47 400 return val
2d091820
RD
401 def DrawSpline(self, *_args, **_kwargs):
402 val = apply(gdic.wxDC_DrawSpline,(self,) + _args, _kwargs)
70551f47 403 return val
2d091820
RD
404 def DrawText(self, *_args, **_kwargs):
405 val = apply(gdic.wxDC_DrawText,(self,) + _args, _kwargs)
70551f47 406 return val
2d091820
RD
407 def EndDoc(self, *_args, **_kwargs):
408 val = apply(gdic.wxDC_EndDoc,(self,) + _args, _kwargs)
70551f47 409 return val
2d091820
RD
410 def EndDrawing(self, *_args, **_kwargs):
411 val = apply(gdic.wxDC_EndDrawing,(self,) + _args, _kwargs)
70551f47 412 return val
2d091820
RD
413 def EndPage(self, *_args, **_kwargs):
414 val = apply(gdic.wxDC_EndPage,(self,) + _args, _kwargs)
70551f47 415 return val
2d091820
RD
416 def FloodFill(self, *_args, **_kwargs):
417 val = apply(gdic.wxDC_FloodFill,(self,) + _args, _kwargs)
70551f47 418 return val
2d091820
RD
419 def GetBackground(self, *_args, **_kwargs):
420 val = apply(gdic.wxDC_GetBackground,(self,) + _args, _kwargs)
421 if val: val = wxBrushPtr(val)
70551f47 422 return val
2d091820
RD
423 def GetBrush(self, *_args, **_kwargs):
424 val = apply(gdic.wxDC_GetBrush,(self,) + _args, _kwargs)
425 if val: val = wxBrushPtr(val)
70551f47 426 return val
2d091820
RD
427 def GetCharHeight(self, *_args, **_kwargs):
428 val = apply(gdic.wxDC_GetCharHeight,(self,) + _args, _kwargs)
70551f47 429 return val
2d091820
RD
430 def GetCharWidth(self, *_args, **_kwargs):
431 val = apply(gdic.wxDC_GetCharWidth,(self,) + _args, _kwargs)
70551f47 432 return val
2d091820
RD
433 def GetClippingBox(self, *_args, **_kwargs):
434 val = apply(gdic.wxDC_GetClippingBox,(self,) + _args, _kwargs)
70551f47 435 return val
2d091820
RD
436 def GetFont(self, *_args, **_kwargs):
437 val = apply(gdic.wxDC_GetFont,(self,) + _args, _kwargs)
438 if val: val = wxFontPtr(val)
70551f47 439 return val
2d091820
RD
440 def GetLogicalFunction(self, *_args, **_kwargs):
441 val = apply(gdic.wxDC_GetLogicalFunction,(self,) + _args, _kwargs)
70551f47 442 return val
2d091820
RD
443 def GetMapMode(self, *_args, **_kwargs):
444 val = apply(gdic.wxDC_GetMapMode,(self,) + _args, _kwargs)
70551f47 445 return val
2d091820
RD
446 def GetOptimization(self, *_args, **_kwargs):
447 val = apply(gdic.wxDC_GetOptimization,(self,) + _args, _kwargs)
70551f47 448 return val
2d091820
RD
449 def GetPen(self, *_args, **_kwargs):
450 val = apply(gdic.wxDC_GetPen,(self,) + _args, _kwargs)
451 if val: val = wxPenPtr(val)
70551f47 452 return val
2d091820
RD
453 def GetPixel(self, *_args, **_kwargs):
454 val = apply(gdic.wxDC_GetPixel,(self,) + _args, _kwargs)
455 if val: val = wxColourPtr(val) ; val.thisown = 1
70551f47 456 return val
2d091820
RD
457 def GetSizeTuple(self, *_args, **_kwargs):
458 val = apply(gdic.wxDC_GetSizeTuple,(self,) + _args, _kwargs)
d24a34bb 459 return val
2d091820
RD
460 def GetSize(self, *_args, **_kwargs):
461 val = apply(gdic.wxDC_GetSize,(self,) + _args, _kwargs)
462 if val: val = wxSizePtr(val) ; val.thisown = 1
70551f47 463 return val
2d091820
RD
464 def GetTextBackground(self, *_args, **_kwargs):
465 val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
466 if val: val = wxColourPtr(val)
70551f47 467 return val
2d091820
RD
468 def GetTextExtent(self, *_args, **_kwargs):
469 val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
70551f47 470 return val
2d091820
RD
471 def GetFullTextExtent(self, *_args, **_kwargs):
472 val = apply(gdic.wxDC_GetFullTextExtent,(self,) + _args, _kwargs)
21f8d7ea 473 return val
2d091820
RD
474 def GetTextForeground(self, *_args, **_kwargs):
475 val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
476 if val: val = wxColourPtr(val)
70551f47 477 return val
2d091820
RD
478 def LogicalToDeviceX(self, *_args, **_kwargs):
479 val = apply(gdic.wxDC_LogicalToDeviceX,(self,) + _args, _kwargs)
70551f47 480 return val
2d091820
RD
481 def LogicalToDeviceXRel(self, *_args, **_kwargs):
482 val = apply(gdic.wxDC_LogicalToDeviceXRel,(self,) + _args, _kwargs)
70551f47 483 return val
2d091820
RD
484 def LogicalToDeviceY(self, *_args, **_kwargs):
485 val = apply(gdic.wxDC_LogicalToDeviceY,(self,) + _args, _kwargs)
70551f47 486 return val
2d091820
RD
487 def LogicalToDeviceYRel(self, *_args, **_kwargs):
488 val = apply(gdic.wxDC_LogicalToDeviceYRel,(self,) + _args, _kwargs)
70551f47 489 return val
2d091820
RD
490 def MaxX(self, *_args, **_kwargs):
491 val = apply(gdic.wxDC_MaxX,(self,) + _args, _kwargs)
70551f47 492 return val
2d091820
RD
493 def MaxY(self, *_args, **_kwargs):
494 val = apply(gdic.wxDC_MaxY,(self,) + _args, _kwargs)
70551f47 495 return val
2d091820
RD
496 def MinX(self, *_args, **_kwargs):
497 val = apply(gdic.wxDC_MinX,(self,) + _args, _kwargs)
70551f47 498 return val
2d091820
RD
499 def MinY(self, *_args, **_kwargs):
500 val = apply(gdic.wxDC_MinY,(self,) + _args, _kwargs)
70551f47 501 return val
2d091820
RD
502 def Ok(self, *_args, **_kwargs):
503 val = apply(gdic.wxDC_Ok,(self,) + _args, _kwargs)
70551f47 504 return val
2d091820
RD
505 def SetDeviceOrigin(self, *_args, **_kwargs):
506 val = apply(gdic.wxDC_SetDeviceOrigin,(self,) + _args, _kwargs)
70551f47 507 return val
2d091820
RD
508 def SetBackground(self, *_args, **_kwargs):
509 val = apply(gdic.wxDC_SetBackground,(self,) + _args, _kwargs)
70551f47 510 return val
2d091820
RD
511 def SetBackgroundMode(self, *_args, **_kwargs):
512 val = apply(gdic.wxDC_SetBackgroundMode,(self,) + _args, _kwargs)
70551f47 513 return val
2d091820
RD
514 def SetClippingRegion(self, *_args, **_kwargs):
515 val = apply(gdic.wxDC_SetClippingRegion,(self,) + _args, _kwargs)
70551f47 516 return val
2d091820
RD
517 def SetPalette(self, *_args, **_kwargs):
518 val = apply(gdic.wxDC_SetPalette,(self,) + _args, _kwargs)
70551f47 519 return val
2d091820
RD
520 def SetBrush(self, *_args, **_kwargs):
521 val = apply(gdic.wxDC_SetBrush,(self,) + _args, _kwargs)
70551f47 522 return val
2d091820
RD
523 def SetFont(self, *_args, **_kwargs):
524 val = apply(gdic.wxDC_SetFont,(self,) + _args, _kwargs)
70551f47 525 return val
2d091820
RD
526 def SetLogicalFunction(self, *_args, **_kwargs):
527 val = apply(gdic.wxDC_SetLogicalFunction,(self,) + _args, _kwargs)
70551f47 528 return val
2d091820
RD
529 def SetMapMode(self, *_args, **_kwargs):
530 val = apply(gdic.wxDC_SetMapMode,(self,) + _args, _kwargs)
70551f47 531 return val
2d091820
RD
532 def SetOptimization(self, *_args, **_kwargs):
533 val = apply(gdic.wxDC_SetOptimization,(self,) + _args, _kwargs)
70551f47 534 return val
2d091820
RD
535 def SetPen(self, *_args, **_kwargs):
536 val = apply(gdic.wxDC_SetPen,(self,) + _args, _kwargs)
70551f47 537 return val
2d091820
RD
538 def SetTextBackground(self, *_args, **_kwargs):
539 val = apply(gdic.wxDC_SetTextBackground,(self,) + _args, _kwargs)
70551f47 540 return val
2d091820
RD
541 def SetTextForeground(self, *_args, **_kwargs):
542 val = apply(gdic.wxDC_SetTextForeground,(self,) + _args, _kwargs)
70551f47 543 return val
2d091820
RD
544 def SetUserScale(self, *_args, **_kwargs):
545 val = apply(gdic.wxDC_SetUserScale,(self,) + _args, _kwargs)
70551f47 546 return val
2d091820
RD
547 def StartDoc(self, *_args, **_kwargs):
548 val = apply(gdic.wxDC_StartDoc,(self,) + _args, _kwargs)
70551f47 549 return val
2d091820
RD
550 def StartPage(self, *_args, **_kwargs):
551 val = apply(gdic.wxDC_StartPage,(self,) + _args, _kwargs)
70551f47 552 return val
2d091820
RD
553 def DrawBitmap(self, *_args, **_kwargs):
554 val = apply(gdic.wxDC_DrawBitmap,(self,) + _args, _kwargs)
70551f47
RD
555 return val
556 def __repr__(self):
2d091820 557 return "<C wxDC instance at %s>" % (self.this,)
70551f47
RD
558class wxDC(wxDCPtr):
559 def __init__(self,this):
560 self.this = this
561
562
563
564
565class wxMemoryDCPtr(wxDCPtr):
566 def __init__(self,this):
567 self.this = this
568 self.thisown = 0
2d091820
RD
569 def SelectObject(self, *_args, **_kwargs):
570 val = apply(gdic.wxMemoryDC_SelectObject,(self,) + _args, _kwargs)
70551f47
RD
571 return val
572 def __repr__(self):
2d091820 573 return "<C wxMemoryDC instance at %s>" % (self.this,)
70551f47 574class wxMemoryDC(wxMemoryDCPtr):
2d091820
RD
575 def __init__(self,*_args,**_kwargs):
576 self.this = apply(gdic.new_wxMemoryDC,_args,_kwargs)
70551f47
RD
577 self.thisown = 1
578
579
580
581
582class wxScreenDCPtr(wxDCPtr):
583 def __init__(self,this):
584 self.this = this
585 self.thisown = 0
2d091820
RD
586 def StartDrawingOnTop(self, *_args, **_kwargs):
587 val = apply(gdic.wxScreenDC_StartDrawingOnTop,(self,) + _args, _kwargs)
70551f47 588 return val
2d091820
RD
589 def StartDrawingOnTopRect(self, *_args, **_kwargs):
590 val = apply(gdic.wxScreenDC_StartDrawingOnTopRect,(self,) + _args, _kwargs)
70551f47 591 return val
2d091820
RD
592 def EndDrawingOnTop(self, *_args, **_kwargs):
593 val = apply(gdic.wxScreenDC_EndDrawingOnTop,(self,) + _args, _kwargs)
70551f47
RD
594 return val
595 def __repr__(self):
2d091820 596 return "<C wxScreenDC instance at %s>" % (self.this,)
70551f47 597class wxScreenDC(wxScreenDCPtr):
2d091820
RD
598 def __init__(self,*_args,**_kwargs):
599 self.this = apply(gdic.new_wxScreenDC,_args,_kwargs)
70551f47
RD
600 self.thisown = 1
601
602
603
604
605class wxClientDCPtr(wxDCPtr):
606 def __init__(self,this):
607 self.this = this
608 self.thisown = 0
609 def __repr__(self):
2d091820 610 return "<C wxClientDC instance at %s>" % (self.this,)
70551f47 611class wxClientDC(wxClientDCPtr):
2d091820
RD
612 def __init__(self,*_args,**_kwargs):
613 self.this = apply(gdic.new_wxClientDC,_args,_kwargs)
70551f47
RD
614 self.thisown = 1
615
616
617
618
619class wxPaintDCPtr(wxDCPtr):
620 def __init__(self,this):
621 self.this = this
622 self.thisown = 0
623 def __repr__(self):
2d091820 624 return "<C wxPaintDC instance at %s>" % (self.this,)
70551f47 625class wxPaintDC(wxPaintDCPtr):
2d091820
RD
626 def __init__(self,*_args,**_kwargs):
627 self.this = apply(gdic.new_wxPaintDC,_args,_kwargs)
70551f47
RD
628 self.thisown = 1
629
630
631
632
c95e68d8
RD
633class wxWindowDCPtr(wxDCPtr):
634 def __init__(self,this):
635 self.this = this
636 self.thisown = 0
637 def __repr__(self):
2d091820 638 return "<C wxWindowDC instance at %s>" % (self.this,)
c95e68d8 639class wxWindowDC(wxWindowDCPtr):
2d091820
RD
640 def __init__(self,*_args,**_kwargs):
641 self.this = apply(gdic.new_wxWindowDC,_args,_kwargs)
c95e68d8
RD
642 self.thisown = 1
643
644
645
646
70551f47
RD
647class wxPostScriptDCPtr(wxDCPtr):
648 def __init__(self,this):
649 self.this = this
650 self.thisown = 0
651 def __repr__(self):
2d091820 652 return "<C wxPostScriptDC instance at %s>" % (self.this,)
70551f47 653class wxPostScriptDC(wxPostScriptDCPtr):
2d091820
RD
654 def __init__(self,*_args,**_kwargs):
655 self.this = apply(gdic.new_wxPostScriptDC,_args,_kwargs)
70551f47
RD
656 self.thisown = 1
657
658
659
660
105e45b9
RD
661class wxPalettePtr :
662 def __init__(self,this):
663 self.this = this
664 self.thisown = 0
2d091820 665 def __del__(self,gdic=gdic):
105e45b9 666 if self.thisown == 1 :
2d091820
RD
667 gdic.delete_wxPalette(self)
668 def GetPixel(self, *_args, **_kwargs):
669 val = apply(gdic.wxPalette_GetPixel,(self,) + _args, _kwargs)
105e45b9 670 return val
2d091820
RD
671 def GetRGB(self, *_args, **_kwargs):
672 val = apply(gdic.wxPalette_GetRGB,(self,) + _args, _kwargs)
105e45b9 673 return val
2d091820
RD
674 def Ok(self, *_args, **_kwargs):
675 val = apply(gdic.wxPalette_Ok,(self,) + _args, _kwargs)
105e45b9
RD
676 return val
677 def __repr__(self):
2d091820 678 return "<C wxPalette instance at %s>" % (self.this,)
105e45b9 679class wxPalette(wxPalettePtr):
2d091820
RD
680 def __init__(self,*_args,**_kwargs):
681 self.this = apply(gdic.new_wxPalette,_args,_kwargs)
105e45b9
RD
682 self.thisown = 1
683
684
685
686
21f8d7ea
RD
687class wxImageListPtr :
688 def __init__(self,this):
689 self.this = this
690 self.thisown = 0
2d091820 691 def __del__(self,gdic=gdic):
21f8d7ea 692 if self.thisown == 1 :
2d091820
RD
693 gdic.delete_wxImageList(self)
694 def Add(self, *_args, **_kwargs):
695 val = apply(gdic.wxImageList_Add,(self,) + _args, _kwargs)
21f8d7ea 696 return val
2d091820
RD
697 def Replace(self, *_args, **_kwargs):
698 val = apply(gdic.wxImageList_Replace,(self,) + _args, _kwargs)
21f8d7ea 699 return val
2d091820
RD
700 def Draw(self, *_args, **_kwargs):
701 val = apply(gdic.wxImageList_Draw,(self,) + _args, _kwargs)
21f8d7ea 702 return val
2d091820
RD
703 def GetImageCount(self, *_args, **_kwargs):
704 val = apply(gdic.wxImageList_GetImageCount,(self,) + _args, _kwargs)
21f8d7ea 705 return val
2d091820
RD
706 def Remove(self, *_args, **_kwargs):
707 val = apply(gdic.wxImageList_Remove,(self,) + _args, _kwargs)
21f8d7ea 708 return val
2d091820
RD
709 def RemoveAll(self, *_args, **_kwargs):
710 val = apply(gdic.wxImageList_RemoveAll,(self,) + _args, _kwargs)
21f8d7ea
RD
711 return val
712 def __repr__(self):
2d091820 713 return "<C wxImageList instance at %s>" % (self.this,)
21f8d7ea 714class wxImageList(wxImageListPtr):
2d091820
RD
715 def __init__(self,*_args,**_kwargs):
716 self.this = apply(gdic.new_wxImageList,_args,_kwargs)
21f8d7ea
RD
717 self.thisown = 1
718
719
720
721
70551f47
RD
722
723
724#-------------- FUNCTION WRAPPERS ------------------
725
2d091820
RD
726def wxEmptyBitmap(*_args, **_kwargs):
727 val = apply(gdic.wxEmptyBitmap,_args,_kwargs)
728 if val: val = wxBitmapPtr(val); val.thisown = 1
70551f47
RD
729 return val
730
2d091820
RD
731def wxMaskColour(*_args, **_kwargs):
732 val = apply(gdic.wxMaskColour,_args,_kwargs)
733 if val: val = wxMaskPtr(val); val.thisown = 1
70551f47
RD
734 return val
735
2d091820
RD
736def wxStockCursor(*_args, **_kwargs):
737 val = apply(gdic.wxStockCursor,_args,_kwargs)
738 if val: val = wxCursorPtr(val); val.thisown = 1
70551f47
RD
739 return val
740
134d79dc
RD
741wxFont_GetDefaultEncoding = gdic.wxFont_GetDefaultEncoding
742
743wxFont_SetDefaultEncoding = gdic.wxFont_SetDefaultEncoding
744
2d091820
RD
745def wxNamedColour(*_args, **_kwargs):
746 val = apply(gdic.wxNamedColour,_args,_kwargs)
747 if val: val = wxColourPtr(val); val.thisown = 1
70551f47
RD
748 return val
749
2d091820
RD
750def wxMemoryDCFromDC(*_args, **_kwargs):
751 val = apply(gdic.wxMemoryDCFromDC,_args,_kwargs)
752 if val: val = wxMemoryDCPtr(val); val.thisown = 1
70551f47
RD
753 return val
754
755
756
757#-------------- VARIABLE WRAPPERS ------------------
758
134d79dc
RD
759wxFONTENCODING_SYSTEM = gdic.wxFONTENCODING_SYSTEM
760wxFONTENCODING_DEFAULT = gdic.wxFONTENCODING_DEFAULT
761wxFONTENCODING_ISO8859_1 = gdic.wxFONTENCODING_ISO8859_1
762wxFONTENCODING_ISO8859_2 = gdic.wxFONTENCODING_ISO8859_2
763wxFONTENCODING_ISO8859_3 = gdic.wxFONTENCODING_ISO8859_3
764wxFONTENCODING_ISO8859_4 = gdic.wxFONTENCODING_ISO8859_4
765wxFONTENCODING_ISO8859_5 = gdic.wxFONTENCODING_ISO8859_5
766wxFONTENCODING_ISO8859_6 = gdic.wxFONTENCODING_ISO8859_6
767wxFONTENCODING_ISO8859_7 = gdic.wxFONTENCODING_ISO8859_7
768wxFONTENCODING_ISO8859_8 = gdic.wxFONTENCODING_ISO8859_8
769wxFONTENCODING_ISO8859_9 = gdic.wxFONTENCODING_ISO8859_9
770wxFONTENCODING_ISO8859_10 = gdic.wxFONTENCODING_ISO8859_10
771wxFONTENCODING_ISO8859_11 = gdic.wxFONTENCODING_ISO8859_11
772wxFONTENCODING_ISO8859_12 = gdic.wxFONTENCODING_ISO8859_12
773wxFONTENCODING_ISO8859_13 = gdic.wxFONTENCODING_ISO8859_13
774wxFONTENCODING_ISO8859_14 = gdic.wxFONTENCODING_ISO8859_14
775wxFONTENCODING_ISO8859_15 = gdic.wxFONTENCODING_ISO8859_15
776wxFONTENCODING_KOI8 = gdic.wxFONTENCODING_KOI8
777wxFONTENCODING_ALTERNATIVE = gdic.wxFONTENCODING_ALTERNATIVE
778wxFONTENCODING_BULGARIAN = gdic.wxFONTENCODING_BULGARIAN
779wxFONTENCODING_CP437 = gdic.wxFONTENCODING_CP437
780wxFONTENCODING_CP850 = gdic.wxFONTENCODING_CP850
781wxFONTENCODING_CP852 = gdic.wxFONTENCODING_CP852
782wxFONTENCODING_CP855 = gdic.wxFONTENCODING_CP855
783wxFONTENCODING_CP866 = gdic.wxFONTENCODING_CP866
784wxFONTENCODING_CP1250 = gdic.wxFONTENCODING_CP1250
785wxFONTENCODING_CP1251 = gdic.wxFONTENCODING_CP1251
786wxFONTENCODING_CP1252 = gdic.wxFONTENCODING_CP1252
787wxFONTENCODING_MAX = gdic.wxFONTENCODING_MAX
70551f47
RD
788cvar = gdic.cvar
789wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT)
790wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT)
791wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT)
792wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT)
793wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN)
794wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN)
795wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN)
796wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN)
797wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN)
798wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN)
799wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN)
800wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN)
801wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN)
802wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN)
803wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH)
804wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH)
805wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH)
806wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH)
807wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH)
808wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH)
809wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH)
810wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH)
811wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH)
812wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH)
813wxBLACK = wxColourPtr(gdic.cvar.wxBLACK)
814wxWHITE = wxColourPtr(gdic.cvar.wxWHITE)
815wxRED = wxColourPtr(gdic.cvar.wxRED)
816wxBLUE = wxColourPtr(gdic.cvar.wxBLUE)
817wxGREEN = wxColourPtr(gdic.cvar.wxGREEN)
818wxCYAN = wxColourPtr(gdic.cvar.wxCYAN)
819wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY)
820wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR)
821wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR)
822wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR)
823wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap)
824wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon)
825wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor)
826wxNullPen = wxPenPtr(gdic.cvar.wxNullPen)
827wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush)
21f8d7ea 828wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette)
70551f47
RD
829wxNullFont = wxFontPtr(gdic.cvar.wxNullFont)
830wxNullColour = wxColourPtr(gdic.cvar.wxNullColour)
21f8d7ea
RD
831wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL
832wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT
833wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED
834wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED
835wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL
836wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL
837wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE