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