]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | # This file was created automatically by SWIG. |
2 | import gdic | |
3 | ||
4 | from misc import * | |
a323d3bd RD |
5 | |
6 | from fonts import * | |
b67a9327 | 7 | import wx |
9df61a29 RD |
8 | class wxGDIObjectPtr(wxObjectPtr): |
9 | def __init__(self,this): | |
10 | self.this = this | |
11 | self.thisown = 0 | |
b67a9327 RD |
12 | def __del__(self, delfunc=gdic.delete_wxGDIObject): |
13 | if self.thisown == 1: | |
14 | try: | |
15 | delfunc(self) | |
16 | except: | |
17 | pass | |
9df61a29 | 18 | def GetVisible(self, *_args, **_kwargs): |
1fded56b | 19 | val = gdic.wxGDIObject_GetVisible(self, *_args, **_kwargs) |
9df61a29 RD |
20 | return val |
21 | def SetVisible(self, *_args, **_kwargs): | |
1fded56b | 22 | val = gdic.wxGDIObject_SetVisible(self, *_args, **_kwargs) |
9df61a29 RD |
23 | return val |
24 | def IsNull(self, *_args, **_kwargs): | |
1fded56b | 25 | val = gdic.wxGDIObject_IsNull(self, *_args, **_kwargs) |
9df61a29 RD |
26 | return val |
27 | def __repr__(self): | |
1fded56b | 28 | return "<%s.%s instance; proxy of C++ wxGDIObject instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
9df61a29 RD |
29 | class wxGDIObject(wxGDIObjectPtr): |
30 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 31 | self.this = gdic.new_wxGDIObject(*_args,**_kwargs) |
9df61a29 RD |
32 | self.thisown = 1 |
33 | ||
34 | ||
35 | ||
36 | ||
37 | class wxBitmapPtr(wxGDIObjectPtr): | |
70551f47 RD |
38 | def __init__(self,this): |
39 | self.this = this | |
40 | self.thisown = 0 | |
b67a9327 RD |
41 | def __del__(self, delfunc=gdic.delete_wxBitmap): |
42 | if self.thisown == 1: | |
43 | try: | |
44 | delfunc(self) | |
45 | except: | |
46 | pass | |
2d091820 | 47 | def GetPalette(self, *_args, **_kwargs): |
1fded56b | 48 | val = gdic.wxBitmap_GetPalette(self, *_args, **_kwargs) |
2d091820 | 49 | if val: val = wxPalettePtr(val) |
70551f47 | 50 | return val |
2d091820 | 51 | def GetMask(self, *_args, **_kwargs): |
1fded56b | 52 | val = gdic.wxBitmap_GetMask(self, *_args, **_kwargs) |
2d091820 | 53 | if val: val = wxMaskPtr(val) |
70551f47 | 54 | return val |
2d091820 | 55 | def LoadFile(self, *_args, **_kwargs): |
1fded56b | 56 | val = gdic.wxBitmap_LoadFile(self, *_args, **_kwargs) |
70551f47 | 57 | return val |
2d091820 | 58 | def SaveFile(self, *_args, **_kwargs): |
1fded56b | 59 | val = gdic.wxBitmap_SaveFile(self, *_args, **_kwargs) |
70551f47 | 60 | return val |
2d091820 | 61 | def SetMask(self, *_args, **_kwargs): |
1fded56b | 62 | val = gdic.wxBitmap_SetMask(self, *_args, **_kwargs) |
70551f47 | 63 | return val |
56f5d962 | 64 | def Ok(self, *_args, **_kwargs): |
1fded56b | 65 | val = gdic.wxBitmap_Ok(self, *_args, **_kwargs) |
56f5d962 RD |
66 | return val |
67 | def GetWidth(self, *_args, **_kwargs): | |
1fded56b | 68 | val = gdic.wxBitmap_GetWidth(self, *_args, **_kwargs) |
56f5d962 RD |
69 | return val |
70 | def GetHeight(self, *_args, **_kwargs): | |
1fded56b | 71 | val = gdic.wxBitmap_GetHeight(self, *_args, **_kwargs) |
56f5d962 RD |
72 | return val |
73 | def GetDepth(self, *_args, **_kwargs): | |
1fded56b | 74 | val = gdic.wxBitmap_GetDepth(self, *_args, **_kwargs) |
56f5d962 | 75 | return val |
2d091820 | 76 | def SetWidth(self, *_args, **_kwargs): |
1fded56b | 77 | val = gdic.wxBitmap_SetWidth(self, *_args, **_kwargs) |
70551f47 | 78 | return val |
56f5d962 | 79 | def SetHeight(self, *_args, **_kwargs): |
1fded56b | 80 | val = gdic.wxBitmap_SetHeight(self, *_args, **_kwargs) |
56f5d962 RD |
81 | return val |
82 | def SetDepth(self, *_args, **_kwargs): | |
1fded56b | 83 | val = gdic.wxBitmap_SetDepth(self, *_args, **_kwargs) |
56f5d962 | 84 | return val |
f6bcfd97 | 85 | def GetSubBitmap(self, *_args, **_kwargs): |
1fded56b | 86 | val = gdic.wxBitmap_GetSubBitmap(self, *_args, **_kwargs) |
f6bcfd97 BP |
87 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 |
88 | return val | |
65191ae8 | 89 | def CopyFromIcon(self, *_args, **_kwargs): |
1fded56b | 90 | val = gdic.wxBitmap_CopyFromIcon(self, *_args, **_kwargs) |
65191ae8 | 91 | return val |
70551f47 | 92 | def __repr__(self): |
1fded56b | 93 | return "<%s.%s instance; proxy of C++ wxBitmap instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
f6bcfd97 | 94 | |
b67a9327 RD |
95 | def SetMaskColour(self, colour): |
96 | mask = wxMaskColour(self, colour) | |
97 | self.SetMask(mask) | |
98 | ||
1fded56b | 99 | def __nonzero__(self): return self.Ok() |
70551f47 | 100 | class wxBitmap(wxBitmapPtr): |
2d091820 | 101 | def __init__(self,*_args,**_kwargs): |
1fded56b | 102 | self.this = gdic.new_wxBitmap(*_args,**_kwargs) |
70551f47 RD |
103 | self.thisown = 1 |
104 | ||
105 | ||
106 | ||
107 | ||
9df61a29 | 108 | class wxMaskPtr(wxObjectPtr): |
70551f47 RD |
109 | def __init__(self,this): |
110 | self.this = this | |
111 | self.thisown = 0 | |
fbcadfca | 112 | def Destroy(self, *_args, **_kwargs): |
1fded56b | 113 | val = gdic.wxMask_Destroy(self, *_args, **_kwargs) |
fbcadfca | 114 | return val |
70551f47 | 115 | def __repr__(self): |
1fded56b | 116 | return "<%s.%s instance; proxy of C++ wxMask instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
70551f47 | 117 | class wxMask(wxMaskPtr): |
2d091820 | 118 | def __init__(self,*_args,**_kwargs): |
1fded56b | 119 | self.this = gdic.new_wxMask(*_args,**_kwargs) |
70551f47 RD |
120 | self.thisown = 1 |
121 | ||
122 | ||
123 | ||
124 | ||
9df61a29 | 125 | class wxIconPtr(wxGDIObjectPtr): |
70551f47 RD |
126 | def __init__(self,this): |
127 | self.this = this | |
128 | self.thisown = 0 | |
b67a9327 RD |
129 | def __del__(self, delfunc=gdic.delete_wxIcon): |
130 | if self.thisown == 1: | |
131 | try: | |
132 | delfunc(self) | |
133 | except: | |
134 | pass | |
56f5d962 | 135 | def LoadFile(self, *_args, **_kwargs): |
1fded56b | 136 | val = gdic.wxIcon_LoadFile(self, *_args, **_kwargs) |
70551f47 | 137 | return val |
56f5d962 | 138 | def Ok(self, *_args, **_kwargs): |
1fded56b | 139 | val = gdic.wxIcon_Ok(self, *_args, **_kwargs) |
70551f47 | 140 | return val |
2d091820 | 141 | def GetWidth(self, *_args, **_kwargs): |
1fded56b | 142 | val = gdic.wxIcon_GetWidth(self, *_args, **_kwargs) |
70551f47 | 143 | return val |
56f5d962 | 144 | def GetHeight(self, *_args, **_kwargs): |
1fded56b | 145 | val = gdic.wxIcon_GetHeight(self, *_args, **_kwargs) |
70551f47 | 146 | return val |
56f5d962 | 147 | def GetDepth(self, *_args, **_kwargs): |
1fded56b | 148 | val = gdic.wxIcon_GetDepth(self, *_args, **_kwargs) |
70551f47 | 149 | return val |
56f5d962 | 150 | def SetWidth(self, *_args, **_kwargs): |
1fded56b | 151 | val = gdic.wxIcon_SetWidth(self, *_args, **_kwargs) |
70551f47 | 152 | return val |
2d091820 | 153 | def SetHeight(self, *_args, **_kwargs): |
1fded56b | 154 | val = gdic.wxIcon_SetHeight(self, *_args, **_kwargs) |
70551f47 | 155 | return val |
56f5d962 | 156 | def SetDepth(self, *_args, **_kwargs): |
1fded56b | 157 | val = gdic.wxIcon_SetDepth(self, *_args, **_kwargs) |
70551f47 | 158 | return val |
fbcadfca | 159 | def CopyFromBitmap(self, *_args, **_kwargs): |
1fded56b | 160 | val = gdic.wxIcon_CopyFromBitmap(self, *_args, **_kwargs) |
fbcadfca | 161 | return val |
70551f47 | 162 | def __repr__(self): |
1fded56b RD |
163 | return "<%s.%s instance; proxy of C++ wxIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
164 | def __nonzero__(self): return self.Ok() | |
70551f47 | 165 | class wxIcon(wxIconPtr): |
2d091820 | 166 | def __init__(self,*_args,**_kwargs): |
1fded56b | 167 | self.this = gdic.new_wxIcon(*_args,**_kwargs) |
8bf5d46e | 168 | self.thisown = 1 |
70551f47 RD |
169 | |
170 | ||
171 | ||
172 | ||
a323d3bd | 173 | class wxIconBundlePtr : |
70551f47 RD |
174 | def __init__(self,this): |
175 | self.this = this | |
176 | self.thisown = 0 | |
b67a9327 RD |
177 | def __del__(self, delfunc=gdic.delete_wxIconBundle): |
178 | if self.thisown == 1: | |
179 | try: | |
180 | delfunc(self) | |
181 | except: | |
182 | pass | |
a323d3bd | 183 | def AddIcon(self, *_args, **_kwargs): |
1fded56b | 184 | val = gdic.wxIconBundle_AddIcon(self, *_args, **_kwargs) |
059a841c | 185 | return val |
a323d3bd | 186 | def AddIconFromFile(self, *_args, **_kwargs): |
1fded56b | 187 | val = gdic.wxIconBundle_AddIconFromFile(self, *_args, **_kwargs) |
1893b029 | 188 | return val |
a323d3bd | 189 | def GetIcon(self, *_args, **_kwargs): |
1fded56b | 190 | val = gdic.wxIconBundle_GetIcon(self, *_args, **_kwargs) |
a323d3bd | 191 | if val: val = wxIconPtr(val) |
1893b029 | 192 | return val |
059a841c | 193 | def __repr__(self): |
1fded56b | 194 | return "<%s.%s instance; proxy of C++ wxIconBundle instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
a323d3bd | 195 | class wxIconBundle(wxIconBundlePtr): |
1893b029 | 196 | def __init__(self,*_args,**_kwargs): |
1fded56b | 197 | self.this = gdic.new_wxIconBundle(*_args,**_kwargs) |
1893b029 | 198 | self.thisown = 1 |
059a841c RD |
199 | |
200 | ||
201 | ||
a323d3bd | 202 | def wxIconBundleFromFile(*_args,**_kwargs): |
1fded56b | 203 | val = wxIconBundlePtr(gdic.new_wxIconBundleFromFile(*_args,**_kwargs)) |
a323d3bd RD |
204 | val.thisown = 1 |
205 | return val | |
059a841c | 206 | |
a323d3bd | 207 | def wxIconBundleFromIcon(*_args,**_kwargs): |
1fded56b | 208 | val = wxIconBundlePtr(gdic.new_wxIconBundleFromIcon(*_args,**_kwargs)) |
a323d3bd RD |
209 | val.thisown = 1 |
210 | return val | |
059a841c RD |
211 | |
212 | ||
a323d3bd | 213 | class wxCursorPtr(wxGDIObjectPtr): |
70551f47 RD |
214 | def __init__(self,this): |
215 | self.this = this | |
216 | self.thisown = 0 | |
b67a9327 RD |
217 | def __del__(self, delfunc=gdic.delete_wxCursor): |
218 | if self.thisown == 1: | |
219 | try: | |
220 | delfunc(self) | |
221 | except: | |
222 | pass | |
d29aba2f | 223 | def Ok(self, *_args, **_kwargs): |
1fded56b | 224 | val = gdic.wxCursor_Ok(self, *_args, **_kwargs) |
7a9b33db | 225 | return val |
5e40f9dd | 226 | def __repr__(self): |
1fded56b RD |
227 | return "<%s.%s instance; proxy of C++ wxCursor instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
228 | def __nonzero__(self): return self.Ok() | |
a323d3bd | 229 | class wxCursor(wxCursorPtr): |
1fded56b RD |
230 | def __init__(self,*_args,**_kwargs): |
231 | self.this = gdic.new_wxCursor(*_args,**_kwargs) | |
232 | self.thisown = 1 | |
5e40f9dd RD |
233 | |
234 | ||
235 | ||
236 | ||
9df61a29 | 237 | class wxColourPtr(wxObjectPtr): |
70551f47 RD |
238 | def __init__(self,this): |
239 | self.this = this | |
240 | self.thisown = 0 | |
b67a9327 RD |
241 | def __del__(self, delfunc=gdic.delete_wxColour): |
242 | if self.thisown == 1: | |
243 | try: | |
244 | delfunc(self) | |
245 | except: | |
246 | pass | |
2d091820 | 247 | def Red(self, *_args, **_kwargs): |
1fded56b | 248 | val = gdic.wxColour_Red(self, *_args, **_kwargs) |
70551f47 | 249 | return val |
2d091820 | 250 | def Green(self, *_args, **_kwargs): |
1fded56b | 251 | val = gdic.wxColour_Green(self, *_args, **_kwargs) |
70551f47 | 252 | return val |
2d091820 | 253 | def Blue(self, *_args, **_kwargs): |
1fded56b | 254 | val = gdic.wxColour_Blue(self, *_args, **_kwargs) |
70551f47 | 255 | return val |
2d091820 | 256 | def Ok(self, *_args, **_kwargs): |
1fded56b | 257 | val = gdic.wxColour_Ok(self, *_args, **_kwargs) |
70551f47 | 258 | return val |
2d091820 | 259 | def Set(self, *_args, **_kwargs): |
1fded56b | 260 | val = gdic.wxColour_Set(self, *_args, **_kwargs) |
70551f47 | 261 | return val |
2d091820 | 262 | def Get(self, *_args, **_kwargs): |
1fded56b | 263 | val = gdic.wxColour_Get(self, *_args, **_kwargs) |
70551f47 | 264 | return val |
b67a9327 | 265 | def __eq__(self, *_args, **_kwargs): |
1fded56b | 266 | val = gdic.wxColour___eq__(self, *_args, **_kwargs) |
b67a9327 RD |
267 | return val |
268 | def __ne__(self, *_args, **_kwargs): | |
1fded56b | 269 | val = gdic.wxColour___ne__(self, *_args, **_kwargs) |
b67a9327 | 270 | return val |
70551f47 | 271 | def __repr__(self): |
1fded56b | 272 | return "<%s.%s instance; proxy of C++ wxColour instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
ab2208b5 | 273 | asTuple = Get |
b67a9327 RD |
274 | def __str__(self): return str(self.asTuple()) |
275 | def __repr__(self): return 'wxColour:' + str(self.asTuple()) | |
276 | def __nonzero__(self): return self.Ok() | |
277 | def __getinitargs__(self): return () | |
278 | def __getstate__(self): return self.asTuple() | |
279 | def __setstate__(self, state): self.Set(*state) | |
280 | ||
70551f47 | 281 | class wxColour(wxColourPtr): |
2d091820 | 282 | def __init__(self,*_args,**_kwargs): |
1fded56b | 283 | self.this = gdic.new_wxColour(*_args,**_kwargs) |
70551f47 RD |
284 | self.thisown = 1 |
285 | ||
286 | ||
287 | ||
288 | ||
9df61a29 | 289 | class wxColourDatabasePtr(wxObjectPtr): |
5e40f9dd RD |
290 | def __init__(self,this): |
291 | self.this = this | |
292 | self.thisown = 0 | |
293 | def FindColour(self, *_args, **_kwargs): | |
1fded56b | 294 | val = gdic.wxColourDatabase_FindColour(self, *_args, **_kwargs) |
5e40f9dd RD |
295 | if val: val = wxColourPtr(val) |
296 | return val | |
297 | def FindName(self, *_args, **_kwargs): | |
1fded56b | 298 | val = gdic.wxColourDatabase_FindName(self, *_args, **_kwargs) |
5e40f9dd RD |
299 | return val |
300 | def Append(self, *_args, **_kwargs): | |
1fded56b | 301 | val = gdic.wxColourDatabase_Append(self, *_args, **_kwargs) |
5e40f9dd RD |
302 | return val |
303 | def __repr__(self): | |
1fded56b | 304 | return "<%s.%s instance; proxy of C++ wxColourDatabase instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
5e40f9dd RD |
305 | class wxColourDatabase(wxColourDatabasePtr): |
306 | def __init__(self,this): | |
307 | self.this = this | |
308 | ||
309 | ||
310 | ||
311 | ||
9df61a29 | 312 | class wxPenPtr(wxGDIObjectPtr): |
70551f47 RD |
313 | def __init__(self,this): |
314 | self.this = this | |
315 | self.thisown = 0 | |
b67a9327 RD |
316 | def __del__(self, delfunc=gdic.delete_wxPen): |
317 | if self.thisown == 1: | |
318 | try: | |
319 | delfunc(self) | |
320 | except: | |
321 | pass | |
2d091820 | 322 | def GetCap(self, *_args, **_kwargs): |
1fded56b | 323 | val = gdic.wxPen_GetCap(self, *_args, **_kwargs) |
70551f47 | 324 | return val |
2d091820 | 325 | def GetColour(self, *_args, **_kwargs): |
1fded56b | 326 | val = gdic.wxPen_GetColour(self, *_args, **_kwargs) |
84a81942 | 327 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
70551f47 | 328 | return val |
2d091820 | 329 | def GetJoin(self, *_args, **_kwargs): |
1fded56b | 330 | val = gdic.wxPen_GetJoin(self, *_args, **_kwargs) |
70551f47 | 331 | return val |
2d091820 | 332 | def GetStyle(self, *_args, **_kwargs): |
1fded56b | 333 | val = gdic.wxPen_GetStyle(self, *_args, **_kwargs) |
70551f47 | 334 | return val |
2d091820 | 335 | def GetWidth(self, *_args, **_kwargs): |
1fded56b | 336 | val = gdic.wxPen_GetWidth(self, *_args, **_kwargs) |
70551f47 | 337 | return val |
2d091820 | 338 | def Ok(self, *_args, **_kwargs): |
1fded56b | 339 | val = gdic.wxPen_Ok(self, *_args, **_kwargs) |
70551f47 | 340 | return val |
2d091820 | 341 | def SetCap(self, *_args, **_kwargs): |
1fded56b | 342 | val = gdic.wxPen_SetCap(self, *_args, **_kwargs) |
70551f47 | 343 | return val |
2d091820 | 344 | def SetColour(self, *_args, **_kwargs): |
1fded56b | 345 | val = gdic.wxPen_SetColour(self, *_args, **_kwargs) |
70551f47 | 346 | return val |
2d091820 | 347 | def SetJoin(self, *_args, **_kwargs): |
1fded56b | 348 | val = gdic.wxPen_SetJoin(self, *_args, **_kwargs) |
70551f47 | 349 | return val |
2d091820 | 350 | def SetStyle(self, *_args, **_kwargs): |
1fded56b | 351 | val = gdic.wxPen_SetStyle(self, *_args, **_kwargs) |
70551f47 | 352 | return val |
2d091820 | 353 | def SetWidth(self, *_args, **_kwargs): |
1fded56b | 354 | val = gdic.wxPen_SetWidth(self, *_args, **_kwargs) |
70551f47 | 355 | return val |
56f5d962 | 356 | def SetDashes(self, *_args, **_kwargs): |
1fded56b | 357 | val = gdic.wxPen_SetDashes(self, *_args, **_kwargs) |
298ae144 RD |
358 | return val |
359 | def GetDashes(self, *_args, **_kwargs): | |
1fded56b | 360 | val = gdic.wxPen_GetDashes(self, *_args, **_kwargs) |
56f5d962 | 361 | return val |
70551f47 | 362 | def __repr__(self): |
1fded56b RD |
363 | return "<%s.%s instance; proxy of C++ wxPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
364 | def __nonzero__(self): return self.Ok() | |
70551f47 | 365 | class wxPen(wxPenPtr): |
2d091820 | 366 | def __init__(self,*_args,**_kwargs): |
1fded56b | 367 | self.this = gdic.new_wxPen(*_args,**_kwargs) |
70551f47 RD |
368 | self.thisown = 1 |
369 | ||
370 | ||
371 | ||
372 | ||
65191ae8 RD |
373 | class wxPyPenPtr(wxPenPtr): |
374 | def __init__(self,this): | |
375 | self.this = this | |
376 | self.thisown = 0 | |
b67a9327 RD |
377 | def __del__(self, delfunc=gdic.delete_wxPyPen): |
378 | if self.thisown == 1: | |
379 | try: | |
380 | delfunc(self) | |
381 | except: | |
382 | pass | |
65191ae8 | 383 | def SetDashes(self, *_args, **_kwargs): |
1fded56b | 384 | val = gdic.wxPyPen_SetDashes(self, *_args, **_kwargs) |
65191ae8 RD |
385 | return val |
386 | def __repr__(self): | |
1fded56b | 387 | return "<%s.%s instance; proxy of C++ wxPyPen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
65191ae8 RD |
388 | class wxPyPen(wxPyPenPtr): |
389 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 390 | self.this = gdic.new_wxPyPen(*_args,**_kwargs) |
65191ae8 RD |
391 | self.thisown = 1 |
392 | ||
393 | ||
394 | ||
395 | ||
9df61a29 | 396 | class wxPenListPtr(wxObjectPtr): |
5e40f9dd RD |
397 | def __init__(self,this): |
398 | self.this = this | |
399 | self.thisown = 0 | |
400 | def AddPen(self, *_args, **_kwargs): | |
1fded56b | 401 | val = gdic.wxPenList_AddPen(self, *_args, **_kwargs) |
5e40f9dd RD |
402 | return val |
403 | def FindOrCreatePen(self, *_args, **_kwargs): | |
1fded56b | 404 | val = gdic.wxPenList_FindOrCreatePen(self, *_args, **_kwargs) |
5e40f9dd RD |
405 | if val: val = wxPenPtr(val) |
406 | return val | |
407 | def RemovePen(self, *_args, **_kwargs): | |
1fded56b | 408 | val = gdic.wxPenList_RemovePen(self, *_args, **_kwargs) |
5e40f9dd | 409 | return val |
7a9b33db | 410 | def GetCount(self, *_args, **_kwargs): |
1fded56b | 411 | val = gdic.wxPenList_GetCount(self, *_args, **_kwargs) |
7a9b33db | 412 | return val |
5e40f9dd | 413 | def __repr__(self): |
1fded56b | 414 | return "<%s.%s instance; proxy of C++ wxPenList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
5e40f9dd RD |
415 | class wxPenList(wxPenListPtr): |
416 | def __init__(self,this): | |
417 | self.this = this | |
418 | ||
419 | ||
420 | ||
421 | ||
9df61a29 | 422 | class wxBrushPtr(wxGDIObjectPtr): |
70551f47 RD |
423 | def __init__(self,this): |
424 | self.this = this | |
425 | self.thisown = 0 | |
b67a9327 RD |
426 | def __del__(self, delfunc=gdic.delete_wxBrush): |
427 | if self.thisown == 1: | |
428 | try: | |
429 | delfunc(self) | |
430 | except: | |
431 | pass | |
2d091820 | 432 | def GetColour(self, *_args, **_kwargs): |
1fded56b | 433 | val = gdic.wxBrush_GetColour(self, *_args, **_kwargs) |
84a81942 | 434 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
70551f47 | 435 | return val |
2d091820 | 436 | def GetStipple(self, *_args, **_kwargs): |
1fded56b | 437 | val = gdic.wxBrush_GetStipple(self, *_args, **_kwargs) |
2d091820 | 438 | if val: val = wxBitmapPtr(val) |
70551f47 | 439 | return val |
2d091820 | 440 | def GetStyle(self, *_args, **_kwargs): |
1fded56b | 441 | val = gdic.wxBrush_GetStyle(self, *_args, **_kwargs) |
70551f47 | 442 | return val |
2d091820 | 443 | def Ok(self, *_args, **_kwargs): |
1fded56b | 444 | val = gdic.wxBrush_Ok(self, *_args, **_kwargs) |
70551f47 | 445 | return val |
2d091820 | 446 | def SetColour(self, *_args, **_kwargs): |
1fded56b | 447 | val = gdic.wxBrush_SetColour(self, *_args, **_kwargs) |
c95e68d8 | 448 | return val |
2d091820 | 449 | def SetStipple(self, *_args, **_kwargs): |
1fded56b | 450 | val = gdic.wxBrush_SetStipple(self, *_args, **_kwargs) |
c95e68d8 | 451 | return val |
2d091820 | 452 | def SetStyle(self, *_args, **_kwargs): |
1fded56b | 453 | val = gdic.wxBrush_SetStyle(self, *_args, **_kwargs) |
c95e68d8 | 454 | return val |
70551f47 | 455 | def __repr__(self): |
1fded56b RD |
456 | return "<%s.%s instance; proxy of C++ wxBrush instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
457 | def __nonzero__(self): return self.Ok() | |
70551f47 | 458 | class wxBrush(wxBrushPtr): |
2d091820 | 459 | def __init__(self,*_args,**_kwargs): |
1fded56b | 460 | self.this = gdic.new_wxBrush(*_args,**_kwargs) |
70551f47 RD |
461 | self.thisown = 1 |
462 | ||
463 | ||
464 | ||
465 | ||
65191ae8 | 466 | class wxBrushListPtr(wxObjectPtr): |
5e40f9dd RD |
467 | def __init__(self,this): |
468 | self.this = this | |
469 | self.thisown = 0 | |
470 | def AddBrush(self, *_args, **_kwargs): | |
1fded56b | 471 | val = gdic.wxBrushList_AddBrush(self, *_args, **_kwargs) |
5e40f9dd RD |
472 | return val |
473 | def FindOrCreateBrush(self, *_args, **_kwargs): | |
1fded56b | 474 | val = gdic.wxBrushList_FindOrCreateBrush(self, *_args, **_kwargs) |
5e40f9dd RD |
475 | if val: val = wxBrushPtr(val) |
476 | return val | |
477 | def RemoveBrush(self, *_args, **_kwargs): | |
1fded56b | 478 | val = gdic.wxBrushList_RemoveBrush(self, *_args, **_kwargs) |
5e40f9dd | 479 | return val |
7a9b33db | 480 | def GetCount(self, *_args, **_kwargs): |
1fded56b | 481 | val = gdic.wxBrushList_GetCount(self, *_args, **_kwargs) |
7a9b33db | 482 | return val |
5e40f9dd | 483 | def __repr__(self): |
1fded56b | 484 | return "<%s.%s instance; proxy of C++ wxBrushList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
5e40f9dd RD |
485 | class wxBrushList(wxBrushListPtr): |
486 | def __init__(self,this): | |
487 | self.this = this | |
488 | ||
489 | ||
490 | ||
491 | ||
9df61a29 | 492 | class wxDCPtr(wxObjectPtr): |
70551f47 RD |
493 | def __init__(self,this): |
494 | self.this = this | |
495 | self.thisown = 0 | |
b67a9327 RD |
496 | def __del__(self, delfunc=gdic.delete_wxDC): |
497 | if self.thisown == 1: | |
498 | try: | |
499 | delfunc(self) | |
500 | except: | |
501 | pass | |
2d091820 | 502 | def BeginDrawing(self, *_args, **_kwargs): |
1fded56b | 503 | val = gdic.wxDC_BeginDrawing(self, *_args, **_kwargs) |
70551f47 | 504 | return val |
2d091820 | 505 | def Blit(self, *_args, **_kwargs): |
1fded56b | 506 | val = gdic.wxDC_Blit(self, *_args, **_kwargs) |
70551f47 | 507 | return val |
2d091820 | 508 | def Clear(self, *_args, **_kwargs): |
1fded56b | 509 | val = gdic.wxDC_Clear(self, *_args, **_kwargs) |
70551f47 | 510 | return val |
2d091820 | 511 | def CrossHair(self, *_args, **_kwargs): |
1fded56b | 512 | val = gdic.wxDC_CrossHair(self, *_args, **_kwargs) |
70551f47 | 513 | return val |
2d091820 | 514 | def DestroyClippingRegion(self, *_args, **_kwargs): |
1fded56b | 515 | val = gdic.wxDC_DestroyClippingRegion(self, *_args, **_kwargs) |
70551f47 | 516 | return val |
2d091820 | 517 | def DeviceToLogicalX(self, *_args, **_kwargs): |
1fded56b | 518 | val = gdic.wxDC_DeviceToLogicalX(self, *_args, **_kwargs) |
70551f47 | 519 | return val |
2d091820 | 520 | def DeviceToLogicalXRel(self, *_args, **_kwargs): |
1fded56b | 521 | val = gdic.wxDC_DeviceToLogicalXRel(self, *_args, **_kwargs) |
70551f47 | 522 | return val |
2d091820 | 523 | def DeviceToLogicalY(self, *_args, **_kwargs): |
1fded56b | 524 | val = gdic.wxDC_DeviceToLogicalY(self, *_args, **_kwargs) |
70551f47 | 525 | return val |
2d091820 | 526 | def DeviceToLogicalYRel(self, *_args, **_kwargs): |
1fded56b | 527 | val = gdic.wxDC_DeviceToLogicalYRel(self, *_args, **_kwargs) |
70551f47 | 528 | return val |
2d091820 | 529 | def DrawArc(self, *_args, **_kwargs): |
1fded56b | 530 | val = gdic.wxDC_DrawArc(self, *_args, **_kwargs) |
70551f47 | 531 | return val |
2d091820 | 532 | def DrawCircle(self, *_args, **_kwargs): |
1fded56b | 533 | val = gdic.wxDC_DrawCircle(self, *_args, **_kwargs) |
d24a34bb | 534 | return val |
2d091820 | 535 | def DrawEllipse(self, *_args, **_kwargs): |
1fded56b | 536 | val = gdic.wxDC_DrawEllipse(self, *_args, **_kwargs) |
70551f47 | 537 | return val |
2d091820 | 538 | def DrawEllipticArc(self, *_args, **_kwargs): |
1fded56b | 539 | val = gdic.wxDC_DrawEllipticArc(self, *_args, **_kwargs) |
70551f47 | 540 | return val |
2d091820 | 541 | def DrawIcon(self, *_args, **_kwargs): |
1fded56b | 542 | val = gdic.wxDC_DrawIcon(self, *_args, **_kwargs) |
70551f47 | 543 | return val |
8cb49012 | 544 | def DrawLabel(self, *_args, **_kwargs): |
1fded56b | 545 | val = gdic.wxDC_DrawLabel(self, *_args, **_kwargs) |
8cb49012 RD |
546 | return val |
547 | def DrawImageLabel(self, *_args, **_kwargs): | |
1fded56b | 548 | val = gdic.wxDC_DrawImageLabel(self, *_args, **_kwargs) |
8cb49012 RD |
549 | if val: val = wxRectPtr(val) ; val.thisown = 1 |
550 | return val | |
2d091820 | 551 | def DrawLine(self, *_args, **_kwargs): |
1fded56b | 552 | val = gdic.wxDC_DrawLine(self, *_args, **_kwargs) |
70551f47 | 553 | return val |
2d091820 | 554 | def DrawLines(self, *_args, **_kwargs): |
1fded56b | 555 | val = gdic.wxDC_DrawLines(self, *_args, **_kwargs) |
70551f47 | 556 | return val |
2d091820 | 557 | def DrawPolygon(self, *_args, **_kwargs): |
1fded56b | 558 | val = gdic.wxDC_DrawPolygon(self, *_args, **_kwargs) |
70551f47 | 559 | return val |
2d091820 | 560 | def DrawPoint(self, *_args, **_kwargs): |
1fded56b | 561 | val = gdic.wxDC_DrawPoint(self, *_args, **_kwargs) |
70551f47 | 562 | return val |
2d091820 | 563 | def DrawRectangle(self, *_args, **_kwargs): |
1fded56b | 564 | val = gdic.wxDC_DrawRectangle(self, *_args, **_kwargs) |
70551f47 | 565 | return val |
b2a2e5bf | 566 | def DrawRectangleRect(self, *_args, **_kwargs): |
1fded56b | 567 | val = gdic.wxDC_DrawRectangleRect(self, *_args, **_kwargs) |
b2a2e5bf | 568 | return val |
56f5d962 | 569 | def DrawRotatedText(self, *_args, **_kwargs): |
1fded56b | 570 | val = gdic.wxDC_DrawRotatedText(self, *_args, **_kwargs) |
56f5d962 | 571 | return val |
2d091820 | 572 | def DrawRoundedRectangle(self, *_args, **_kwargs): |
1fded56b | 573 | val = gdic.wxDC_DrawRoundedRectangle(self, *_args, **_kwargs) |
70551f47 | 574 | return val |
2d091820 | 575 | def DrawSpline(self, *_args, **_kwargs): |
1fded56b | 576 | val = gdic.wxDC_DrawSpline(self, *_args, **_kwargs) |
70551f47 | 577 | return val |
2d091820 | 578 | def DrawText(self, *_args, **_kwargs): |
1fded56b | 579 | val = gdic.wxDC_DrawText(self, *_args, **_kwargs) |
70551f47 | 580 | return val |
2d091820 | 581 | def EndDoc(self, *_args, **_kwargs): |
1fded56b | 582 | val = gdic.wxDC_EndDoc(self, *_args, **_kwargs) |
70551f47 | 583 | return val |
2d091820 | 584 | def EndDrawing(self, *_args, **_kwargs): |
1fded56b | 585 | val = gdic.wxDC_EndDrawing(self, *_args, **_kwargs) |
70551f47 | 586 | return val |
2d091820 | 587 | def EndPage(self, *_args, **_kwargs): |
1fded56b | 588 | val = gdic.wxDC_EndPage(self, *_args, **_kwargs) |
70551f47 | 589 | return val |
2d091820 | 590 | def FloodFill(self, *_args, **_kwargs): |
1fded56b | 591 | val = gdic.wxDC_FloodFill(self, *_args, **_kwargs) |
70551f47 | 592 | return val |
2d091820 | 593 | def GetBackground(self, *_args, **_kwargs): |
1fded56b | 594 | val = gdic.wxDC_GetBackground(self, *_args, **_kwargs) |
3e212503 | 595 | if val: val = wxBrushPtr(val) ; val.thisown = 1 |
70551f47 | 596 | return val |
2d091820 | 597 | def GetBrush(self, *_args, **_kwargs): |
1fded56b | 598 | val = gdic.wxDC_GetBrush(self, *_args, **_kwargs) |
3e212503 | 599 | if val: val = wxBrushPtr(val) ; val.thisown = 1 |
70551f47 | 600 | return val |
2d091820 | 601 | def GetCharHeight(self, *_args, **_kwargs): |
1fded56b | 602 | val = gdic.wxDC_GetCharHeight(self, *_args, **_kwargs) |
70551f47 | 603 | return val |
2d091820 | 604 | def GetCharWidth(self, *_args, **_kwargs): |
1fded56b | 605 | val = gdic.wxDC_GetCharWidth(self, *_args, **_kwargs) |
70551f47 | 606 | return val |
2d091820 | 607 | def GetClippingBox(self, *_args, **_kwargs): |
1fded56b | 608 | val = gdic.wxDC_GetClippingBox(self, *_args, **_kwargs) |
70551f47 | 609 | return val |
2d091820 | 610 | def GetFont(self, *_args, **_kwargs): |
1fded56b | 611 | val = gdic.wxDC_GetFont(self, *_args, **_kwargs) |
3e212503 | 612 | if val: val = wxFontPtr(val) ; val.thisown = 1 |
70551f47 | 613 | return val |
2d091820 | 614 | def GetLogicalFunction(self, *_args, **_kwargs): |
1fded56b | 615 | val = gdic.wxDC_GetLogicalFunction(self, *_args, **_kwargs) |
70551f47 | 616 | return val |
e02c03a4 | 617 | def GetLogicalScale(self, *_args, **_kwargs): |
1fded56b | 618 | val = gdic.wxDC_GetLogicalScale(self, *_args, **_kwargs) |
e02c03a4 | 619 | return val |
2d091820 | 620 | def GetMapMode(self, *_args, **_kwargs): |
1fded56b | 621 | val = gdic.wxDC_GetMapMode(self, *_args, **_kwargs) |
70551f47 | 622 | return val |
2d091820 | 623 | def GetOptimization(self, *_args, **_kwargs): |
1fded56b | 624 | val = gdic.wxDC_GetOptimization(self, *_args, **_kwargs) |
70551f47 | 625 | return val |
2d091820 | 626 | def GetPen(self, *_args, **_kwargs): |
1fded56b | 627 | val = gdic.wxDC_GetPen(self, *_args, **_kwargs) |
3e212503 | 628 | if val: val = wxPenPtr(val) ; val.thisown = 1 |
70551f47 | 629 | return val |
2d091820 | 630 | def GetPixel(self, *_args, **_kwargs): |
1fded56b | 631 | val = gdic.wxDC_GetPixel(self, *_args, **_kwargs) |
2d091820 | 632 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
70551f47 | 633 | return val |
2d091820 | 634 | def GetSizeTuple(self, *_args, **_kwargs): |
1fded56b | 635 | val = gdic.wxDC_GetSizeTuple(self, *_args, **_kwargs) |
d24a34bb | 636 | return val |
2d091820 | 637 | def GetSize(self, *_args, **_kwargs): |
1fded56b | 638 | val = gdic.wxDC_GetSize(self, *_args, **_kwargs) |
2d091820 | 639 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
70551f47 | 640 | return val |
e02c03a4 | 641 | def GetSizeMM(self, *_args, **_kwargs): |
1fded56b | 642 | val = gdic.wxDC_GetSizeMM(self, *_args, **_kwargs) |
e02c03a4 RD |
643 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
644 | return val | |
2d091820 | 645 | def GetTextBackground(self, *_args, **_kwargs): |
1fded56b | 646 | val = gdic.wxDC_GetTextBackground(self, *_args, **_kwargs) |
84a81942 | 647 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
70551f47 | 648 | return val |
2d091820 | 649 | def GetTextExtent(self, *_args, **_kwargs): |
1fded56b | 650 | val = gdic.wxDC_GetTextExtent(self, *_args, **_kwargs) |
70551f47 | 651 | return val |
2d091820 | 652 | def GetFullTextExtent(self, *_args, **_kwargs): |
1fded56b | 653 | val = gdic.wxDC_GetFullTextExtent(self, *_args, **_kwargs) |
21f8d7ea | 654 | return val |
b67a9327 | 655 | def GetMultiLineTextExtent(self, *_args, **_kwargs): |
1fded56b | 656 | val = gdic.wxDC_GetMultiLineTextExtent(self, *_args, **_kwargs) |
b67a9327 | 657 | return val |
2d091820 | 658 | def GetTextForeground(self, *_args, **_kwargs): |
1fded56b | 659 | val = gdic.wxDC_GetTextForeground(self, *_args, **_kwargs) |
84a81942 | 660 | if val: val = wxColourPtr(val) ; val.thisown = 1 |
70551f47 | 661 | return val |
e02c03a4 | 662 | def GetUserScale(self, *_args, **_kwargs): |
1fded56b | 663 | val = gdic.wxDC_GetUserScale(self, *_args, **_kwargs) |
e02c03a4 | 664 | return val |
2d091820 | 665 | def LogicalToDeviceX(self, *_args, **_kwargs): |
1fded56b | 666 | val = gdic.wxDC_LogicalToDeviceX(self, *_args, **_kwargs) |
70551f47 | 667 | return val |
2d091820 | 668 | def LogicalToDeviceXRel(self, *_args, **_kwargs): |
1fded56b | 669 | val = gdic.wxDC_LogicalToDeviceXRel(self, *_args, **_kwargs) |
70551f47 | 670 | return val |
2d091820 | 671 | def LogicalToDeviceY(self, *_args, **_kwargs): |
1fded56b | 672 | val = gdic.wxDC_LogicalToDeviceY(self, *_args, **_kwargs) |
70551f47 | 673 | return val |
2d091820 | 674 | def LogicalToDeviceYRel(self, *_args, **_kwargs): |
1fded56b | 675 | val = gdic.wxDC_LogicalToDeviceYRel(self, *_args, **_kwargs) |
70551f47 | 676 | return val |
2d091820 | 677 | def MaxX(self, *_args, **_kwargs): |
1fded56b | 678 | val = gdic.wxDC_MaxX(self, *_args, **_kwargs) |
70551f47 | 679 | return val |
2d091820 | 680 | def MaxY(self, *_args, **_kwargs): |
1fded56b | 681 | val = gdic.wxDC_MaxY(self, *_args, **_kwargs) |
70551f47 | 682 | return val |
2d091820 | 683 | def MinX(self, *_args, **_kwargs): |
1fded56b | 684 | val = gdic.wxDC_MinX(self, *_args, **_kwargs) |
70551f47 | 685 | return val |
2d091820 | 686 | def MinY(self, *_args, **_kwargs): |
1fded56b | 687 | val = gdic.wxDC_MinY(self, *_args, **_kwargs) |
70551f47 | 688 | return val |
2d091820 | 689 | def Ok(self, *_args, **_kwargs): |
1fded56b | 690 | val = gdic.wxDC_Ok(self, *_args, **_kwargs) |
70551f47 | 691 | return val |
2d091820 | 692 | def SetDeviceOrigin(self, *_args, **_kwargs): |
1fded56b | 693 | val = gdic.wxDC_SetDeviceOrigin(self, *_args, **_kwargs) |
70551f47 | 694 | return val |
2d091820 | 695 | def SetBackground(self, *_args, **_kwargs): |
1fded56b | 696 | val = gdic.wxDC_SetBackground(self, *_args, **_kwargs) |
70551f47 | 697 | return val |
2d091820 | 698 | def SetBackgroundMode(self, *_args, **_kwargs): |
1fded56b | 699 | val = gdic.wxDC_SetBackgroundMode(self, *_args, **_kwargs) |
70551f47 | 700 | return val |
2d091820 | 701 | def SetClippingRegion(self, *_args, **_kwargs): |
1fded56b | 702 | val = gdic.wxDC_SetClippingRegion(self, *_args, **_kwargs) |
70551f47 | 703 | return val |
059a841c | 704 | def SetClippingRegionAsRegion(self, *_args, **_kwargs): |
1fded56b | 705 | val = gdic.wxDC_SetClippingRegionAsRegion(self, *_args, **_kwargs) |
059a841c | 706 | return val |
b2a2e5bf | 707 | def SetClippingRect(self, *_args, **_kwargs): |
1fded56b | 708 | val = gdic.wxDC_SetClippingRect(self, *_args, **_kwargs) |
b2a2e5bf | 709 | return val |
2d091820 | 710 | def SetPalette(self, *_args, **_kwargs): |
1fded56b | 711 | val = gdic.wxDC_SetPalette(self, *_args, **_kwargs) |
70551f47 | 712 | return val |
2d091820 | 713 | def SetBrush(self, *_args, **_kwargs): |
1fded56b | 714 | val = gdic.wxDC_SetBrush(self, *_args, **_kwargs) |
70551f47 | 715 | return val |
2d091820 | 716 | def SetFont(self, *_args, **_kwargs): |
1fded56b | 717 | val = gdic.wxDC_SetFont(self, *_args, **_kwargs) |
70551f47 | 718 | return val |
2d091820 | 719 | def SetLogicalFunction(self, *_args, **_kwargs): |
1fded56b | 720 | val = gdic.wxDC_SetLogicalFunction(self, *_args, **_kwargs) |
70551f47 | 721 | return val |
e02c03a4 | 722 | def SetLogicalScale(self, *_args, **_kwargs): |
1fded56b | 723 | val = gdic.wxDC_SetLogicalScale(self, *_args, **_kwargs) |
e02c03a4 | 724 | return val |
2d091820 | 725 | def SetMapMode(self, *_args, **_kwargs): |
1fded56b | 726 | val = gdic.wxDC_SetMapMode(self, *_args, **_kwargs) |
70551f47 | 727 | return val |
2d091820 | 728 | def SetOptimization(self, *_args, **_kwargs): |
1fded56b | 729 | val = gdic.wxDC_SetOptimization(self, *_args, **_kwargs) |
70551f47 | 730 | return val |
2d091820 | 731 | def SetPen(self, *_args, **_kwargs): |
1fded56b | 732 | val = gdic.wxDC_SetPen(self, *_args, **_kwargs) |
70551f47 | 733 | return val |
2d091820 | 734 | def SetTextBackground(self, *_args, **_kwargs): |
1fded56b | 735 | val = gdic.wxDC_SetTextBackground(self, *_args, **_kwargs) |
70551f47 | 736 | return val |
2d091820 | 737 | def SetTextForeground(self, *_args, **_kwargs): |
1fded56b | 738 | val = gdic.wxDC_SetTextForeground(self, *_args, **_kwargs) |
70551f47 | 739 | return val |
2d091820 | 740 | def SetUserScale(self, *_args, **_kwargs): |
1fded56b | 741 | val = gdic.wxDC_SetUserScale(self, *_args, **_kwargs) |
70551f47 | 742 | return val |
2d091820 | 743 | def StartDoc(self, *_args, **_kwargs): |
1fded56b | 744 | val = gdic.wxDC_StartDoc(self, *_args, **_kwargs) |
70551f47 | 745 | return val |
2d091820 | 746 | def StartPage(self, *_args, **_kwargs): |
1fded56b | 747 | val = gdic.wxDC_StartPage(self, *_args, **_kwargs) |
70551f47 | 748 | return val |
2d091820 | 749 | def DrawBitmap(self, *_args, **_kwargs): |
1fded56b | 750 | val = gdic.wxDC_DrawBitmap(self, *_args, **_kwargs) |
70551f47 | 751 | return val |
e02c03a4 | 752 | def CanDrawBitmap(self, *_args, **_kwargs): |
1fded56b | 753 | val = gdic.wxDC_CanDrawBitmap(self, *_args, **_kwargs) |
e02c03a4 RD |
754 | return val |
755 | def CanGetTextExtent(self, *_args, **_kwargs): | |
1fded56b | 756 | val = gdic.wxDC_CanGetTextExtent(self, *_args, **_kwargs) |
e02c03a4 RD |
757 | return val |
758 | def GetDepth(self, *_args, **_kwargs): | |
1fded56b | 759 | val = gdic.wxDC_GetDepth(self, *_args, **_kwargs) |
e02c03a4 RD |
760 | return val |
761 | def GetPPI(self, *_args, **_kwargs): | |
1fded56b | 762 | val = gdic.wxDC_GetPPI(self, *_args, **_kwargs) |
e02c03a4 RD |
763 | if val: val = wxSizePtr(val) ; val.thisown = 1 |
764 | return val | |
765 | def GetLogicalOrigin(self, *_args, **_kwargs): | |
1fded56b | 766 | val = gdic.wxDC_GetLogicalOrigin(self, *_args, **_kwargs) |
e02c03a4 RD |
767 | return val |
768 | def SetLogicalOrigin(self, *_args, **_kwargs): | |
1fded56b | 769 | val = gdic.wxDC_SetLogicalOrigin(self, *_args, **_kwargs) |
e02c03a4 RD |
770 | return val |
771 | def GetDeviceOrigin(self, *_args, **_kwargs): | |
1fded56b | 772 | val = gdic.wxDC_GetDeviceOrigin(self, *_args, **_kwargs) |
e02c03a4 RD |
773 | return val |
774 | def SetAxisOrientation(self, *_args, **_kwargs): | |
1fded56b | 775 | val = gdic.wxDC_SetAxisOrientation(self, *_args, **_kwargs) |
e02c03a4 | 776 | return val |
f6bcfd97 | 777 | def CalcBoundingBox(self, *_args, **_kwargs): |
1fded56b | 778 | val = gdic.wxDC_CalcBoundingBox(self, *_args, **_kwargs) |
f6bcfd97 BP |
779 | return val |
780 | def ResetBoundingBox(self, *_args, **_kwargs): | |
1fded56b | 781 | val = gdic.wxDC_ResetBoundingBox(self, *_args, **_kwargs) |
f6bcfd97 | 782 | return val |
3bcd5e1c | 783 | def GetBoundingBox(self, *_args, **_kwargs): |
1fded56b | 784 | val = gdic.wxDC_GetBoundingBox(self, *_args, **_kwargs) |
3bcd5e1c RD |
785 | return val |
786 | def _DrawPointList(self, *_args, **_kwargs): | |
1fded56b | 787 | val = gdic.wxDC__DrawPointList(self, *_args, **_kwargs) |
3bcd5e1c RD |
788 | return val |
789 | def _DrawLineList(self, *_args, **_kwargs): | |
1fded56b | 790 | val = gdic.wxDC__DrawLineList(self, *_args, **_kwargs) |
3bcd5e1c | 791 | return val |
b67a9327 | 792 | def _DrawRectangleList(self, *_args, **_kwargs): |
1fded56b | 793 | val = gdic.wxDC__DrawRectangleList(self, *_args, **_kwargs) |
b67a9327 RD |
794 | return val |
795 | def _DrawEllipseList(self, *_args, **_kwargs): | |
1fded56b | 796 | val = gdic.wxDC__DrawEllipseList(self, *_args, **_kwargs) |
b67a9327 RD |
797 | return val |
798 | def _DrawPolygonList(self, *_args, **_kwargs): | |
1fded56b | 799 | val = gdic.wxDC__DrawPolygonList(self, *_args, **_kwargs) |
b67a9327 RD |
800 | return val |
801 | def _DrawTextList(self, *_args, **_kwargs): | |
1fded56b | 802 | val = gdic.wxDC__DrawTextList(self, *_args, **_kwargs) |
b67a9327 | 803 | return val |
70551f47 | 804 | def __repr__(self): |
1fded56b RD |
805 | return "<%s.%s instance; proxy of C++ wxDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
806 | def __nonzero__(self): return self.Ok() | |
3bcd5e1c RD |
807 | |
808 | def DrawPointList(self, points, pens=None): | |
809 | if pens is None: | |
810 | pens = [] | |
811 | elif isinstance(pens, wxPenPtr): | |
812 | pens = [pens] | |
813 | elif len(pens) != len(points): | |
814 | raise ValueError('points and pens must have same length') | |
b67a9327 RD |
815 | return self._DrawPointList(points, pens, []) |
816 | ||
3bcd5e1c RD |
817 | |
818 | def DrawLineList(self, lines, pens=None): | |
819 | if pens is None: | |
820 | pens = [] | |
821 | elif isinstance(pens, wxPenPtr): | |
822 | pens = [pens] | |
823 | elif len(pens) != len(lines): | |
824 | raise ValueError('lines and pens must have same length') | |
b67a9327 RD |
825 | return self._DrawLineList(lines, pens, []) |
826 | ||
827 | ||
828 | def DrawRectangleList(self, rectangles, pens=None, brushes=None): | |
829 | if pens is None: | |
830 | pens = [] | |
831 | elif isinstance(pens, wxPenPtr): | |
832 | pens = [pens] | |
833 | elif len(pens) != len(rectangles): | |
834 | raise ValueError('rectangles and pens must have same length') | |
835 | if brushes is None: | |
836 | brushes = [] | |
837 | elif isinstance(brushes, wxBrushPtr): | |
838 | brushes = [brushes] | |
839 | elif len(brushes) != len(rectangles): | |
840 | raise ValueError('rectangles and brushes must have same length') | |
841 | return self._DrawRectangleList(rectangles, pens, brushes) | |
842 | ||
843 | ||
844 | def DrawEllipseList(self, ellipses, pens=None, brushes=None): | |
845 | if pens is None: | |
846 | pens = [] | |
847 | elif isinstance(pens, wxPenPtr): | |
848 | pens = [pens] | |
849 | elif len(pens) != len(ellipses): | |
850 | raise ValueError('ellipses and pens must have same length') | |
851 | if brushes is None: | |
852 | brushes = [] | |
853 | elif isinstance(brushes, wxBrushPtr): | |
854 | brushes = [brushes] | |
855 | elif len(brushes) != len(ellipses): | |
856 | raise ValueError('ellipses and brushes must have same length') | |
857 | return self._DrawEllipseList(ellipses, pens, brushes) | |
858 | ||
859 | ||
860 | def DrawPolygonList(self, polygons, pens=None, brushes=None): | |
861 | ## Note: This does not currently support fill style or offset | |
862 | ## you can always use the non-List version if need be. | |
863 | ## I really would like to support fill-style, however, | |
864 | ## but wxODDEVEN_RULE does not appear to be defined at the Python level | |
865 | ## [It's in wx.py... --Robin] | |
866 | if pens is None: | |
867 | pens = [] | |
868 | elif isinstance(pens, wxPenPtr): | |
869 | pens = [pens] | |
870 | elif len(pens) != len(polygons): | |
871 | raise ValueError('polygons and pens must have same length') | |
872 | if brushes is None: | |
873 | brushes = [] | |
874 | elif isinstance(brushes, wxBrushPtr): | |
875 | brushes = [brushes] | |
876 | elif len(brushes) != len(polygons): | |
877 | raise ValueError('polygons and brushes must have same length') | |
878 | return self._DrawPolygonList(polygons, pens, brushes) | |
879 | ||
880 | ||
881 | def DrawTextList(self, textList, coords, foregrounds = None, backgrounds = None, fonts = None): | |
882 | ## NOTE: this does not currently support changing the font | |
883 | ## Make sure you set Background mode to wxSolid (DC.SetBackgroundMode) | |
884 | ## If you want backgounds to do anything. | |
885 | if type(textList) == type(''): | |
886 | textList = [textList] | |
887 | elif len(textList) != len(coords): | |
888 | raise ValueError('textlist and coords must have same length') | |
889 | if foregrounds is None: | |
890 | foregrounds = [] | |
891 | elif isinstance(foregrounds, wxColourPtr): | |
892 | foregrounds = [foregrounds] | |
893 | elif len(foregrounds) != len(coords): | |
894 | raise ValueError('foregrounds and coords must have same length') | |
895 | if backgrounds is None: | |
896 | backgrounds = [] | |
897 | elif isinstance(backgrounds, wxColourPtr): | |
898 | backgrounds = [backgrounds] | |
899 | elif len(backgrounds) != len(coords): | |
900 | raise ValueError('backgrounds and coords must have same length') | |
901 | return self._DrawTextList(textList, coords, foregrounds, backgrounds) | |
3bcd5e1c | 902 | |
70551f47 RD |
903 | class wxDC(wxDCPtr): |
904 | def __init__(self,this): | |
905 | self.this = this | |
906 | ||
907 | ||
908 | ||
909 | ||
910 | class wxMemoryDCPtr(wxDCPtr): | |
911 | def __init__(self,this): | |
912 | self.this = this | |
913 | self.thisown = 0 | |
2d091820 | 914 | def SelectObject(self, *_args, **_kwargs): |
1fded56b | 915 | val = gdic.wxMemoryDC_SelectObject(self, *_args, **_kwargs) |
70551f47 RD |
916 | return val |
917 | def __repr__(self): | |
1fded56b | 918 | return "<%s.%s instance; proxy of C++ wxMemoryDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
70551f47 | 919 | class wxMemoryDC(wxMemoryDCPtr): |
2d091820 | 920 | def __init__(self,*_args,**_kwargs): |
1fded56b | 921 | self.this = gdic.new_wxMemoryDC(*_args,**_kwargs) |
70551f47 RD |
922 | self.thisown = 1 |
923 | ||
924 | ||
925 | ||
926 | ||
a884bee5 RD |
927 | class wxBufferedDCPtr(wxMemoryDCPtr): |
928 | def __init__(self,this): | |
929 | self.this = this | |
930 | self.thisown = 0 | |
301dfd67 | 931 | def UnMask(self, *_args, **_kwargs): |
1fded56b | 932 | val = gdic.wxBufferedDC_UnMask(self, *_args, **_kwargs) |
301dfd67 | 933 | return val |
a884bee5 | 934 | def __repr__(self): |
1fded56b | 935 | return "<%s.%s instance; proxy of C++ wxBufferedDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
a884bee5 RD |
936 | class wxBufferedDC(wxBufferedDCPtr): |
937 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 938 | self.this = gdic.new_wxBufferedDC(*_args,**_kwargs) |
a884bee5 | 939 | self.thisown = 1 |
301dfd67 | 940 | self._dc = _args[0] # save a ref so the other dc won't be deleted before self |
a884bee5 RD |
941 | |
942 | ||
943 | ||
944 | def wxBufferedDCInternalBuffer(*_args,**_kwargs): | |
1fded56b | 945 | val = wxBufferedDCPtr(gdic.new_wxBufferedDCInternalBuffer(*_args,**_kwargs)) |
a884bee5 | 946 | val.thisown = 1 |
301dfd67 | 947 | val._dc = _args[0] # save a ref so the other dc won't be deleted before self |
a884bee5 RD |
948 | return val |
949 | ||
950 | ||
951 | class wxBufferedPaintDCPtr(wxBufferedDCPtr): | |
952 | def __init__(self,this): | |
953 | self.this = this | |
954 | self.thisown = 0 | |
955 | def __repr__(self): | |
1fded56b | 956 | return "<%s.%s instance; proxy of C++ wxBufferedPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
a884bee5 RD |
957 | class wxBufferedPaintDC(wxBufferedPaintDCPtr): |
958 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 959 | self.this = gdic.new_wxBufferedPaintDC(*_args,**_kwargs) |
a884bee5 RD |
960 | self.thisown = 1 |
961 | ||
962 | ||
963 | ||
964 | ||
70551f47 RD |
965 | class wxScreenDCPtr(wxDCPtr): |
966 | def __init__(self,this): | |
967 | self.this = this | |
968 | self.thisown = 0 | |
2fc99549 | 969 | def StartDrawingOnTopWin(self, *_args, **_kwargs): |
1fded56b | 970 | val = gdic.wxScreenDC_StartDrawingOnTopWin(self, *_args, **_kwargs) |
2fc99549 | 971 | return val |
2d091820 | 972 | def StartDrawingOnTop(self, *_args, **_kwargs): |
1fded56b | 973 | val = gdic.wxScreenDC_StartDrawingOnTop(self, *_args, **_kwargs) |
70551f47 | 974 | return val |
2d091820 | 975 | def EndDrawingOnTop(self, *_args, **_kwargs): |
1fded56b | 976 | val = gdic.wxScreenDC_EndDrawingOnTop(self, *_args, **_kwargs) |
70551f47 RD |
977 | return val |
978 | def __repr__(self): | |
1fded56b | 979 | return "<%s.%s instance; proxy of C++ wxScreenDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
70551f47 | 980 | class wxScreenDC(wxScreenDCPtr): |
2d091820 | 981 | def __init__(self,*_args,**_kwargs): |
1fded56b | 982 | self.this = gdic.new_wxScreenDC(*_args,**_kwargs) |
70551f47 RD |
983 | self.thisown = 1 |
984 | ||
985 | ||
986 | ||
987 | ||
988 | class wxClientDCPtr(wxDCPtr): | |
989 | def __init__(self,this): | |
990 | self.this = this | |
991 | self.thisown = 0 | |
992 | def __repr__(self): | |
1fded56b | 993 | return "<%s.%s instance; proxy of C++ wxClientDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
70551f47 | 994 | class wxClientDC(wxClientDCPtr): |
2d091820 | 995 | def __init__(self,*_args,**_kwargs): |
1fded56b | 996 | self.this = gdic.new_wxClientDC(*_args,**_kwargs) |
70551f47 RD |
997 | self.thisown = 1 |
998 | ||
999 | ||
1000 | ||
1001 | ||
1002 | class wxPaintDCPtr(wxDCPtr): | |
1003 | def __init__(self,this): | |
1004 | self.this = this | |
1005 | self.thisown = 0 | |
1006 | def __repr__(self): | |
1fded56b | 1007 | return "<%s.%s instance; proxy of C++ wxPaintDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
70551f47 | 1008 | class wxPaintDC(wxPaintDCPtr): |
2d091820 | 1009 | def __init__(self,*_args,**_kwargs): |
1fded56b | 1010 | self.this = gdic.new_wxPaintDC(*_args,**_kwargs) |
70551f47 RD |
1011 | self.thisown = 1 |
1012 | ||
1013 | ||
1014 | ||
1015 | ||
c95e68d8 RD |
1016 | class wxWindowDCPtr(wxDCPtr): |
1017 | def __init__(self,this): | |
1018 | self.this = this | |
1019 | self.thisown = 0 | |
1020 | def __repr__(self): | |
1fded56b | 1021 | return "<%s.%s instance; proxy of C++ wxWindowDC instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
c95e68d8 | 1022 | class wxWindowDC(wxWindowDCPtr): |
2d091820 | 1023 | def __init__(self,*_args,**_kwargs): |
1fded56b | 1024 | self.this = gdic.new_wxWindowDC(*_args,**_kwargs) |
c95e68d8 RD |
1025 | self.thisown = 1 |
1026 | ||
1027 | ||
1028 | ||
1029 | ||
9df61a29 | 1030 | class wxPalettePtr(wxGDIObjectPtr): |
105e45b9 RD |
1031 | def __init__(self,this): |
1032 | self.this = this | |
1033 | self.thisown = 0 | |
b67a9327 RD |
1034 | def __del__(self, delfunc=gdic.delete_wxPalette): |
1035 | if self.thisown == 1: | |
1036 | try: | |
1037 | delfunc(self) | |
1038 | except: | |
1039 | pass | |
2d091820 | 1040 | def GetPixel(self, *_args, **_kwargs): |
1fded56b | 1041 | val = gdic.wxPalette_GetPixel(self, *_args, **_kwargs) |
105e45b9 | 1042 | return val |
2d091820 | 1043 | def GetRGB(self, *_args, **_kwargs): |
1fded56b | 1044 | val = gdic.wxPalette_GetRGB(self, *_args, **_kwargs) |
105e45b9 | 1045 | return val |
2d091820 | 1046 | def Ok(self, *_args, **_kwargs): |
1fded56b | 1047 | val = gdic.wxPalette_Ok(self, *_args, **_kwargs) |
105e45b9 RD |
1048 | return val |
1049 | def __repr__(self): | |
1fded56b RD |
1050 | return "<%s.%s instance; proxy of C++ wxPalette instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
1051 | def __nonzero__(self): return self.Ok() | |
105e45b9 | 1052 | class wxPalette(wxPalettePtr): |
2d091820 | 1053 | def __init__(self,*_args,**_kwargs): |
1fded56b | 1054 | self.this = gdic.new_wxPalette(*_args,**_kwargs) |
105e45b9 RD |
1055 | self.thisown = 1 |
1056 | ||
1057 | ||
1058 | ||
1059 | ||
9df61a29 | 1060 | class wxImageListPtr(wxObjectPtr): |
21f8d7ea RD |
1061 | def __init__(self,this): |
1062 | self.this = this | |
1063 | self.thisown = 0 | |
b67a9327 RD |
1064 | def __del__(self, delfunc=gdic.delete_wxImageList): |
1065 | if self.thisown == 1: | |
1066 | try: | |
1067 | delfunc(self) | |
1068 | except: | |
1069 | pass | |
2d091820 | 1070 | def Add(self, *_args, **_kwargs): |
1fded56b | 1071 | val = gdic.wxImageList_Add(self, *_args, **_kwargs) |
21f8d7ea | 1072 | return val |
f6bcfd97 | 1073 | def AddWithColourMask(self, *_args, **_kwargs): |
1fded56b | 1074 | val = gdic.wxImageList_AddWithColourMask(self, *_args, **_kwargs) |
f6bcfd97 BP |
1075 | return val |
1076 | def AddIcon(self, *_args, **_kwargs): | |
1fded56b | 1077 | val = gdic.wxImageList_AddIcon(self, *_args, **_kwargs) |
f6bcfd97 | 1078 | return val |
2d091820 | 1079 | def Replace(self, *_args, **_kwargs): |
1fded56b | 1080 | val = gdic.wxImageList_Replace(self, *_args, **_kwargs) |
21f8d7ea | 1081 | return val |
2d091820 | 1082 | def Draw(self, *_args, **_kwargs): |
1fded56b | 1083 | val = gdic.wxImageList_Draw(self, *_args, **_kwargs) |
21f8d7ea | 1084 | return val |
2d091820 | 1085 | def GetImageCount(self, *_args, **_kwargs): |
1fded56b | 1086 | val = gdic.wxImageList_GetImageCount(self, *_args, **_kwargs) |
21f8d7ea | 1087 | return val |
2d091820 | 1088 | def Remove(self, *_args, **_kwargs): |
1fded56b | 1089 | val = gdic.wxImageList_Remove(self, *_args, **_kwargs) |
21f8d7ea | 1090 | return val |
2d091820 | 1091 | def RemoveAll(self, *_args, **_kwargs): |
1fded56b | 1092 | val = gdic.wxImageList_RemoveAll(self, *_args, **_kwargs) |
21f8d7ea | 1093 | return val |
f6bcfd97 | 1094 | def GetSize(self, *_args, **_kwargs): |
1fded56b | 1095 | val = gdic.wxImageList_GetSize(self, *_args, **_kwargs) |
f6bcfd97 | 1096 | return val |
21f8d7ea | 1097 | def __repr__(self): |
1fded56b | 1098 | return "<%s.%s instance; proxy of C++ wxImageList instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
21f8d7ea | 1099 | class wxImageList(wxImageListPtr): |
2d091820 | 1100 | def __init__(self,*_args,**_kwargs): |
1fded56b | 1101 | self.this = gdic.new_wxImageList(*_args,**_kwargs) |
21f8d7ea RD |
1102 | self.thisown = 1 |
1103 | ||
1104 | ||
1105 | ||
1106 | ||
9df61a29 RD |
1107 | class wxRegionPtr(wxGDIObjectPtr): |
1108 | def __init__(self,this): | |
1109 | self.this = this | |
1110 | self.thisown = 0 | |
b67a9327 RD |
1111 | def __del__(self, delfunc=gdic.delete_wxRegion): |
1112 | if self.thisown == 1: | |
1113 | try: | |
1114 | delfunc(self) | |
1115 | except: | |
1116 | pass | |
9df61a29 | 1117 | def Clear(self, *_args, **_kwargs): |
1fded56b | 1118 | val = gdic.wxRegion_Clear(self, *_args, **_kwargs) |
9df61a29 | 1119 | return val |
8cb49012 | 1120 | def Offset(self, *_args, **_kwargs): |
1fded56b | 1121 | val = gdic.wxRegion_Offset(self, *_args, **_kwargs) |
8cb49012 | 1122 | return val |
9df61a29 | 1123 | def Contains(self, *_args, **_kwargs): |
1fded56b | 1124 | val = gdic.wxRegion_Contains(self, *_args, **_kwargs) |
9df61a29 RD |
1125 | return val |
1126 | def ContainsPoint(self, *_args, **_kwargs): | |
1fded56b | 1127 | val = gdic.wxRegion_ContainsPoint(self, *_args, **_kwargs) |
9df61a29 RD |
1128 | return val |
1129 | def ContainsRect(self, *_args, **_kwargs): | |
1fded56b | 1130 | val = gdic.wxRegion_ContainsRect(self, *_args, **_kwargs) |
9df61a29 RD |
1131 | return val |
1132 | def ContainsRectDim(self, *_args, **_kwargs): | |
1fded56b | 1133 | val = gdic.wxRegion_ContainsRectDim(self, *_args, **_kwargs) |
9df61a29 RD |
1134 | return val |
1135 | def GetBox(self, *_args, **_kwargs): | |
1fded56b | 1136 | val = gdic.wxRegion_GetBox(self, *_args, **_kwargs) |
9df61a29 RD |
1137 | if val: val = wxRectPtr(val) ; val.thisown = 1 |
1138 | return val | |
1139 | def Intersect(self, *_args, **_kwargs): | |
1fded56b | 1140 | val = gdic.wxRegion_Intersect(self, *_args, **_kwargs) |
9df61a29 RD |
1141 | return val |
1142 | def IntersectRect(self, *_args, **_kwargs): | |
1fded56b | 1143 | val = gdic.wxRegion_IntersectRect(self, *_args, **_kwargs) |
9df61a29 RD |
1144 | return val |
1145 | def IntersectRegion(self, *_args, **_kwargs): | |
1fded56b | 1146 | val = gdic.wxRegion_IntersectRegion(self, *_args, **_kwargs) |
9df61a29 RD |
1147 | return val |
1148 | def IsEmpty(self, *_args, **_kwargs): | |
1fded56b | 1149 | val = gdic.wxRegion_IsEmpty(self, *_args, **_kwargs) |
9df61a29 RD |
1150 | return val |
1151 | def Union(self, *_args, **_kwargs): | |
1fded56b | 1152 | val = gdic.wxRegion_Union(self, *_args, **_kwargs) |
9df61a29 RD |
1153 | return val |
1154 | def UnionRect(self, *_args, **_kwargs): | |
1fded56b | 1155 | val = gdic.wxRegion_UnionRect(self, *_args, **_kwargs) |
9df61a29 RD |
1156 | return val |
1157 | def UnionRegion(self, *_args, **_kwargs): | |
1fded56b | 1158 | val = gdic.wxRegion_UnionRegion(self, *_args, **_kwargs) |
9df61a29 RD |
1159 | return val |
1160 | def Subtract(self, *_args, **_kwargs): | |
1fded56b | 1161 | val = gdic.wxRegion_Subtract(self, *_args, **_kwargs) |
9df61a29 RD |
1162 | return val |
1163 | def SubtractRect(self, *_args, **_kwargs): | |
1fded56b | 1164 | val = gdic.wxRegion_SubtractRect(self, *_args, **_kwargs) |
9df61a29 RD |
1165 | return val |
1166 | def SubtractRegion(self, *_args, **_kwargs): | |
1fded56b | 1167 | val = gdic.wxRegion_SubtractRegion(self, *_args, **_kwargs) |
9df61a29 RD |
1168 | return val |
1169 | def Xor(self, *_args, **_kwargs): | |
1fded56b | 1170 | val = gdic.wxRegion_Xor(self, *_args, **_kwargs) |
9df61a29 RD |
1171 | return val |
1172 | def XorRect(self, *_args, **_kwargs): | |
1fded56b | 1173 | val = gdic.wxRegion_XorRect(self, *_args, **_kwargs) |
9df61a29 RD |
1174 | return val |
1175 | def XorRegion(self, *_args, **_kwargs): | |
1fded56b RD |
1176 | val = gdic.wxRegion_XorRegion(self, *_args, **_kwargs) |
1177 | return val | |
1178 | def ConvertToBitmap(self, *_args, **_kwargs): | |
1179 | val = gdic.wxRegion_ConvertToBitmap(self, *_args, **_kwargs) | |
1180 | if val: val = wxBitmapPtr(val) ; val.thisown = 1 | |
1181 | return val | |
1182 | def UnionBitmap(self, *_args, **_kwargs): | |
1183 | val = gdic.wxRegion_UnionBitmap(self, *_args, **_kwargs) | |
9df61a29 RD |
1184 | return val |
1185 | def __repr__(self): | |
1fded56b | 1186 | return "<%s.%s instance; proxy of C++ wxRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
9df61a29 RD |
1187 | class wxRegion(wxRegionPtr): |
1188 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 1189 | self.this = gdic.new_wxRegion(*_args,**_kwargs) |
9df61a29 RD |
1190 | self.thisown = 1 |
1191 | ||
1192 | ||
1193 | ||
3efe9549 | 1194 | def wxRegionFromPoints(*_args,**_kwargs): |
1fded56b RD |
1195 | val = wxRegionPtr(gdic.new_wxRegionFromPoints(*_args,**_kwargs)) |
1196 | val.thisown = 1 | |
1197 | return val | |
1198 | ||
1199 | def wxRegionFromBitmap(*_args,**_kwargs): | |
1200 | val = wxRegionPtr(gdic.new_wxRegionFromBitmap(*_args,**_kwargs)) | |
3efe9549 RD |
1201 | val.thisown = 1 |
1202 | return val | |
1203 | ||
9df61a29 RD |
1204 | |
1205 | class wxRegionIteratorPtr(wxObjectPtr): | |
1206 | def __init__(self,this): | |
1207 | self.this = this | |
1208 | self.thisown = 0 | |
b67a9327 RD |
1209 | def __del__(self, delfunc=gdic.delete_wxRegionIterator): |
1210 | if self.thisown == 1: | |
1211 | try: | |
1212 | delfunc(self) | |
1213 | except: | |
1214 | pass | |
9df61a29 | 1215 | def GetX(self, *_args, **_kwargs): |
1fded56b | 1216 | val = gdic.wxRegionIterator_GetX(self, *_args, **_kwargs) |
9df61a29 RD |
1217 | return val |
1218 | def GetY(self, *_args, **_kwargs): | |
1fded56b | 1219 | val = gdic.wxRegionIterator_GetY(self, *_args, **_kwargs) |
9df61a29 RD |
1220 | return val |
1221 | def GetW(self, *_args, **_kwargs): | |
1fded56b | 1222 | val = gdic.wxRegionIterator_GetW(self, *_args, **_kwargs) |
9df61a29 RD |
1223 | return val |
1224 | def GetWidth(self, *_args, **_kwargs): | |
1fded56b | 1225 | val = gdic.wxRegionIterator_GetWidth(self, *_args, **_kwargs) |
9df61a29 RD |
1226 | return val |
1227 | def GetH(self, *_args, **_kwargs): | |
1fded56b | 1228 | val = gdic.wxRegionIterator_GetH(self, *_args, **_kwargs) |
9df61a29 RD |
1229 | return val |
1230 | def GetHeight(self, *_args, **_kwargs): | |
1fded56b | 1231 | val = gdic.wxRegionIterator_GetHeight(self, *_args, **_kwargs) |
9df61a29 RD |
1232 | return val |
1233 | def GetRect(self, *_args, **_kwargs): | |
1fded56b | 1234 | val = gdic.wxRegionIterator_GetRect(self, *_args, **_kwargs) |
9df61a29 RD |
1235 | if val: val = wxRectPtr(val) ; val.thisown = 1 |
1236 | return val | |
1237 | def HaveRects(self, *_args, **_kwargs): | |
1fded56b | 1238 | val = gdic.wxRegionIterator_HaveRects(self, *_args, **_kwargs) |
9df61a29 RD |
1239 | return val |
1240 | def Reset(self, *_args, **_kwargs): | |
1fded56b | 1241 | val = gdic.wxRegionIterator_Reset(self, *_args, **_kwargs) |
9df61a29 RD |
1242 | return val |
1243 | def Next(self, *_args, **_kwargs): | |
1fded56b | 1244 | val = gdic.wxRegionIterator_Next(self, *_args, **_kwargs) |
9df61a29 RD |
1245 | return val |
1246 | def __repr__(self): | |
1fded56b | 1247 | return "<%s.%s instance; proxy of C++ wxRegionIterator instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
9df61a29 RD |
1248 | class wxRegionIterator(wxRegionIteratorPtr): |
1249 | def __init__(self,*_args,**_kwargs): | |
1fded56b | 1250 | self.this = gdic.new_wxRegionIterator(*_args,**_kwargs) |
9df61a29 RD |
1251 | self.thisown = 1 |
1252 | ||
1253 | ||
1254 | ||
1255 | ||
70551f47 RD |
1256 | |
1257 | ||
1258 | #-------------- FUNCTION WRAPPERS ------------------ | |
1259 | ||
2d091820 | 1260 | def wxEmptyBitmap(*_args, **_kwargs): |
1fded56b | 1261 | val = gdic.wxEmptyBitmap(*_args,**_kwargs) |
2d091820 | 1262 | if val: val = wxBitmapPtr(val); val.thisown = 1 |
70551f47 RD |
1263 | return val |
1264 | ||
fbcadfca | 1265 | def wxBitmapFromXPMData(*_args, **_kwargs): |
1fded56b | 1266 | val = gdic.wxBitmapFromXPMData(*_args,**_kwargs) |
fbcadfca RD |
1267 | if val: val = wxBitmapPtr(val); val.thisown = 1 |
1268 | return val | |
1269 | ||
1270 | def wxBitmapFromIcon(*_args, **_kwargs): | |
1fded56b | 1271 | val = gdic.wxBitmapFromIcon(*_args,**_kwargs) |
fbcadfca RD |
1272 | if val: val = wxBitmapPtr(val); val.thisown = 1 |
1273 | return val | |
1274 | ||
9d6da64a | 1275 | def wxBitmapFromBits(*_args, **_kwargs): |
1fded56b | 1276 | val = gdic.wxBitmapFromBits(*_args,**_kwargs) |
9d6da64a RD |
1277 | if val: val = wxBitmapPtr(val); val.thisown = 1 |
1278 | return val | |
1279 | ||
2d091820 | 1280 | def wxMaskColour(*_args, **_kwargs): |
1fded56b | 1281 | val = gdic.wxMaskColour(*_args,**_kwargs) |
2d091820 | 1282 | if val: val = wxMaskPtr(val); val.thisown = 1 |
70551f47 RD |
1283 | return val |
1284 | ||
fbcadfca | 1285 | def wxEmptyIcon(*_args, **_kwargs): |
1fded56b | 1286 | val = gdic.wxEmptyIcon(*_args,**_kwargs) |
fbcadfca RD |
1287 | if val: val = wxIconPtr(val); val.thisown = 1 |
1288 | return val | |
1289 | ||
1290 | def wxIconFromXPMData(*_args, **_kwargs): | |
1fded56b | 1291 | val = gdic.wxIconFromXPMData(*_args,**_kwargs) |
fbcadfca RD |
1292 | if val: val = wxIconPtr(val); val.thisown = 1 |
1293 | return val | |
1294 | ||
4be61064 | 1295 | def wxIconFromBitmap(*_args, **_kwargs): |
1fded56b | 1296 | val = gdic.wxIconFromBitmap(*_args,**_kwargs) |
4be61064 RD |
1297 | if val: val = wxIconPtr(val); val.thisown = 1 |
1298 | return val | |
1299 | ||
2d091820 | 1300 | def wxStockCursor(*_args, **_kwargs): |
1fded56b | 1301 | val = gdic.wxStockCursor(*_args,**_kwargs) |
2d091820 | 1302 | if val: val = wxCursorPtr(val); val.thisown = 1 |
70551f47 RD |
1303 | return val |
1304 | ||
b67a9327 | 1305 | def wxCursorFromImage(*_args, **_kwargs): |
1fded56b RD |
1306 | val = gdic.wxCursorFromImage(*_args,**_kwargs) |
1307 | if val: val = wxCursorPtr(val); val.thisown = 1 | |
1308 | return val | |
1309 | ||
1310 | def wxCursorFromBits(*_args, **_kwargs): | |
1311 | val = gdic.wxCursorFromBits(*_args,**_kwargs) | |
b67a9327 RD |
1312 | if val: val = wxCursorPtr(val); val.thisown = 1 |
1313 | return val | |
1314 | ||
2d091820 | 1315 | def wxNamedColour(*_args, **_kwargs): |
1fded56b | 1316 | val = gdic.wxNamedColour(*_args,**_kwargs) |
2d091820 | 1317 | if val: val = wxColourPtr(val); val.thisown = 1 |
70551f47 RD |
1318 | return val |
1319 | ||
2d091820 | 1320 | def wxMemoryDCFromDC(*_args, **_kwargs): |
1fded56b | 1321 | val = gdic.wxMemoryDCFromDC(*_args,**_kwargs) |
2d091820 | 1322 | if val: val = wxMemoryDCPtr(val); val.thisown = 1 |
70551f47 RD |
1323 | return val |
1324 | ||
1325 | ||
1326 | ||
1327 | #-------------- VARIABLE WRAPPERS ------------------ | |
1328 | ||
3e212503 RD |
1329 | wxIMAGELIST_DRAW_NORMAL = gdic.wxIMAGELIST_DRAW_NORMAL |
1330 | wxIMAGELIST_DRAW_TRANSPARENT = gdic.wxIMAGELIST_DRAW_TRANSPARENT | |
1331 | wxIMAGELIST_DRAW_SELECTED = gdic.wxIMAGELIST_DRAW_SELECTED | |
1332 | wxIMAGELIST_DRAW_FOCUSED = gdic.wxIMAGELIST_DRAW_FOCUSED | |
1333 | wxIMAGE_LIST_NORMAL = gdic.wxIMAGE_LIST_NORMAL | |
1334 | wxIMAGE_LIST_SMALL = gdic.wxIMAGE_LIST_SMALL | |
1335 | wxIMAGE_LIST_STATE = gdic.wxIMAGE_LIST_STATE | |
1336 | wxOutRegion = gdic.wxOutRegion | |
1337 | wxPartRegion = gdic.wxPartRegion | |
1338 | wxInRegion = gdic.wxInRegion | |
70551f47 RD |
1339 | cvar = gdic.cvar |
1340 | wxNORMAL_FONT = wxFontPtr(gdic.cvar.wxNORMAL_FONT) | |
1341 | wxSMALL_FONT = wxFontPtr(gdic.cvar.wxSMALL_FONT) | |
1342 | wxITALIC_FONT = wxFontPtr(gdic.cvar.wxITALIC_FONT) | |
1343 | wxSWISS_FONT = wxFontPtr(gdic.cvar.wxSWISS_FONT) | |
1344 | wxRED_PEN = wxPenPtr(gdic.cvar.wxRED_PEN) | |
1345 | wxCYAN_PEN = wxPenPtr(gdic.cvar.wxCYAN_PEN) | |
1346 | wxGREEN_PEN = wxPenPtr(gdic.cvar.wxGREEN_PEN) | |
1347 | wxBLACK_PEN = wxPenPtr(gdic.cvar.wxBLACK_PEN) | |
1348 | wxWHITE_PEN = wxPenPtr(gdic.cvar.wxWHITE_PEN) | |
1349 | wxTRANSPARENT_PEN = wxPenPtr(gdic.cvar.wxTRANSPARENT_PEN) | |
1350 | wxBLACK_DASHED_PEN = wxPenPtr(gdic.cvar.wxBLACK_DASHED_PEN) | |
1351 | wxGREY_PEN = wxPenPtr(gdic.cvar.wxGREY_PEN) | |
1352 | wxMEDIUM_GREY_PEN = wxPenPtr(gdic.cvar.wxMEDIUM_GREY_PEN) | |
1353 | wxLIGHT_GREY_PEN = wxPenPtr(gdic.cvar.wxLIGHT_GREY_PEN) | |
1354 | wxBLUE_BRUSH = wxBrushPtr(gdic.cvar.wxBLUE_BRUSH) | |
1355 | wxGREEN_BRUSH = wxBrushPtr(gdic.cvar.wxGREEN_BRUSH) | |
1356 | wxWHITE_BRUSH = wxBrushPtr(gdic.cvar.wxWHITE_BRUSH) | |
1357 | wxBLACK_BRUSH = wxBrushPtr(gdic.cvar.wxBLACK_BRUSH) | |
1358 | wxTRANSPARENT_BRUSH = wxBrushPtr(gdic.cvar.wxTRANSPARENT_BRUSH) | |
1359 | wxCYAN_BRUSH = wxBrushPtr(gdic.cvar.wxCYAN_BRUSH) | |
1360 | wxRED_BRUSH = wxBrushPtr(gdic.cvar.wxRED_BRUSH) | |
1361 | wxGREY_BRUSH = wxBrushPtr(gdic.cvar.wxGREY_BRUSH) | |
1362 | wxMEDIUM_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxMEDIUM_GREY_BRUSH) | |
1363 | wxLIGHT_GREY_BRUSH = wxBrushPtr(gdic.cvar.wxLIGHT_GREY_BRUSH) | |
1364 | wxBLACK = wxColourPtr(gdic.cvar.wxBLACK) | |
1365 | wxWHITE = wxColourPtr(gdic.cvar.wxWHITE) | |
1366 | wxRED = wxColourPtr(gdic.cvar.wxRED) | |
1367 | wxBLUE = wxColourPtr(gdic.cvar.wxBLUE) | |
1368 | wxGREEN = wxColourPtr(gdic.cvar.wxGREEN) | |
1369 | wxCYAN = wxColourPtr(gdic.cvar.wxCYAN) | |
1370 | wxLIGHT_GREY = wxColourPtr(gdic.cvar.wxLIGHT_GREY) | |
1371 | wxSTANDARD_CURSOR = wxCursorPtr(gdic.cvar.wxSTANDARD_CURSOR) | |
1372 | wxHOURGLASS_CURSOR = wxCursorPtr(gdic.cvar.wxHOURGLASS_CURSOR) | |
1373 | wxCROSS_CURSOR = wxCursorPtr(gdic.cvar.wxCROSS_CURSOR) | |
1374 | wxNullBitmap = wxBitmapPtr(gdic.cvar.wxNullBitmap) | |
1375 | wxNullIcon = wxIconPtr(gdic.cvar.wxNullIcon) | |
1376 | wxNullCursor = wxCursorPtr(gdic.cvar.wxNullCursor) | |
1377 | wxNullPen = wxPenPtr(gdic.cvar.wxNullPen) | |
1378 | wxNullBrush = wxBrushPtr(gdic.cvar.wxNullBrush) | |
21f8d7ea | 1379 | wxNullPalette = wxPalettePtr(gdic.cvar.wxNullPalette) |
70551f47 RD |
1380 | wxNullFont = wxFontPtr(gdic.cvar.wxNullFont) |
1381 | wxNullColour = wxColourPtr(gdic.cvar.wxNullColour) | |
5e40f9dd RD |
1382 | wxTheFontList = wxFontListPtr(gdic.cvar.wxTheFontList) |
1383 | wxThePenList = wxPenListPtr(gdic.cvar.wxThePenList) | |
65191ae8 | 1384 | wxTheBrushList = wxBrushListPtr(gdic.cvar.wxTheBrushList) |
5e40f9dd | 1385 | wxTheColourDatabase = wxColourDatabasePtr(gdic.cvar.wxTheColourDatabase) |