1 /*
2 * Interface wrapper code.
3 *
4 * Generated by SIP 4.19.16
5 *
6 * Copyright: (c) 2018 by Total Control Software
7 * License: wxWindows License
8 */
9
10 #include "sipAPI_core.h"
11
12 #include <wx/statbmp.h>
13
14 #include <wx/window.h>
15 #include <wx/bitmap.h>
16 #include <wx/gdicmn.h>
17 #include <wx/gdicmn.h>
18 #include <wx/window.h>
19 #include <wx/event.h>
20 #include <wx/validate.h>
21 #include <wx/icon.h>
22 #include <wx/dc.h>
23 #include <wx/event.h>
24 #include <wx/event.h>
25 #include <wx/setup.h>
26 #include <wxPython/wxpy_api.h>
27 #include <wx/event.h>
28 #include <wx/cursor.h>
29 #include <wx/caret.h>
30 #include <wx/layout.h>
31 #include <wx/sizer.h>
32 #include <wx/dnd.h>
33 #include <wx/access.h>
34 #include <wx/accel.h>
35 #include <wx/menu.h>
36 #include <wx/tooltip.h>
37 #include <wx/event.h>
38 #include <wx/gdicmn.h>
39 #include <wx/event.h>
40 #include <wx/event.h>
41 #include <wx/palette.h>
42 #include <wx/colour.h>
43 #include <wx/font.h>
44 #include <wx/region.h>
45
46 #include <wx/eventfilter.h>
47 #include <wx/object.h>
48 #include <wx/object.h>
49 #include <wx/object.h>
50
51
52 class sipwxStaticBitmap : public ::wxStaticBitmap
53 {
54 public:
55 sipwxStaticBitmap();
56 sipwxStaticBitmap( ::wxWindow*, ::wxWindowID,const ::wxBitmap&,const ::wxPoint&,const ::wxSize&,long,const ::wxString&);
57 virtual ~sipwxStaticBitmap();
58
59 /*
60 * There is a public method for every protected method visible from
61 * this class.
62 */
63 void sipProtect_SendDestroyEvent();
64 bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&);
65 void sipProtectVirt_DoEnable(bool,bool);
66 void sipProtectVirt_DoGetPosition(bool,int*,int*) const;
67 void sipProtectVirt_DoGetSize(bool,int*,int*) const;
68 void sipProtectVirt_DoGetClientSize(bool,int*,int*) const;
69 ::wxSize sipProtectVirt_DoGetBestSize(bool) const;
70 ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const;
71 void sipProtectVirt_DoSetSize(bool,int,int,int,int,int);
72 void sipProtectVirt_DoSetClientSize(bool,int,int);
73 void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int);
74 ::wxSize sipProtectVirt_DoGetBorderSize(bool) const;
75 void sipProtectVirt_DoMoveWindow(bool,int,int,int,int);
76 void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant);
77 ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const;
78 ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const;
79 void sipProtectVirt_DoFreeze(bool);
80 void sipProtectVirt_DoThaw(bool);
81 bool sipProtectVirt_HasTransparentBackground(bool);
82 bool sipProtectVirt_TryBefore(bool, ::wxEvent&);
83 bool sipProtectVirt_TryAfter(bool, ::wxEvent&);
84
85 /*
86 * There is a protected method for every virtual method visible from
87 * this class.
88 */
89 protected:
90 ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;
91 ::wxSize DoGetBestSize() const SIP_OVERRIDE;
92 void DoThaw() SIP_OVERRIDE;
93 void DoFreeze() SIP_OVERRIDE;
94 ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
95 ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
96 void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE;
97 void DoMoveWindow(int,int,int,int) SIP_OVERRIDE;
98 ::wxSize DoGetBorderSize() const SIP_OVERRIDE;
99 void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE;
100 void DoSetClientSize(int,int) SIP_OVERRIDE;
101 void DoSetSize(int,int,int,int,int) SIP_OVERRIDE;
102 void DoGetClientSize(int*,int*) const SIP_OVERRIDE;
103 void DoGetSize(int*,int*) const SIP_OVERRIDE;
104 void DoGetPosition(int*,int*) const SIP_OVERRIDE;
105 void DoEnable(bool) SIP_OVERRIDE;
106 ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
107 void OnInternalIdle() SIP_OVERRIDE;
108 void InitDialog() SIP_OVERRIDE;
109 void InheritAttributes() SIP_OVERRIDE;
110 bool Destroy() SIP_OVERRIDE;
111 bool Validate() SIP_OVERRIDE;
112 bool TransferDataToWindow() SIP_OVERRIDE;
113 bool TransferDataFromWindow() SIP_OVERRIDE;
114 void SetValidator(const ::wxValidator&) SIP_OVERRIDE;
115 ::wxValidator* GetValidator() SIP_OVERRIDE;
116 bool ShouldInheritColours() const SIP_OVERRIDE;
117 bool HasTransparentBackground() SIP_OVERRIDE;
118 ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
119 bool InformFirstDirection(int,int,int) SIP_OVERRIDE;
120 void SetCanFocus(bool) SIP_OVERRIDE;
121 bool AcceptsFocusRecursively() const SIP_OVERRIDE;
122 bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
123 bool AcceptsFocus() const SIP_OVERRIDE;
124 bool TryAfter( ::wxEvent&) SIP_OVERRIDE;
125 bool TryBefore( ::wxEvent&) SIP_OVERRIDE;
126 bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE;
127 void AddChild( ::wxWindowBase*) SIP_OVERRIDE;
128 void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE;
129
130 public:
131 sipSimpleWrapper *sipPySelf;
132
133 private:
134 sipwxStaticBitmap(const sipwxStaticBitmap &);
135 sipwxStaticBitmap &operator = (const sipwxStaticBitmap &);
136
137 char sipPyMethods[39];
138 };
139
sipwxStaticBitmap()140 sipwxStaticBitmap::sipwxStaticBitmap(): ::wxStaticBitmap(), sipPySelf(SIP_NULLPTR)
141 {
142 memset(sipPyMethods, 0, sizeof (sipPyMethods));
143 }
144
sipwxStaticBitmap(::wxWindow * parent,::wxWindowID id,const::wxBitmap & bitmap,const::wxPoint & pos,const::wxSize & size,long style,const::wxString & name)145 sipwxStaticBitmap::sipwxStaticBitmap( ::wxWindow*parent, ::wxWindowID id,const ::wxBitmap& bitmap,const ::wxPoint& pos,const ::wxSize& size,long style,const ::wxString& name): ::wxStaticBitmap(parent,id,bitmap,pos,size,style,name), sipPySelf(SIP_NULLPTR)
146 {
147 memset(sipPyMethods, 0, sizeof (sipPyMethods));
148 }
149
~sipwxStaticBitmap()150 sipwxStaticBitmap::~sipwxStaticBitmap()
151 {
152 sipInstanceDestroyedEx(&sipPySelf);
153 }
154
DoGetBestClientSize() const155 ::wxSize sipwxStaticBitmap::DoGetBestClientSize() const
156 {
157 sip_gilstate_t sipGILState;
158 PyObject *sipMeth;
159
160 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize);
161
162 if (!sipMeth)
163 return ::wxStaticBitmap::DoGetBestClientSize();
164
165 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
166
167 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
168 }
169
DoGetBestSize() const170 ::wxSize sipwxStaticBitmap::DoGetBestSize() const
171 {
172 sip_gilstate_t sipGILState;
173 PyObject *sipMeth;
174
175 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize);
176
177 if (!sipMeth)
178 return ::wxStaticBitmap::DoGetBestSize();
179
180 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
181
182 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
183 }
184
DoThaw()185 void sipwxStaticBitmap::DoThaw()
186 {
187 sip_gilstate_t sipGILState;
188 PyObject *sipMeth;
189
190 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_DoThaw);
191
192 if (!sipMeth)
193 {
194 ::wxStaticBitmap::DoThaw();
195 return;
196 }
197
198 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
199
200 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
201 }
202
DoFreeze()203 void sipwxStaticBitmap::DoFreeze()
204 {
205 sip_gilstate_t sipGILState;
206 PyObject *sipMeth;
207
208 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_DoFreeze);
209
210 if (!sipMeth)
211 {
212 ::wxStaticBitmap::DoFreeze();
213 return;
214 }
215
216 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
217
218 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
219 }
220
GetDefaultBorderForControl() const221 ::wxBorder sipwxStaticBitmap::GetDefaultBorderForControl() const
222 {
223 sip_gilstate_t sipGILState;
224 PyObject *sipMeth;
225
226 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl);
227
228 if (!sipMeth)
229 return ::wxStaticBitmap::GetDefaultBorderForControl();
230
231 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
232
233 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
234 }
235
GetDefaultBorder() const236 ::wxBorder sipwxStaticBitmap::GetDefaultBorder() const
237 {
238 sip_gilstate_t sipGILState;
239 PyObject *sipMeth;
240
241 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder);
242
243 if (!sipMeth)
244 return ::wxStaticBitmap::GetDefaultBorder();
245
246 extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
247
248 return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth);
249 }
250
DoSetWindowVariant(::wxWindowVariant variant)251 void sipwxStaticBitmap::DoSetWindowVariant( ::wxWindowVariant variant)
252 {
253 sip_gilstate_t sipGILState;
254 PyObject *sipMeth;
255
256 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant);
257
258 if (!sipMeth)
259 {
260 ::wxStaticBitmap::DoSetWindowVariant(variant);
261 return;
262 }
263
264 extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant);
265
266 sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant);
267 }
268
DoMoveWindow(int x,int y,int width,int height)269 void sipwxStaticBitmap::DoMoveWindow(int x,int y,int width,int height)
270 {
271 sip_gilstate_t sipGILState;
272 PyObject *sipMeth;
273
274 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow);
275
276 if (!sipMeth)
277 {
278 ::wxStaticBitmap::DoMoveWindow(x,y,width,height);
279 return;
280 }
281
282 extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int);
283
284 sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
285 }
286
DoGetBorderSize() const287 ::wxSize sipwxStaticBitmap::DoGetBorderSize() const
288 {
289 sip_gilstate_t sipGILState;
290 PyObject *sipMeth;
291
292 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize);
293
294 if (!sipMeth)
295 return ::wxStaticBitmap::DoGetBorderSize();
296
297 extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
298
299 return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth);
300 }
301
DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)302 void sipwxStaticBitmap::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH)
303 {
304 sip_gilstate_t sipGILState;
305 PyObject *sipMeth;
306
307 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints);
308
309 if (!sipMeth)
310 {
311 ::wxStaticBitmap::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH);
312 return;
313 }
314
315 extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int);
316
317 sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
318 }
319
DoSetClientSize(int width,int height)320 void sipwxStaticBitmap::DoSetClientSize(int width,int height)
321 {
322 sip_gilstate_t sipGILState;
323 PyObject *sipMeth;
324
325 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize);
326
327 if (!sipMeth)
328 {
329 ::wxStaticBitmap::DoSetClientSize(width,height);
330 return;
331 }
332
333 extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int);
334
335 sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height);
336 }
337
DoSetSize(int x,int y,int width,int height,int sizeFlags)338 void sipwxStaticBitmap::DoSetSize(int x,int y,int width,int height,int sizeFlags)
339 {
340 sip_gilstate_t sipGILState;
341 PyObject *sipMeth;
342
343 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_DoSetSize);
344
345 if (!sipMeth)
346 {
347 ::wxStaticBitmap::DoSetSize(x,y,width,height,sizeFlags);
348 return;
349 }
350
351 extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int);
352
353 sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
354 }
355
DoGetClientSize(int * width,int * height) const356 void sipwxStaticBitmap::DoGetClientSize(int*width,int*height) const
357 {
358 sip_gilstate_t sipGILState;
359 PyObject *sipMeth;
360
361 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize);
362
363 if (!sipMeth)
364 {
365 ::wxStaticBitmap::DoGetClientSize(width,height);
366 return;
367 }
368
369 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
370
371 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
372 }
373
DoGetSize(int * width,int * height) const374 void sipwxStaticBitmap::DoGetSize(int*width,int*height) const
375 {
376 sip_gilstate_t sipGILState;
377 PyObject *sipMeth;
378
379 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[13]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize);
380
381 if (!sipMeth)
382 {
383 ::wxStaticBitmap::DoGetSize(width,height);
384 return;
385 }
386
387 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
388
389 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height);
390 }
391
DoGetPosition(int * x,int * y) const392 void sipwxStaticBitmap::DoGetPosition(int*x,int*y) const
393 {
394 sip_gilstate_t sipGILState;
395 PyObject *sipMeth;
396
397 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[14]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition);
398
399 if (!sipMeth)
400 {
401 ::wxStaticBitmap::DoGetPosition(x,y);
402 return;
403 }
404
405 extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*);
406
407 sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y);
408 }
409
DoEnable(bool enable)410 void sipwxStaticBitmap::DoEnable(bool enable)
411 {
412 sip_gilstate_t sipGILState;
413 PyObject *sipMeth;
414
415 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_DoEnable);
416
417 if (!sipMeth)
418 {
419 ::wxStaticBitmap::DoEnable(enable);
420 return;
421 }
422
423 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
424
425 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable);
426 }
427
GetMainWindowOfCompositeControl()428 ::wxWindow* sipwxStaticBitmap::GetMainWindowOfCompositeControl()
429 {
430 sip_gilstate_t sipGILState;
431 PyObject *sipMeth;
432
433 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl);
434
435 if (!sipMeth)
436 return ::wxStaticBitmap::GetMainWindowOfCompositeControl();
437
438 extern ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
439
440 return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth);
441 }
442
OnInternalIdle()443 void sipwxStaticBitmap::OnInternalIdle()
444 {
445 sip_gilstate_t sipGILState;
446 PyObject *sipMeth;
447
448 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle);
449
450 if (!sipMeth)
451 {
452 ::wxStaticBitmap::OnInternalIdle();
453 return;
454 }
455
456 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
457
458 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
459 }
460
InitDialog()461 void sipwxStaticBitmap::InitDialog()
462 {
463 sip_gilstate_t sipGILState;
464 PyObject *sipMeth;
465
466 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_InitDialog);
467
468 if (!sipMeth)
469 {
470 ::wxStaticBitmap::InitDialog();
471 return;
472 }
473
474 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
475
476 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
477 }
478
InheritAttributes()479 void sipwxStaticBitmap::InheritAttributes()
480 {
481 sip_gilstate_t sipGILState;
482 PyObject *sipMeth;
483
484 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes);
485
486 if (!sipMeth)
487 {
488 ::wxStaticBitmap::InheritAttributes();
489 return;
490 }
491
492 extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
493
494 sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth);
495 }
496
Destroy()497 bool sipwxStaticBitmap::Destroy()
498 {
499 sip_gilstate_t sipGILState;
500 PyObject *sipMeth;
501
502 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_Destroy);
503
504 if (!sipMeth)
505 return ::wxStaticBitmap::Destroy();
506
507 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
508
509 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
510 }
511
Validate()512 bool sipwxStaticBitmap::Validate()
513 {
514 sip_gilstate_t sipGILState;
515 PyObject *sipMeth;
516
517 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_Validate);
518
519 if (!sipMeth)
520 return ::wxStaticBitmap::Validate();
521
522 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
523
524 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
525 }
526
TransferDataToWindow()527 bool sipwxStaticBitmap::TransferDataToWindow()
528 {
529 sip_gilstate_t sipGILState;
530 PyObject *sipMeth;
531
532 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow);
533
534 if (!sipMeth)
535 return ::wxStaticBitmap::TransferDataToWindow();
536
537 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
538
539 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
540 }
541
TransferDataFromWindow()542 bool sipwxStaticBitmap::TransferDataFromWindow()
543 {
544 sip_gilstate_t sipGILState;
545 PyObject *sipMeth;
546
547 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow);
548
549 if (!sipMeth)
550 return ::wxStaticBitmap::TransferDataFromWindow();
551
552 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
553
554 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
555 }
556
SetValidator(const::wxValidator & validator)557 void sipwxStaticBitmap::SetValidator(const ::wxValidator& validator)
558 {
559 sip_gilstate_t sipGILState;
560 PyObject *sipMeth;
561
562 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_SetValidator);
563
564 if (!sipMeth)
565 {
566 ::wxStaticBitmap::SetValidator(validator);
567 return;
568 }
569
570 extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&);
571
572 sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator);
573 }
574
GetValidator()575 ::wxValidator* sipwxStaticBitmap::GetValidator()
576 {
577 sip_gilstate_t sipGILState;
578 PyObject *sipMeth;
579
580 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_GetValidator);
581
582 if (!sipMeth)
583 return ::wxStaticBitmap::GetValidator();
584
585 extern ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
586
587 return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth);
588 }
589
ShouldInheritColours() const590 bool sipwxStaticBitmap::ShouldInheritColours() const
591 {
592 sip_gilstate_t sipGILState;
593 PyObject *sipMeth;
594
595 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours);
596
597 if (!sipMeth)
598 return ::wxStaticBitmap::ShouldInheritColours();
599
600 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
601
602 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
603 }
604
HasTransparentBackground()605 bool sipwxStaticBitmap::HasTransparentBackground()
606 {
607 sip_gilstate_t sipGILState;
608 PyObject *sipMeth;
609
610 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground);
611
612 if (!sipMeth)
613 return ::wxStaticBitmap::HasTransparentBackground();
614
615 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
616
617 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
618 }
619
GetClientAreaOrigin() const620 ::wxPoint sipwxStaticBitmap::GetClientAreaOrigin() const
621 {
622 sip_gilstate_t sipGILState;
623 PyObject *sipMeth;
624
625 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[28]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin);
626
627 if (!sipMeth)
628 return ::wxStaticBitmap::GetClientAreaOrigin();
629
630 extern ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
631
632 return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth);
633 }
634
InformFirstDirection(int direction,int size,int availableOtherDir)635 bool sipwxStaticBitmap::InformFirstDirection(int direction,int size,int availableOtherDir)
636 {
637 sip_gilstate_t sipGILState;
638 PyObject *sipMeth;
639
640 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection);
641
642 if (!sipMeth)
643 return ::wxStaticBitmap::InformFirstDirection(direction,size,availableOtherDir);
644
645 extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int);
646
647 return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
648 }
649
SetCanFocus(bool canFocus)650 void sipwxStaticBitmap::SetCanFocus(bool canFocus)
651 {
652 sip_gilstate_t sipGILState;
653 PyObject *sipMeth;
654
655 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus);
656
657 if (!sipMeth)
658 {
659 ::wxStaticBitmap::SetCanFocus(canFocus);
660 return;
661 }
662
663 extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);
664
665 sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus);
666 }
667
AcceptsFocusRecursively() const668 bool sipwxStaticBitmap::AcceptsFocusRecursively() const
669 {
670 sip_gilstate_t sipGILState;
671 PyObject *sipMeth;
672
673 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[31]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively);
674
675 if (!sipMeth)
676 return ::wxStaticBitmap::AcceptsFocusRecursively();
677
678 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
679
680 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
681 }
682
AcceptsFocusFromKeyboard() const683 bool sipwxStaticBitmap::AcceptsFocusFromKeyboard() const
684 {
685 sip_gilstate_t sipGILState;
686 PyObject *sipMeth;
687
688 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[32]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard);
689
690 if (!sipMeth)
691 return ::wxStaticBitmap::AcceptsFocusFromKeyboard();
692
693 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
694
695 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
696 }
697
AcceptsFocus() const698 bool sipwxStaticBitmap::AcceptsFocus() const
699 {
700 sip_gilstate_t sipGILState;
701 PyObject *sipMeth;
702
703 sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus);
704
705 if (!sipMeth)
706 return ::wxStaticBitmap::AcceptsFocus();
707
708 extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);
709
710 return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth);
711 }
712
TryAfter(::wxEvent & event)713 bool sipwxStaticBitmap::TryAfter( ::wxEvent& event)
714 {
715 sip_gilstate_t sipGILState;
716 PyObject *sipMeth;
717
718 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,SIP_NULLPTR,sipName_TryAfter);
719
720 if (!sipMeth)
721 return ::wxStaticBitmap::TryAfter(event);
722
723 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
724
725 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
726 }
727
TryBefore(::wxEvent & event)728 bool sipwxStaticBitmap::TryBefore( ::wxEvent& event)
729 {
730 sip_gilstate_t sipGILState;
731 PyObject *sipMeth;
732
733 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_TryBefore);
734
735 if (!sipMeth)
736 return ::wxStaticBitmap::TryBefore(event);
737
738 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
739
740 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
741 }
742
ProcessEvent(::wxEvent & event)743 bool sipwxStaticBitmap::ProcessEvent( ::wxEvent& event)
744 {
745 sip_gilstate_t sipGILState;
746 PyObject *sipMeth;
747
748 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent);
749
750 if (!sipMeth)
751 return ::wxStaticBitmap::ProcessEvent(event);
752
753 extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);
754
755 return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event);
756 }
757
AddChild(::wxWindowBase * child)758 void sipwxStaticBitmap::AddChild( ::wxWindowBase*child)
759 {
760 sip_gilstate_t sipGILState;
761 PyObject *sipMeth;
762
763 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,SIP_NULLPTR,sipName_AddChild);
764
765 if (!sipMeth)
766 {
767 ::wxStaticBitmap::AddChild(child);
768 return;
769 }
770
771 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
772
773 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
774 }
775
RemoveChild(::wxWindowBase * child)776 void sipwxStaticBitmap::RemoveChild( ::wxWindowBase*child)
777 {
778 sip_gilstate_t sipGILState;
779 PyObject *sipMeth;
780
781 sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,SIP_NULLPTR,sipName_RemoveChild);
782
783 if (!sipMeth)
784 {
785 ::wxStaticBitmap::RemoveChild(child);
786 return;
787 }
788
789 extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);
790
791 sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child);
792 }
793
sipProtect_SendDestroyEvent()794 void sipwxStaticBitmap::sipProtect_SendDestroyEvent()
795 {
796 ::wxWindow::SendDestroyEvent();
797 }
798
sipProtectVirt_ProcessEvent(bool sipSelfWasArg,::wxEvent & event)799 bool sipwxStaticBitmap::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
800 {
801 return (sipSelfWasArg ? ::wxStaticBitmap::ProcessEvent(event) : ProcessEvent(event));
802 }
803
sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)804 void sipwxStaticBitmap::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable)
805 {
806 (sipSelfWasArg ? ::wxStaticBitmap::DoEnable(enable) : DoEnable(enable));
807 }
808
sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int * x,int * y) const809 void sipwxStaticBitmap::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const
810 {
811 (sipSelfWasArg ? ::wxStaticBitmap::DoGetPosition(x,y) : DoGetPosition(x,y));
812 }
813
sipProtectVirt_DoGetSize(bool sipSelfWasArg,int * width,int * height) const814 void sipwxStaticBitmap::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const
815 {
816 (sipSelfWasArg ? ::wxStaticBitmap::DoGetSize(width,height) : DoGetSize(width,height));
817 }
818
sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int * width,int * height) const819 void sipwxStaticBitmap::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const
820 {
821 (sipSelfWasArg ? ::wxStaticBitmap::DoGetClientSize(width,height) : DoGetClientSize(width,height));
822 }
823
sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const824 ::wxSize sipwxStaticBitmap::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
825 {
826 return (sipSelfWasArg ? ::wxStaticBitmap::DoGetBestSize() : DoGetBestSize());
827 }
828
sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const829 ::wxSize sipwxStaticBitmap::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
830 {
831 return (sipSelfWasArg ? ::wxStaticBitmap::DoGetBestClientSize() : DoGetBestClientSize());
832 }
833
sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)834 void sipwxStaticBitmap::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags)
835 {
836 (sipSelfWasArg ? ::wxStaticBitmap::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags));
837 }
838
sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)839 void sipwxStaticBitmap::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height)
840 {
841 (sipSelfWasArg ? ::wxStaticBitmap::DoSetClientSize(width,height) : DoSetClientSize(width,height));
842 }
843
sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)844 void sipwxStaticBitmap::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH)
845 {
846 (sipSelfWasArg ? ::wxStaticBitmap::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH));
847 }
848
sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const849 ::wxSize sipwxStaticBitmap::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const
850 {
851 return (sipSelfWasArg ? ::wxStaticBitmap::DoGetBorderSize() : DoGetBorderSize());
852 }
853
sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)854 void sipwxStaticBitmap::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height)
855 {
856 (sipSelfWasArg ? ::wxStaticBitmap::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height));
857 }
858
sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg,::wxWindowVariant variant)859 void sipwxStaticBitmap::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
860 {
861 (sipSelfWasArg ? ::wxStaticBitmap::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
862 }
863
sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const864 ::wxBorder sipwxStaticBitmap::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
865 {
866 return (sipSelfWasArg ? ::wxStaticBitmap::GetDefaultBorder() : GetDefaultBorder());
867 }
868
sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const869 ::wxBorder sipwxStaticBitmap::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
870 {
871 return (sipSelfWasArg ? ::wxStaticBitmap::GetDefaultBorderForControl() : GetDefaultBorderForControl());
872 }
873
sipProtectVirt_DoFreeze(bool sipSelfWasArg)874 void sipwxStaticBitmap::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
875 {
876 (sipSelfWasArg ? ::wxStaticBitmap::DoFreeze() : DoFreeze());
877 }
878
sipProtectVirt_DoThaw(bool sipSelfWasArg)879 void sipwxStaticBitmap::sipProtectVirt_DoThaw(bool sipSelfWasArg)
880 {
881 (sipSelfWasArg ? ::wxStaticBitmap::DoThaw() : DoThaw());
882 }
883
sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)884 bool sipwxStaticBitmap::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
885 {
886 return (sipSelfWasArg ? ::wxStaticBitmap::HasTransparentBackground() : HasTransparentBackground());
887 }
888
sipProtectVirt_TryBefore(bool sipSelfWasArg,::wxEvent & event)889 bool sipwxStaticBitmap::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
890 {
891 return (sipSelfWasArg ? ::wxStaticBitmap::TryBefore(event) : TryBefore(event));
892 }
893
sipProtectVirt_TryAfter(bool sipSelfWasArg,::wxEvent & event)894 bool sipwxStaticBitmap::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
895 {
896 return (sipSelfWasArg ? ::wxStaticBitmap::TryAfter(event) : TryAfter(event));
897 }
898
899
900 PyDoc_STRVAR(doc_wxStaticBitmap_SendDestroyEvent, "SendDestroyEvent()\n"
901 "\n"
902 "Generate wxWindowDestroyEvent for this window.");
903
904 extern "C" {static PyObject *meth_wxStaticBitmap_SendDestroyEvent(PyObject *, PyObject *);}
meth_wxStaticBitmap_SendDestroyEvent(PyObject * sipSelf,PyObject * sipArgs)905 static PyObject *meth_wxStaticBitmap_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
906 {
907 PyObject *sipParseErr = SIP_NULLPTR;
908
909 {
910 sipwxStaticBitmap *sipCpp;
911
912 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
913 {
914 PyErr_Clear();
915
916 Py_BEGIN_ALLOW_THREADS
917 sipCpp->sipProtect_SendDestroyEvent();
918 Py_END_ALLOW_THREADS
919
920 if (PyErr_Occurred())
921 return 0;
922
923 Py_INCREF(Py_None);
924 return Py_None;
925 }
926 }
927
928 /* Raise an exception if the arguments couldn't be parsed. */
929 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_SendDestroyEvent, SIP_NULLPTR);
930
931 return SIP_NULLPTR;
932 }
933
934
935 PyDoc_STRVAR(doc_wxStaticBitmap_Create, "Create(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr) -> bool\n"
936 "\n"
937 "Creation function, for two-step construction.");
938
939 extern "C" {static PyObject *meth_wxStaticBitmap_Create(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_Create(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)940 static PyObject *meth_wxStaticBitmap_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
941 {
942 PyObject *sipParseErr = SIP_NULLPTR;
943
944 {
945 ::wxWindow* parent;
946 ::wxWindowID id = wxID_ANY;
947 const ::wxBitmap& bitmapdef = wxNullBitmap;
948 const ::wxBitmap* bitmap = &bitmapdef;
949 const ::wxPoint& posdef = wxDefaultPosition;
950 const ::wxPoint* pos = &posdef;
951 int posState = 0;
952 const ::wxSize& sizedef = wxDefaultSize;
953 const ::wxSize* size = &sizedef;
954 int sizeState = 0;
955 long style = 0;
956 const ::wxString& namedef = wxStaticBitmapNameStr;
957 const ::wxString* name = &namedef;
958 int nameState = 0;
959 sipWrapper *sipOwner = SIP_NULLPTR;
960 ::wxStaticBitmap *sipCpp;
961
962 static const char *sipKwdList[] = {
963 sipName_parent,
964 sipName_id,
965 sipName_bitmap,
966 sipName_pos,
967 sipName_size,
968 sipName_style,
969 sipName_name,
970 };
971
972 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ9J1J1lJ1", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxBitmap, &bitmap, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxString,&name, &nameState))
973 {
974 bool sipRes;
975
976 PyErr_Clear();
977
978 Py_BEGIN_ALLOW_THREADS
979 sipRes = sipCpp->Create(parent,id,*bitmap,*pos,*size,style,*name);
980 Py_END_ALLOW_THREADS
981
982 if (sipOwner)
983 sipTransferTo(sipSelf, (PyObject *)sipOwner);
984 else
985 sipTransferBack(sipSelf);
986 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
987 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
988 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
989
990 if (PyErr_Occurred())
991 return 0;
992
993 return PyBool_FromLong(sipRes);
994 }
995 }
996
997 /* Raise an exception if the arguments couldn't be parsed. */
998 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_Create, SIP_NULLPTR);
999
1000 return SIP_NULLPTR;
1001 }
1002
1003
1004 PyDoc_STRVAR(doc_wxStaticBitmap_GetBitmap, "GetBitmap() -> Bitmap\n"
1005 "\n"
1006 "Returns the bitmap currently used in the control.");
1007
1008 extern "C" {static PyObject *meth_wxStaticBitmap_GetBitmap(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetBitmap(PyObject * sipSelf,PyObject * sipArgs)1009 static PyObject *meth_wxStaticBitmap_GetBitmap(PyObject *sipSelf, PyObject *sipArgs)
1010 {
1011 PyObject *sipParseErr = SIP_NULLPTR;
1012
1013 {
1014 const ::wxStaticBitmap *sipCpp;
1015
1016 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1017 {
1018 ::wxBitmap*sipRes;
1019
1020 PyErr_Clear();
1021
1022 Py_BEGIN_ALLOW_THREADS
1023 sipRes = new ::wxBitmap(sipCpp->GetBitmap());
1024 Py_END_ALLOW_THREADS
1025
1026 if (PyErr_Occurred())
1027 return 0;
1028
1029 return sipConvertFromNewType(sipRes,sipType_wxBitmap,SIP_NULLPTR);
1030 }
1031 }
1032
1033 /* Raise an exception if the arguments couldn't be parsed. */
1034 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetBitmap, SIP_NULLPTR);
1035
1036 return SIP_NULLPTR;
1037 }
1038
1039
1040 PyDoc_STRVAR(doc_wxStaticBitmap_GetIcon, "GetIcon() -> Icon\n"
1041 "\n"
1042 "Returns the icon currently used in the control.");
1043
1044 extern "C" {static PyObject *meth_wxStaticBitmap_GetIcon(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetIcon(PyObject * sipSelf,PyObject * sipArgs)1045 static PyObject *meth_wxStaticBitmap_GetIcon(PyObject *sipSelf, PyObject *sipArgs)
1046 {
1047 PyObject *sipParseErr = SIP_NULLPTR;
1048
1049 {
1050 const ::wxStaticBitmap *sipCpp;
1051
1052 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1053 {
1054 ::wxIcon*sipRes;
1055
1056 PyErr_Clear();
1057
1058 Py_BEGIN_ALLOW_THREADS
1059 sipRes = new ::wxIcon(sipCpp->GetIcon());
1060 Py_END_ALLOW_THREADS
1061
1062 if (PyErr_Occurred())
1063 return 0;
1064
1065 return sipConvertFromNewType(sipRes,sipType_wxIcon,SIP_NULLPTR);
1066 }
1067 }
1068
1069 /* Raise an exception if the arguments couldn't be parsed. */
1070 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetIcon, SIP_NULLPTR);
1071
1072 return SIP_NULLPTR;
1073 }
1074
1075
1076 PyDoc_STRVAR(doc_wxStaticBitmap_SetBitmap, "SetBitmap(label)\n"
1077 "\n"
1078 "Sets the bitmap label.");
1079
1080 extern "C" {static PyObject *meth_wxStaticBitmap_SetBitmap(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_SetBitmap(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1081 static PyObject *meth_wxStaticBitmap_SetBitmap(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1082 {
1083 PyObject *sipParseErr = SIP_NULLPTR;
1084
1085 {
1086 const ::wxBitmap* label;
1087 ::wxStaticBitmap *sipCpp;
1088
1089 static const char *sipKwdList[] = {
1090 sipName_label,
1091 };
1092
1093 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxBitmap, &label))
1094 {
1095 PyErr_Clear();
1096
1097 Py_BEGIN_ALLOW_THREADS
1098 sipCpp->SetBitmap(*label);
1099 Py_END_ALLOW_THREADS
1100
1101 if (PyErr_Occurred())
1102 return 0;
1103
1104 Py_INCREF(Py_None);
1105 return Py_None;
1106 }
1107 }
1108
1109 /* Raise an exception if the arguments couldn't be parsed. */
1110 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_SetBitmap, SIP_NULLPTR);
1111
1112 return SIP_NULLPTR;
1113 }
1114
1115
1116 PyDoc_STRVAR(doc_wxStaticBitmap_SetIcon, "SetIcon(label)\n"
1117 "\n"
1118 "Sets the label to the given icon.");
1119
1120 extern "C" {static PyObject *meth_wxStaticBitmap_SetIcon(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_SetIcon(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1121 static PyObject *meth_wxStaticBitmap_SetIcon(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1122 {
1123 PyObject *sipParseErr = SIP_NULLPTR;
1124
1125 {
1126 const ::wxIcon* label;
1127 ::wxStaticBitmap *sipCpp;
1128
1129 static const char *sipKwdList[] = {
1130 sipName_label,
1131 };
1132
1133 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxIcon, &label))
1134 {
1135 PyErr_Clear();
1136
1137 Py_BEGIN_ALLOW_THREADS
1138 sipCpp->SetIcon(*label);
1139 Py_END_ALLOW_THREADS
1140
1141 if (PyErr_Occurred())
1142 return 0;
1143
1144 Py_INCREF(Py_None);
1145 return Py_None;
1146 }
1147 }
1148
1149 /* Raise an exception if the arguments couldn't be parsed. */
1150 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_SetIcon, SIP_NULLPTR);
1151
1152 return SIP_NULLPTR;
1153 }
1154
1155
1156 PyDoc_STRVAR(doc_wxStaticBitmap_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");
1157
1158 extern "C" {static PyObject *meth_wxStaticBitmap_GetClientAreaOrigin(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetClientAreaOrigin(PyObject * sipSelf,PyObject * sipArgs)1159 static PyObject *meth_wxStaticBitmap_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
1160 {
1161 PyObject *sipParseErr = SIP_NULLPTR;
1162 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1163
1164 {
1165 const ::wxStaticBitmap *sipCpp;
1166
1167 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1168 {
1169 ::wxPoint*sipRes;
1170
1171 PyErr_Clear();
1172
1173 Py_BEGIN_ALLOW_THREADS
1174 sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
1175 Py_END_ALLOW_THREADS
1176
1177 if (PyErr_Occurred())
1178 return 0;
1179
1180 return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR);
1181 }
1182 }
1183
1184 /* Raise an exception if the arguments couldn't be parsed. */
1185 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetClientAreaOrigin, doc_wxStaticBitmap_GetClientAreaOrigin);
1186
1187 return SIP_NULLPTR;
1188 }
1189
1190
1191 PyDoc_STRVAR(doc_wxStaticBitmap_Validate, "Validate(self) -> bool");
1192
1193 extern "C" {static PyObject *meth_wxStaticBitmap_Validate(PyObject *, PyObject *);}
meth_wxStaticBitmap_Validate(PyObject * sipSelf,PyObject * sipArgs)1194 static PyObject *meth_wxStaticBitmap_Validate(PyObject *sipSelf, PyObject *sipArgs)
1195 {
1196 PyObject *sipParseErr = SIP_NULLPTR;
1197 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1198
1199 {
1200 ::wxStaticBitmap *sipCpp;
1201
1202 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1203 {
1204 bool sipRes;
1205
1206 PyErr_Clear();
1207
1208 Py_BEGIN_ALLOW_THREADS
1209 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::Validate() : sipCpp->Validate());
1210 Py_END_ALLOW_THREADS
1211
1212 if (PyErr_Occurred())
1213 return 0;
1214
1215 return PyBool_FromLong(sipRes);
1216 }
1217 }
1218
1219 /* Raise an exception if the arguments couldn't be parsed. */
1220 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_Validate, doc_wxStaticBitmap_Validate);
1221
1222 return SIP_NULLPTR;
1223 }
1224
1225
1226 PyDoc_STRVAR(doc_wxStaticBitmap_TransferDataToWindow, "TransferDataToWindow(self) -> bool");
1227
1228 extern "C" {static PyObject *meth_wxStaticBitmap_TransferDataToWindow(PyObject *, PyObject *);}
meth_wxStaticBitmap_TransferDataToWindow(PyObject * sipSelf,PyObject * sipArgs)1229 static PyObject *meth_wxStaticBitmap_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
1230 {
1231 PyObject *sipParseErr = SIP_NULLPTR;
1232 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1233
1234 {
1235 ::wxStaticBitmap *sipCpp;
1236
1237 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1238 {
1239 bool sipRes;
1240
1241 PyErr_Clear();
1242
1243 Py_BEGIN_ALLOW_THREADS
1244 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::TransferDataToWindow() : sipCpp->TransferDataToWindow());
1245 Py_END_ALLOW_THREADS
1246
1247 if (PyErr_Occurred())
1248 return 0;
1249
1250 return PyBool_FromLong(sipRes);
1251 }
1252 }
1253
1254 /* Raise an exception if the arguments couldn't be parsed. */
1255 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_TransferDataToWindow, doc_wxStaticBitmap_TransferDataToWindow);
1256
1257 return SIP_NULLPTR;
1258 }
1259
1260
1261 PyDoc_STRVAR(doc_wxStaticBitmap_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");
1262
1263 extern "C" {static PyObject *meth_wxStaticBitmap_TransferDataFromWindow(PyObject *, PyObject *);}
meth_wxStaticBitmap_TransferDataFromWindow(PyObject * sipSelf,PyObject * sipArgs)1264 static PyObject *meth_wxStaticBitmap_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
1265 {
1266 PyObject *sipParseErr = SIP_NULLPTR;
1267 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1268
1269 {
1270 ::wxStaticBitmap *sipCpp;
1271
1272 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1273 {
1274 bool sipRes;
1275
1276 PyErr_Clear();
1277
1278 Py_BEGIN_ALLOW_THREADS
1279 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
1280 Py_END_ALLOW_THREADS
1281
1282 if (PyErr_Occurred())
1283 return 0;
1284
1285 return PyBool_FromLong(sipRes);
1286 }
1287 }
1288
1289 /* Raise an exception if the arguments couldn't be parsed. */
1290 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_TransferDataFromWindow, doc_wxStaticBitmap_TransferDataFromWindow);
1291
1292 return SIP_NULLPTR;
1293 }
1294
1295
1296 PyDoc_STRVAR(doc_wxStaticBitmap_InitDialog, "InitDialog(self)");
1297
1298 extern "C" {static PyObject *meth_wxStaticBitmap_InitDialog(PyObject *, PyObject *);}
meth_wxStaticBitmap_InitDialog(PyObject * sipSelf,PyObject * sipArgs)1299 static PyObject *meth_wxStaticBitmap_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
1300 {
1301 PyObject *sipParseErr = SIP_NULLPTR;
1302 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1303
1304 {
1305 ::wxStaticBitmap *sipCpp;
1306
1307 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1308 {
1309 PyErr_Clear();
1310
1311 Py_BEGIN_ALLOW_THREADS
1312 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::InitDialog() : sipCpp->InitDialog());
1313 Py_END_ALLOW_THREADS
1314
1315 if (PyErr_Occurred())
1316 return 0;
1317
1318 Py_INCREF(Py_None);
1319 return Py_None;
1320 }
1321 }
1322
1323 /* Raise an exception if the arguments couldn't be parsed. */
1324 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_InitDialog, doc_wxStaticBitmap_InitDialog);
1325
1326 return SIP_NULLPTR;
1327 }
1328
1329
1330 PyDoc_STRVAR(doc_wxStaticBitmap_AcceptsFocus, "AcceptsFocus(self) -> bool");
1331
1332 extern "C" {static PyObject *meth_wxStaticBitmap_AcceptsFocus(PyObject *, PyObject *);}
meth_wxStaticBitmap_AcceptsFocus(PyObject * sipSelf,PyObject * sipArgs)1333 static PyObject *meth_wxStaticBitmap_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
1334 {
1335 PyObject *sipParseErr = SIP_NULLPTR;
1336 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1337
1338 {
1339 const ::wxStaticBitmap *sipCpp;
1340
1341 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1342 {
1343 bool sipRes;
1344
1345 PyErr_Clear();
1346
1347 Py_BEGIN_ALLOW_THREADS
1348 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::AcceptsFocus() : sipCpp->AcceptsFocus());
1349 Py_END_ALLOW_THREADS
1350
1351 if (PyErr_Occurred())
1352 return 0;
1353
1354 return PyBool_FromLong(sipRes);
1355 }
1356 }
1357
1358 /* Raise an exception if the arguments couldn't be parsed. */
1359 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_AcceptsFocus, doc_wxStaticBitmap_AcceptsFocus);
1360
1361 return SIP_NULLPTR;
1362 }
1363
1364
1365 PyDoc_STRVAR(doc_wxStaticBitmap_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");
1366
1367 extern "C" {static PyObject *meth_wxStaticBitmap_AcceptsFocusRecursively(PyObject *, PyObject *);}
meth_wxStaticBitmap_AcceptsFocusRecursively(PyObject * sipSelf,PyObject * sipArgs)1368 static PyObject *meth_wxStaticBitmap_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
1369 {
1370 PyObject *sipParseErr = SIP_NULLPTR;
1371 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1372
1373 {
1374 const ::wxStaticBitmap *sipCpp;
1375
1376 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1377 {
1378 bool sipRes;
1379
1380 PyErr_Clear();
1381
1382 Py_BEGIN_ALLOW_THREADS
1383 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
1384 Py_END_ALLOW_THREADS
1385
1386 if (PyErr_Occurred())
1387 return 0;
1388
1389 return PyBool_FromLong(sipRes);
1390 }
1391 }
1392
1393 /* Raise an exception if the arguments couldn't be parsed. */
1394 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_AcceptsFocusRecursively, doc_wxStaticBitmap_AcceptsFocusRecursively);
1395
1396 return SIP_NULLPTR;
1397 }
1398
1399
1400 PyDoc_STRVAR(doc_wxStaticBitmap_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");
1401
1402 extern "C" {static PyObject *meth_wxStaticBitmap_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
meth_wxStaticBitmap_AcceptsFocusFromKeyboard(PyObject * sipSelf,PyObject * sipArgs)1403 static PyObject *meth_wxStaticBitmap_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
1404 {
1405 PyObject *sipParseErr = SIP_NULLPTR;
1406 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1407
1408 {
1409 const ::wxStaticBitmap *sipCpp;
1410
1411 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1412 {
1413 bool sipRes;
1414
1415 PyErr_Clear();
1416
1417 Py_BEGIN_ALLOW_THREADS
1418 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
1419 Py_END_ALLOW_THREADS
1420
1421 if (PyErr_Occurred())
1422 return 0;
1423
1424 return PyBool_FromLong(sipRes);
1425 }
1426 }
1427
1428 /* Raise an exception if the arguments couldn't be parsed. */
1429 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_AcceptsFocusFromKeyboard, doc_wxStaticBitmap_AcceptsFocusFromKeyboard);
1430
1431 return SIP_NULLPTR;
1432 }
1433
1434
1435 PyDoc_STRVAR(doc_wxStaticBitmap_AddChild, "AddChild(self, child: WindowBase)");
1436
1437 extern "C" {static PyObject *meth_wxStaticBitmap_AddChild(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_AddChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1438 static PyObject *meth_wxStaticBitmap_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1439 {
1440 PyObject *sipParseErr = SIP_NULLPTR;
1441 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1442
1443 {
1444 ::wxWindowBase* child;
1445 ::wxStaticBitmap *sipCpp;
1446
1447 static const char *sipKwdList[] = {
1448 sipName_child,
1449 };
1450
1451 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxWindowBase, &child))
1452 {
1453 PyErr_Clear();
1454
1455 Py_BEGIN_ALLOW_THREADS
1456 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::AddChild(child) : sipCpp->AddChild(child));
1457 Py_END_ALLOW_THREADS
1458
1459 if (PyErr_Occurred())
1460 return 0;
1461
1462 Py_INCREF(Py_None);
1463 return Py_None;
1464 }
1465 }
1466
1467 /* Raise an exception if the arguments couldn't be parsed. */
1468 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_AddChild, doc_wxStaticBitmap_AddChild);
1469
1470 return SIP_NULLPTR;
1471 }
1472
1473
1474 PyDoc_STRVAR(doc_wxStaticBitmap_RemoveChild, "RemoveChild(self, child: WindowBase)");
1475
1476 extern "C" {static PyObject *meth_wxStaticBitmap_RemoveChild(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_RemoveChild(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1477 static PyObject *meth_wxStaticBitmap_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1478 {
1479 PyObject *sipParseErr = SIP_NULLPTR;
1480 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1481
1482 {
1483 ::wxWindowBase* child;
1484 ::wxStaticBitmap *sipCpp;
1485
1486 static const char *sipKwdList[] = {
1487 sipName_child,
1488 };
1489
1490 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxWindowBase, &child))
1491 {
1492 PyErr_Clear();
1493
1494 Py_BEGIN_ALLOW_THREADS
1495 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::RemoveChild(child) : sipCpp->RemoveChild(child));
1496 Py_END_ALLOW_THREADS
1497
1498 if (PyErr_Occurred())
1499 return 0;
1500
1501 Py_INCREF(Py_None);
1502 return Py_None;
1503 }
1504 }
1505
1506 /* Raise an exception if the arguments couldn't be parsed. */
1507 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_RemoveChild, doc_wxStaticBitmap_RemoveChild);
1508
1509 return SIP_NULLPTR;
1510 }
1511
1512
1513 PyDoc_STRVAR(doc_wxStaticBitmap_InheritAttributes, "InheritAttributes(self)");
1514
1515 extern "C" {static PyObject *meth_wxStaticBitmap_InheritAttributes(PyObject *, PyObject *);}
meth_wxStaticBitmap_InheritAttributes(PyObject * sipSelf,PyObject * sipArgs)1516 static PyObject *meth_wxStaticBitmap_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
1517 {
1518 PyObject *sipParseErr = SIP_NULLPTR;
1519 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1520
1521 {
1522 ::wxStaticBitmap *sipCpp;
1523
1524 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1525 {
1526 PyErr_Clear();
1527
1528 Py_BEGIN_ALLOW_THREADS
1529 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::InheritAttributes() : sipCpp->InheritAttributes());
1530 Py_END_ALLOW_THREADS
1531
1532 if (PyErr_Occurred())
1533 return 0;
1534
1535 Py_INCREF(Py_None);
1536 return Py_None;
1537 }
1538 }
1539
1540 /* Raise an exception if the arguments couldn't be parsed. */
1541 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_InheritAttributes, doc_wxStaticBitmap_InheritAttributes);
1542
1543 return SIP_NULLPTR;
1544 }
1545
1546
1547 PyDoc_STRVAR(doc_wxStaticBitmap_ShouldInheritColours, "ShouldInheritColours(self) -> bool");
1548
1549 extern "C" {static PyObject *meth_wxStaticBitmap_ShouldInheritColours(PyObject *, PyObject *);}
meth_wxStaticBitmap_ShouldInheritColours(PyObject * sipSelf,PyObject * sipArgs)1550 static PyObject *meth_wxStaticBitmap_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
1551 {
1552 PyObject *sipParseErr = SIP_NULLPTR;
1553 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1554
1555 {
1556 const ::wxStaticBitmap *sipCpp;
1557
1558 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1559 {
1560 bool sipRes;
1561
1562 PyErr_Clear();
1563
1564 Py_BEGIN_ALLOW_THREADS
1565 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::ShouldInheritColours() : sipCpp->ShouldInheritColours());
1566 Py_END_ALLOW_THREADS
1567
1568 if (PyErr_Occurred())
1569 return 0;
1570
1571 return PyBool_FromLong(sipRes);
1572 }
1573 }
1574
1575 /* Raise an exception if the arguments couldn't be parsed. */
1576 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_ShouldInheritColours, doc_wxStaticBitmap_ShouldInheritColours);
1577
1578 return SIP_NULLPTR;
1579 }
1580
1581
1582 PyDoc_STRVAR(doc_wxStaticBitmap_OnInternalIdle, "OnInternalIdle(self)");
1583
1584 extern "C" {static PyObject *meth_wxStaticBitmap_OnInternalIdle(PyObject *, PyObject *);}
meth_wxStaticBitmap_OnInternalIdle(PyObject * sipSelf,PyObject * sipArgs)1585 static PyObject *meth_wxStaticBitmap_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
1586 {
1587 PyObject *sipParseErr = SIP_NULLPTR;
1588 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1589
1590 {
1591 ::wxStaticBitmap *sipCpp;
1592
1593 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1594 {
1595 PyErr_Clear();
1596
1597 Py_BEGIN_ALLOW_THREADS
1598 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::OnInternalIdle() : sipCpp->OnInternalIdle());
1599 Py_END_ALLOW_THREADS
1600
1601 if (PyErr_Occurred())
1602 return 0;
1603
1604 Py_INCREF(Py_None);
1605 return Py_None;
1606 }
1607 }
1608
1609 /* Raise an exception if the arguments couldn't be parsed. */
1610 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_OnInternalIdle, doc_wxStaticBitmap_OnInternalIdle);
1611
1612 return SIP_NULLPTR;
1613 }
1614
1615
1616 PyDoc_STRVAR(doc_wxStaticBitmap_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window");
1617
1618 extern "C" {static PyObject *meth_wxStaticBitmap_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetMainWindowOfCompositeControl(PyObject * sipSelf,PyObject * sipArgs)1619 static PyObject *meth_wxStaticBitmap_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
1620 {
1621 PyObject *sipParseErr = SIP_NULLPTR;
1622 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1623
1624 {
1625 ::wxStaticBitmap *sipCpp;
1626
1627 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1628 {
1629 ::wxWindow*sipRes;
1630
1631 PyErr_Clear();
1632
1633 Py_BEGIN_ALLOW_THREADS
1634 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
1635 Py_END_ALLOW_THREADS
1636
1637 if (PyErr_Occurred())
1638 return 0;
1639
1640 return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR);
1641 }
1642 }
1643
1644 /* Raise an exception if the arguments couldn't be parsed. */
1645 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetMainWindowOfCompositeControl, doc_wxStaticBitmap_GetMainWindowOfCompositeControl);
1646
1647 return SIP_NULLPTR;
1648 }
1649
1650
1651 PyDoc_STRVAR(doc_wxStaticBitmap_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");
1652
1653 extern "C" {static PyObject *meth_wxStaticBitmap_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_InformFirstDirection(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1654 static PyObject *meth_wxStaticBitmap_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1655 {
1656 PyObject *sipParseErr = SIP_NULLPTR;
1657 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1658
1659 {
1660 int direction;
1661 int size;
1662 int availableOtherDir;
1663 ::wxStaticBitmap *sipCpp;
1664
1665 static const char *sipKwdList[] = {
1666 sipName_direction,
1667 sipName_size,
1668 sipName_availableOtherDir,
1669 };
1670
1671 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &direction, &size, &availableOtherDir))
1672 {
1673 bool sipRes;
1674
1675 PyErr_Clear();
1676
1677 Py_BEGIN_ALLOW_THREADS
1678 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir));
1679 Py_END_ALLOW_THREADS
1680
1681 if (PyErr_Occurred())
1682 return 0;
1683
1684 return PyBool_FromLong(sipRes);
1685 }
1686 }
1687
1688 /* Raise an exception if the arguments couldn't be parsed. */
1689 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_InformFirstDirection, doc_wxStaticBitmap_InformFirstDirection);
1690
1691 return SIP_NULLPTR;
1692 }
1693
1694
1695 PyDoc_STRVAR(doc_wxStaticBitmap_SetCanFocus, "SetCanFocus(self, canFocus: bool)");
1696
1697 extern "C" {static PyObject *meth_wxStaticBitmap_SetCanFocus(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_SetCanFocus(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1698 static PyObject *meth_wxStaticBitmap_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1699 {
1700 PyObject *sipParseErr = SIP_NULLPTR;
1701 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1702
1703 {
1704 bool canFocus;
1705 ::wxStaticBitmap *sipCpp;
1706
1707 static const char *sipKwdList[] = {
1708 sipName_canFocus,
1709 };
1710
1711 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &canFocus))
1712 {
1713 PyErr_Clear();
1714
1715 Py_BEGIN_ALLOW_THREADS
1716 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
1717 Py_END_ALLOW_THREADS
1718
1719 if (PyErr_Occurred())
1720 return 0;
1721
1722 Py_INCREF(Py_None);
1723 return Py_None;
1724 }
1725 }
1726
1727 /* Raise an exception if the arguments couldn't be parsed. */
1728 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_SetCanFocus, doc_wxStaticBitmap_SetCanFocus);
1729
1730 return SIP_NULLPTR;
1731 }
1732
1733
1734 PyDoc_STRVAR(doc_wxStaticBitmap_Destroy, "Destroy(self) -> bool");
1735
1736 extern "C" {static PyObject *meth_wxStaticBitmap_Destroy(PyObject *, PyObject *);}
meth_wxStaticBitmap_Destroy(PyObject * sipSelf,PyObject * sipArgs)1737 static PyObject *meth_wxStaticBitmap_Destroy(PyObject *sipSelf, PyObject *sipArgs)
1738 {
1739 PyObject *sipParseErr = SIP_NULLPTR;
1740 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1741
1742 {
1743 ::wxStaticBitmap *sipCpp;
1744
1745 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1746 {
1747 bool sipRes;
1748
1749 PyErr_Clear();
1750
1751 Py_BEGIN_ALLOW_THREADS
1752 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::Destroy() : sipCpp->Destroy());
1753 Py_END_ALLOW_THREADS
1754
1755 if (PyErr_Occurred())
1756 return 0;
1757
1758 return PyBool_FromLong(sipRes);
1759 }
1760 }
1761
1762 /* Raise an exception if the arguments couldn't be parsed. */
1763 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_Destroy, doc_wxStaticBitmap_Destroy);
1764
1765 return SIP_NULLPTR;
1766 }
1767
1768
1769 PyDoc_STRVAR(doc_wxStaticBitmap_SetValidator, "SetValidator(self, validator: Validator)");
1770
1771 extern "C" {static PyObject *meth_wxStaticBitmap_SetValidator(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_SetValidator(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1772 static PyObject *meth_wxStaticBitmap_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1773 {
1774 PyObject *sipParseErr = SIP_NULLPTR;
1775 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1776
1777 {
1778 const ::wxValidator* validator;
1779 ::wxStaticBitmap *sipCpp;
1780
1781 static const char *sipKwdList[] = {
1782 sipName_validator,
1783 };
1784
1785 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxValidator, &validator))
1786 {
1787 PyErr_Clear();
1788
1789 Py_BEGIN_ALLOW_THREADS
1790 (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::SetValidator(*validator) : sipCpp->SetValidator(*validator));
1791 Py_END_ALLOW_THREADS
1792
1793 if (PyErr_Occurred())
1794 return 0;
1795
1796 Py_INCREF(Py_None);
1797 return Py_None;
1798 }
1799 }
1800
1801 /* Raise an exception if the arguments couldn't be parsed. */
1802 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_SetValidator, doc_wxStaticBitmap_SetValidator);
1803
1804 return SIP_NULLPTR;
1805 }
1806
1807
1808 PyDoc_STRVAR(doc_wxStaticBitmap_GetValidator, "GetValidator(self) -> Validator");
1809
1810 extern "C" {static PyObject *meth_wxStaticBitmap_GetValidator(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetValidator(PyObject * sipSelf,PyObject * sipArgs)1811 static PyObject *meth_wxStaticBitmap_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
1812 {
1813 PyObject *sipParseErr = SIP_NULLPTR;
1814 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1815
1816 {
1817 ::wxStaticBitmap *sipCpp;
1818
1819 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1820 {
1821 ::wxValidator*sipRes;
1822
1823 PyErr_Clear();
1824
1825 Py_BEGIN_ALLOW_THREADS
1826 sipRes = (sipSelfWasArg ? sipCpp-> ::wxStaticBitmap::GetValidator() : sipCpp->GetValidator());
1827 Py_END_ALLOW_THREADS
1828
1829 if (PyErr_Occurred())
1830 return 0;
1831
1832 return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR);
1833 }
1834 }
1835
1836 /* Raise an exception if the arguments couldn't be parsed. */
1837 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetValidator, doc_wxStaticBitmap_GetValidator);
1838
1839 return SIP_NULLPTR;
1840 }
1841
1842
1843 PyDoc_STRVAR(doc_wxStaticBitmap_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");
1844
1845 extern "C" {static PyObject *meth_wxStaticBitmap_ProcessEvent(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_ProcessEvent(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1846 static PyObject *meth_wxStaticBitmap_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1847 {
1848 PyObject *sipParseErr = SIP_NULLPTR;
1849 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1850
1851 {
1852 ::wxEvent* event;
1853 sipwxStaticBitmap *sipCpp;
1854
1855 static const char *sipKwdList[] = {
1856 sipName_event,
1857 };
1858
1859 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxEvent, &event))
1860 {
1861 bool sipRes;
1862
1863 PyErr_Clear();
1864
1865 Py_BEGIN_ALLOW_THREADS
1866 sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event);
1867 Py_END_ALLOW_THREADS
1868
1869 if (PyErr_Occurred())
1870 return 0;
1871
1872 return PyBool_FromLong(sipRes);
1873 }
1874 }
1875
1876 /* Raise an exception if the arguments couldn't be parsed. */
1877 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_ProcessEvent, doc_wxStaticBitmap_ProcessEvent);
1878
1879 return SIP_NULLPTR;
1880 }
1881
1882
1883 PyDoc_STRVAR(doc_wxStaticBitmap_DoEnable, "DoEnable(self, enable: bool)");
1884
1885 extern "C" {static PyObject *meth_wxStaticBitmap_DoEnable(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoEnable(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1886 static PyObject *meth_wxStaticBitmap_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1887 {
1888 PyObject *sipParseErr = SIP_NULLPTR;
1889 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1890
1891 {
1892 bool enable;
1893 sipwxStaticBitmap *sipCpp;
1894
1895 static const char *sipKwdList[] = {
1896 sipName_enable,
1897 };
1898
1899 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &enable))
1900 {
1901 PyErr_Clear();
1902
1903 Py_BEGIN_ALLOW_THREADS
1904 sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable);
1905 Py_END_ALLOW_THREADS
1906
1907 if (PyErr_Occurred())
1908 return 0;
1909
1910 Py_INCREF(Py_None);
1911 return Py_None;
1912 }
1913 }
1914
1915 /* Raise an exception if the arguments couldn't be parsed. */
1916 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoEnable, doc_wxStaticBitmap_DoEnable);
1917
1918 return SIP_NULLPTR;
1919 }
1920
1921
1922 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]");
1923
1924 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetPosition(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetPosition(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1925 static PyObject *meth_wxStaticBitmap_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1926 {
1927 PyObject *sipParseErr = SIP_NULLPTR;
1928 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1929
1930 {
1931 int x;
1932 int y;
1933 const sipwxStaticBitmap *sipCpp;
1934
1935 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1936 {
1937 PyErr_Clear();
1938
1939 Py_BEGIN_ALLOW_THREADS
1940 sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y);
1941 Py_END_ALLOW_THREADS
1942
1943 if (PyErr_Occurred())
1944 return 0;
1945
1946 return sipBuildResult(0,"(ii)",x,y);
1947 }
1948 }
1949
1950 /* Raise an exception if the arguments couldn't be parsed. */
1951 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetPosition, doc_wxStaticBitmap_DoGetPosition);
1952
1953 return SIP_NULLPTR;
1954 }
1955
1956
1957 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetSize, "DoGetSize(self) -> Tuple[int, int]");
1958
1959 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetSize(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1960 static PyObject *meth_wxStaticBitmap_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1961 {
1962 PyObject *sipParseErr = SIP_NULLPTR;
1963 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1964
1965 {
1966 int width;
1967 int height;
1968 const sipwxStaticBitmap *sipCpp;
1969
1970 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
1971 {
1972 PyErr_Clear();
1973
1974 Py_BEGIN_ALLOW_THREADS
1975 sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height);
1976 Py_END_ALLOW_THREADS
1977
1978 if (PyErr_Occurred())
1979 return 0;
1980
1981 return sipBuildResult(0,"(ii)",width,height);
1982 }
1983 }
1984
1985 /* Raise an exception if the arguments couldn't be parsed. */
1986 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetSize, doc_wxStaticBitmap_DoGetSize);
1987
1988 return SIP_NULLPTR;
1989 }
1990
1991
1992 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]");
1993
1994 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)1995 static PyObject *meth_wxStaticBitmap_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
1996 {
1997 PyObject *sipParseErr = SIP_NULLPTR;
1998 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
1999
2000 {
2001 int width;
2002 int height;
2003 const sipwxStaticBitmap *sipCpp;
2004
2005 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2006 {
2007 PyErr_Clear();
2008
2009 Py_BEGIN_ALLOW_THREADS
2010 sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height);
2011 Py_END_ALLOW_THREADS
2012
2013 if (PyErr_Occurred())
2014 return 0;
2015
2016 return sipBuildResult(0,"(ii)",width,height);
2017 }
2018 }
2019
2020 /* Raise an exception if the arguments couldn't be parsed. */
2021 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetClientSize, doc_wxStaticBitmap_DoGetClientSize);
2022
2023 return SIP_NULLPTR;
2024 }
2025
2026
2027 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetBestSize, "DoGetBestSize(self) -> Size");
2028
2029 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetBestSize(PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetBestSize(PyObject * sipSelf,PyObject * sipArgs)2030 static PyObject *meth_wxStaticBitmap_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
2031 {
2032 PyObject *sipParseErr = SIP_NULLPTR;
2033 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2034
2035 {
2036 const sipwxStaticBitmap *sipCpp;
2037
2038 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2039 {
2040 ::wxSize*sipRes;
2041
2042 PyErr_Clear();
2043
2044 Py_BEGIN_ALLOW_THREADS
2045 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg));
2046 Py_END_ALLOW_THREADS
2047
2048 if (PyErr_Occurred())
2049 return 0;
2050
2051 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2052 }
2053 }
2054
2055 /* Raise an exception if the arguments couldn't be parsed. */
2056 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetBestSize, doc_wxStaticBitmap_DoGetBestSize);
2057
2058 return SIP_NULLPTR;
2059 }
2060
2061
2062 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");
2063
2064 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetBestClientSize(PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetBestClientSize(PyObject * sipSelf,PyObject * sipArgs)2065 static PyObject *meth_wxStaticBitmap_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
2066 {
2067 PyObject *sipParseErr = SIP_NULLPTR;
2068 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2069
2070 {
2071 const sipwxStaticBitmap *sipCpp;
2072
2073 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2074 {
2075 ::wxSize*sipRes;
2076
2077 PyErr_Clear();
2078
2079 Py_BEGIN_ALLOW_THREADS
2080 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg));
2081 Py_END_ALLOW_THREADS
2082
2083 if (PyErr_Occurred())
2084 return 0;
2085
2086 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2087 }
2088 }
2089
2090 /* Raise an exception if the arguments couldn't be parsed. */
2091 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetBestClientSize, doc_wxStaticBitmap_DoGetBestClientSize);
2092
2093 return SIP_NULLPTR;
2094 }
2095
2096
2097 PyDoc_STRVAR(doc_wxStaticBitmap_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");
2098
2099 extern "C" {static PyObject *meth_wxStaticBitmap_DoSetSize(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoSetSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2100 static PyObject *meth_wxStaticBitmap_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2101 {
2102 PyObject *sipParseErr = SIP_NULLPTR;
2103 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2104
2105 {
2106 int x;
2107 int y;
2108 int width;
2109 int height;
2110 int sizeFlags;
2111 sipwxStaticBitmap *sipCpp;
2112
2113 static const char *sipKwdList[] = {
2114 sipName_x,
2115 sipName_y,
2116 sipName_width,
2117 sipName_height,
2118 sipName_sizeFlags,
2119 };
2120
2121 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &x, &y, &width, &height, &sizeFlags))
2122 {
2123 PyErr_Clear();
2124
2125 Py_BEGIN_ALLOW_THREADS
2126 sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags);
2127 Py_END_ALLOW_THREADS
2128
2129 if (PyErr_Occurred())
2130 return 0;
2131
2132 Py_INCREF(Py_None);
2133 return Py_None;
2134 }
2135 }
2136
2137 /* Raise an exception if the arguments couldn't be parsed. */
2138 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoSetSize, doc_wxStaticBitmap_DoSetSize);
2139
2140 return SIP_NULLPTR;
2141 }
2142
2143
2144 PyDoc_STRVAR(doc_wxStaticBitmap_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");
2145
2146 extern "C" {static PyObject *meth_wxStaticBitmap_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoSetClientSize(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2147 static PyObject *meth_wxStaticBitmap_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2148 {
2149 PyObject *sipParseErr = SIP_NULLPTR;
2150 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2151
2152 {
2153 int width;
2154 int height;
2155 sipwxStaticBitmap *sipCpp;
2156
2157 static const char *sipKwdList[] = {
2158 sipName_width,
2159 sipName_height,
2160 };
2161
2162 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &width, &height))
2163 {
2164 PyErr_Clear();
2165
2166 Py_BEGIN_ALLOW_THREADS
2167 sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height);
2168 Py_END_ALLOW_THREADS
2169
2170 if (PyErr_Occurred())
2171 return 0;
2172
2173 Py_INCREF(Py_None);
2174 return Py_None;
2175 }
2176 }
2177
2178 /* Raise an exception if the arguments couldn't be parsed. */
2179 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoSetClientSize, doc_wxStaticBitmap_DoSetClientSize);
2180
2181 return SIP_NULLPTR;
2182 }
2183
2184
2185 PyDoc_STRVAR(doc_wxStaticBitmap_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");
2186
2187 extern "C" {static PyObject *meth_wxStaticBitmap_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoSetSizeHints(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2188 static PyObject *meth_wxStaticBitmap_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2189 {
2190 PyObject *sipParseErr = SIP_NULLPTR;
2191 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2192
2193 {
2194 int minW;
2195 int minH;
2196 int maxW;
2197 int maxH;
2198 int incW;
2199 int incH;
2200 sipwxStaticBitmap *sipCpp;
2201
2202 static const char *sipKwdList[] = {
2203 sipName_minW,
2204 sipName_minH,
2205 sipName_maxW,
2206 sipName_maxH,
2207 sipName_incW,
2208 sipName_incH,
2209 };
2210
2211 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH))
2212 {
2213 PyErr_Clear();
2214
2215 Py_BEGIN_ALLOW_THREADS
2216 sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH);
2217 Py_END_ALLOW_THREADS
2218
2219 if (PyErr_Occurred())
2220 return 0;
2221
2222 Py_INCREF(Py_None);
2223 return Py_None;
2224 }
2225 }
2226
2227 /* Raise an exception if the arguments couldn't be parsed. */
2228 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoSetSizeHints, doc_wxStaticBitmap_DoSetSizeHints);
2229
2230 return SIP_NULLPTR;
2231 }
2232
2233
2234 PyDoc_STRVAR(doc_wxStaticBitmap_DoGetBorderSize, "DoGetBorderSize(self) -> Size");
2235
2236 extern "C" {static PyObject *meth_wxStaticBitmap_DoGetBorderSize(PyObject *, PyObject *);}
meth_wxStaticBitmap_DoGetBorderSize(PyObject * sipSelf,PyObject * sipArgs)2237 static PyObject *meth_wxStaticBitmap_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs)
2238 {
2239 PyObject *sipParseErr = SIP_NULLPTR;
2240 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2241
2242 {
2243 const sipwxStaticBitmap *sipCpp;
2244
2245 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2246 {
2247 ::wxSize*sipRes;
2248
2249 PyErr_Clear();
2250
2251 Py_BEGIN_ALLOW_THREADS
2252 sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg));
2253 Py_END_ALLOW_THREADS
2254
2255 if (PyErr_Occurred())
2256 return 0;
2257
2258 return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR);
2259 }
2260 }
2261
2262 /* Raise an exception if the arguments couldn't be parsed. */
2263 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoGetBorderSize, doc_wxStaticBitmap_DoGetBorderSize);
2264
2265 return SIP_NULLPTR;
2266 }
2267
2268
2269 PyDoc_STRVAR(doc_wxStaticBitmap_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");
2270
2271 extern "C" {static PyObject *meth_wxStaticBitmap_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoMoveWindow(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2272 static PyObject *meth_wxStaticBitmap_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2273 {
2274 PyObject *sipParseErr = SIP_NULLPTR;
2275 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2276
2277 {
2278 int x;
2279 int y;
2280 int width;
2281 int height;
2282 sipwxStaticBitmap *sipCpp;
2283
2284 static const char *sipKwdList[] = {
2285 sipName_x,
2286 sipName_y,
2287 sipName_width,
2288 sipName_height,
2289 };
2290
2291 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxStaticBitmap, &sipCpp, &x, &y, &width, &height))
2292 {
2293 PyErr_Clear();
2294
2295 Py_BEGIN_ALLOW_THREADS
2296 sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height);
2297 Py_END_ALLOW_THREADS
2298
2299 if (PyErr_Occurred())
2300 return 0;
2301
2302 Py_INCREF(Py_None);
2303 return Py_None;
2304 }
2305 }
2306
2307 /* Raise an exception if the arguments couldn't be parsed. */
2308 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoMoveWindow, doc_wxStaticBitmap_DoMoveWindow);
2309
2310 return SIP_NULLPTR;
2311 }
2312
2313
2314 PyDoc_STRVAR(doc_wxStaticBitmap_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");
2315
2316 extern "C" {static PyObject *meth_wxStaticBitmap_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_DoSetWindowVariant(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2317 static PyObject *meth_wxStaticBitmap_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2318 {
2319 PyObject *sipParseErr = SIP_NULLPTR;
2320 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2321
2322 {
2323 ::wxWindowVariant variant;
2324 sipwxStaticBitmap *sipCpp;
2325
2326 static const char *sipKwdList[] = {
2327 sipName_variant,
2328 };
2329
2330 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxWindowVariant, &variant))
2331 {
2332 PyErr_Clear();
2333
2334 Py_BEGIN_ALLOW_THREADS
2335 sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant);
2336 Py_END_ALLOW_THREADS
2337
2338 if (PyErr_Occurred())
2339 return 0;
2340
2341 Py_INCREF(Py_None);
2342 return Py_None;
2343 }
2344 }
2345
2346 /* Raise an exception if the arguments couldn't be parsed. */
2347 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoSetWindowVariant, doc_wxStaticBitmap_DoSetWindowVariant);
2348
2349 return SIP_NULLPTR;
2350 }
2351
2352
2353 PyDoc_STRVAR(doc_wxStaticBitmap_GetDefaultBorder, "GetDefaultBorder(self) -> Border");
2354
2355 extern "C" {static PyObject *meth_wxStaticBitmap_GetDefaultBorder(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetDefaultBorder(PyObject * sipSelf,PyObject * sipArgs)2356 static PyObject *meth_wxStaticBitmap_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
2357 {
2358 PyObject *sipParseErr = SIP_NULLPTR;
2359 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2360
2361 {
2362 const sipwxStaticBitmap *sipCpp;
2363
2364 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2365 {
2366 ::wxBorder sipRes;
2367
2368 PyErr_Clear();
2369
2370 Py_BEGIN_ALLOW_THREADS
2371 sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg);
2372 Py_END_ALLOW_THREADS
2373
2374 if (PyErr_Occurred())
2375 return 0;
2376
2377 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2378 }
2379 }
2380
2381 /* Raise an exception if the arguments couldn't be parsed. */
2382 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetDefaultBorder, doc_wxStaticBitmap_GetDefaultBorder);
2383
2384 return SIP_NULLPTR;
2385 }
2386
2387
2388 PyDoc_STRVAR(doc_wxStaticBitmap_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");
2389
2390 extern "C" {static PyObject *meth_wxStaticBitmap_GetDefaultBorderForControl(PyObject *, PyObject *);}
meth_wxStaticBitmap_GetDefaultBorderForControl(PyObject * sipSelf,PyObject * sipArgs)2391 static PyObject *meth_wxStaticBitmap_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
2392 {
2393 PyObject *sipParseErr = SIP_NULLPTR;
2394 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2395
2396 {
2397 const sipwxStaticBitmap *sipCpp;
2398
2399 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2400 {
2401 ::wxBorder sipRes;
2402
2403 PyErr_Clear();
2404
2405 Py_BEGIN_ALLOW_THREADS
2406 sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg);
2407 Py_END_ALLOW_THREADS
2408
2409 if (PyErr_Occurred())
2410 return 0;
2411
2412 return sipConvertFromEnum(static_cast<int>(sipRes), sipType_wxBorder);
2413 }
2414 }
2415
2416 /* Raise an exception if the arguments couldn't be parsed. */
2417 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetDefaultBorderForControl, doc_wxStaticBitmap_GetDefaultBorderForControl);
2418
2419 return SIP_NULLPTR;
2420 }
2421
2422
2423 PyDoc_STRVAR(doc_wxStaticBitmap_DoFreeze, "DoFreeze(self)");
2424
2425 extern "C" {static PyObject *meth_wxStaticBitmap_DoFreeze(PyObject *, PyObject *);}
meth_wxStaticBitmap_DoFreeze(PyObject * sipSelf,PyObject * sipArgs)2426 static PyObject *meth_wxStaticBitmap_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
2427 {
2428 PyObject *sipParseErr = SIP_NULLPTR;
2429 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2430
2431 {
2432 sipwxStaticBitmap *sipCpp;
2433
2434 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2435 {
2436 PyErr_Clear();
2437
2438 Py_BEGIN_ALLOW_THREADS
2439 sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg);
2440 Py_END_ALLOW_THREADS
2441
2442 if (PyErr_Occurred())
2443 return 0;
2444
2445 Py_INCREF(Py_None);
2446 return Py_None;
2447 }
2448 }
2449
2450 /* Raise an exception if the arguments couldn't be parsed. */
2451 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoFreeze, doc_wxStaticBitmap_DoFreeze);
2452
2453 return SIP_NULLPTR;
2454 }
2455
2456
2457 PyDoc_STRVAR(doc_wxStaticBitmap_DoThaw, "DoThaw(self)");
2458
2459 extern "C" {static PyObject *meth_wxStaticBitmap_DoThaw(PyObject *, PyObject *);}
meth_wxStaticBitmap_DoThaw(PyObject * sipSelf,PyObject * sipArgs)2460 static PyObject *meth_wxStaticBitmap_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
2461 {
2462 PyObject *sipParseErr = SIP_NULLPTR;
2463 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2464
2465 {
2466 sipwxStaticBitmap *sipCpp;
2467
2468 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2469 {
2470 PyErr_Clear();
2471
2472 Py_BEGIN_ALLOW_THREADS
2473 sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg);
2474 Py_END_ALLOW_THREADS
2475
2476 if (PyErr_Occurred())
2477 return 0;
2478
2479 Py_INCREF(Py_None);
2480 return Py_None;
2481 }
2482 }
2483
2484 /* Raise an exception if the arguments couldn't be parsed. */
2485 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_DoThaw, doc_wxStaticBitmap_DoThaw);
2486
2487 return SIP_NULLPTR;
2488 }
2489
2490
2491 PyDoc_STRVAR(doc_wxStaticBitmap_HasTransparentBackground, "HasTransparentBackground(self) -> bool");
2492
2493 extern "C" {static PyObject *meth_wxStaticBitmap_HasTransparentBackground(PyObject *, PyObject *);}
meth_wxStaticBitmap_HasTransparentBackground(PyObject * sipSelf,PyObject * sipArgs)2494 static PyObject *meth_wxStaticBitmap_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
2495 {
2496 PyObject *sipParseErr = SIP_NULLPTR;
2497 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2498
2499 {
2500 sipwxStaticBitmap *sipCpp;
2501
2502 if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxStaticBitmap, &sipCpp))
2503 {
2504 bool sipRes;
2505
2506 PyErr_Clear();
2507
2508 Py_BEGIN_ALLOW_THREADS
2509 sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg);
2510 Py_END_ALLOW_THREADS
2511
2512 if (PyErr_Occurred())
2513 return 0;
2514
2515 return PyBool_FromLong(sipRes);
2516 }
2517 }
2518
2519 /* Raise an exception if the arguments couldn't be parsed. */
2520 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_HasTransparentBackground, doc_wxStaticBitmap_HasTransparentBackground);
2521
2522 return SIP_NULLPTR;
2523 }
2524
2525
2526 PyDoc_STRVAR(doc_wxStaticBitmap_TryBefore, "TryBefore(self, event: Event) -> bool");
2527
2528 extern "C" {static PyObject *meth_wxStaticBitmap_TryBefore(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_TryBefore(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2529 static PyObject *meth_wxStaticBitmap_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2530 {
2531 PyObject *sipParseErr = SIP_NULLPTR;
2532 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2533
2534 {
2535 ::wxEvent* event;
2536 sipwxStaticBitmap *sipCpp;
2537
2538 static const char *sipKwdList[] = {
2539 sipName_event,
2540 };
2541
2542 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxEvent, &event))
2543 {
2544 bool sipRes;
2545
2546 PyErr_Clear();
2547
2548 Py_BEGIN_ALLOW_THREADS
2549 sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event);
2550 Py_END_ALLOW_THREADS
2551
2552 if (PyErr_Occurred())
2553 return 0;
2554
2555 return PyBool_FromLong(sipRes);
2556 }
2557 }
2558
2559 /* Raise an exception if the arguments couldn't be parsed. */
2560 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_TryBefore, doc_wxStaticBitmap_TryBefore);
2561
2562 return SIP_NULLPTR;
2563 }
2564
2565
2566 PyDoc_STRVAR(doc_wxStaticBitmap_TryAfter, "TryAfter(self, event: Event) -> bool");
2567
2568 extern "C" {static PyObject *meth_wxStaticBitmap_TryAfter(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_TryAfter(PyObject * sipSelf,PyObject * sipArgs,PyObject * sipKwds)2569 static PyObject *meth_wxStaticBitmap_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
2570 {
2571 PyObject *sipParseErr = SIP_NULLPTR;
2572 bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));
2573
2574 {
2575 ::wxEvent* event;
2576 sipwxStaticBitmap *sipCpp;
2577
2578 static const char *sipKwdList[] = {
2579 sipName_event,
2580 };
2581
2582 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxStaticBitmap, &sipCpp, sipType_wxEvent, &event))
2583 {
2584 bool sipRes;
2585
2586 PyErr_Clear();
2587
2588 Py_BEGIN_ALLOW_THREADS
2589 sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event);
2590 Py_END_ALLOW_THREADS
2591
2592 if (PyErr_Occurred())
2593 return 0;
2594
2595 return PyBool_FromLong(sipRes);
2596 }
2597 }
2598
2599 /* Raise an exception if the arguments couldn't be parsed. */
2600 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_TryAfter, doc_wxStaticBitmap_TryAfter);
2601
2602 return SIP_NULLPTR;
2603 }
2604
2605
2606 PyDoc_STRVAR(doc_wxStaticBitmap_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes");
2607
2608 extern "C" {static PyObject *meth_wxStaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
meth_wxStaticBitmap_GetClassDefaultAttributes(PyObject *,PyObject * sipArgs,PyObject * sipKwds)2609 static PyObject *meth_wxStaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds)
2610 {
2611 PyObject *sipParseErr = SIP_NULLPTR;
2612
2613 {
2614 ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL;
2615
2616 static const char *sipKwdList[] = {
2617 sipName_variant,
2618 };
2619
2620 if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant))
2621 {
2622 ::wxVisualAttributes*sipRes;
2623
2624 if (!wxPyCheckForApp()) return NULL;
2625
2626 PyErr_Clear();
2627
2628 Py_BEGIN_ALLOW_THREADS
2629 sipRes = new ::wxVisualAttributes( ::wxStaticBitmap::GetClassDefaultAttributes(variant));
2630 Py_END_ALLOW_THREADS
2631
2632 if (PyErr_Occurred())
2633 return 0;
2634
2635 return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR);
2636 }
2637 }
2638
2639 /* Raise an exception if the arguments couldn't be parsed. */
2640 sipNoMethod(sipParseErr, sipName_StaticBitmap, sipName_GetClassDefaultAttributes, SIP_NULLPTR);
2641
2642 return SIP_NULLPTR;
2643 }
2644
2645
2646 /* Cast a pointer to a type somewhere in its inheritance hierarchy. */
2647 extern "C" {static void *cast_wxStaticBitmap(void *, const sipTypeDef *);}
cast_wxStaticBitmap(void * sipCppV,const sipTypeDef * targetType)2648 static void *cast_wxStaticBitmap(void *sipCppV, const sipTypeDef *targetType)
2649 {
2650 ::wxStaticBitmap *sipCpp = reinterpret_cast< ::wxStaticBitmap *>(sipCppV);
2651
2652 if (targetType == sipType_wxControl)
2653 return static_cast< ::wxControl *>(sipCpp);
2654
2655 if (targetType == sipType_wxWindow)
2656 return static_cast< ::wxWindow *>(sipCpp);
2657
2658 if (targetType == sipType_wxWindowBase)
2659 return static_cast< ::wxWindowBase *>(sipCpp);
2660
2661 if (targetType == sipType_wxEvtHandler)
2662 return static_cast< ::wxEvtHandler *>(sipCpp);
2663
2664 if (targetType == sipType_wxObject)
2665 return static_cast< ::wxObject *>(sipCpp);
2666
2667 if (targetType == sipType_wxTrackable)
2668 return static_cast< ::wxTrackable *>(sipCpp);
2669
2670 return sipCppV;
2671 }
2672
2673
2674 /* Call the instance's destructor. */
2675 extern "C" {static void release_wxStaticBitmap(void *, int);}
release_wxStaticBitmap(void * sipCppV,int sipState)2676 static void release_wxStaticBitmap(void *sipCppV, int sipState)
2677 {
2678 Py_BEGIN_ALLOW_THREADS
2679
2680 if (sipState & SIP_DERIVED_CLASS)
2681 delete reinterpret_cast<sipwxStaticBitmap *>(sipCppV);
2682 else
2683 delete reinterpret_cast< ::wxStaticBitmap *>(sipCppV);
2684
2685 Py_END_ALLOW_THREADS
2686 }
2687
2688
2689 extern "C" {static void dealloc_wxStaticBitmap(sipSimpleWrapper *);}
dealloc_wxStaticBitmap(sipSimpleWrapper * sipSelf)2690 static void dealloc_wxStaticBitmap(sipSimpleWrapper *sipSelf)
2691 {
2692 if (sipIsDerivedClass(sipSelf))
2693 reinterpret_cast<sipwxStaticBitmap *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;
2694
2695 if (sipIsOwnedByPython(sipSelf))
2696 {
2697 release_wxStaticBitmap(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
2698 }
2699 }
2700
2701
2702 extern "C" {static void *init_type_wxStaticBitmap(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
init_type_wxStaticBitmap(sipSimpleWrapper * sipSelf,PyObject * sipArgs,PyObject * sipKwds,PyObject ** sipUnused,PyObject ** sipOwner,PyObject ** sipParseErr)2703 static void *init_type_wxStaticBitmap(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
2704 {
2705 sipwxStaticBitmap *sipCpp = SIP_NULLPTR;
2706
2707 {
2708 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
2709 {
2710
2711 if (!wxPyCheckForApp()) return NULL;
2712
2713 PyErr_Clear();
2714
2715 Py_BEGIN_ALLOW_THREADS
2716 sipCpp = new sipwxStaticBitmap();
2717 Py_END_ALLOW_THREADS
2718
2719 if (PyErr_Occurred())
2720 {
2721 delete sipCpp;
2722 return SIP_NULLPTR;
2723 }
2724
2725 sipCpp->sipPySelf = sipSelf;
2726
2727 return sipCpp;
2728 }
2729 }
2730
2731 {
2732 ::wxWindow* parent;
2733 ::wxWindowID id = wxID_ANY;
2734 const ::wxBitmap& bitmapdef = wxNullBitmap;
2735 const ::wxBitmap* bitmap = &bitmapdef;
2736 const ::wxPoint& posdef = wxDefaultPosition;
2737 const ::wxPoint* pos = &posdef;
2738 int posState = 0;
2739 const ::wxSize& sizedef = wxDefaultSize;
2740 const ::wxSize* size = &sizedef;
2741 int sizeState = 0;
2742 long style = 0;
2743 const ::wxString& namedef = wxStaticBitmapNameStr;
2744 const ::wxString* name = &namedef;
2745 int nameState = 0;
2746
2747 static const char *sipKwdList[] = {
2748 sipName_parent,
2749 sipName_id,
2750 sipName_bitmap,
2751 sipName_pos,
2752 sipName_size,
2753 sipName_style,
2754 sipName_name,
2755 };
2756
2757 if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ9J1J1lJ1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxBitmap, &bitmap, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxString,&name, &nameState))
2758 {
2759
2760 if (!wxPyCheckForApp()) return NULL;
2761
2762 PyErr_Clear();
2763
2764 Py_BEGIN_ALLOW_THREADS
2765 sipCpp = new sipwxStaticBitmap(parent,id,*bitmap,*pos,*size,style,*name);
2766 Py_END_ALLOW_THREADS
2767 sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState);
2768 sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState);
2769 sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState);
2770
2771 if (PyErr_Occurred())
2772 {
2773 delete sipCpp;
2774 return SIP_NULLPTR;
2775 }
2776
2777 sipCpp->sipPySelf = sipSelf;
2778
2779 return sipCpp;
2780 }
2781 }
2782
2783 return SIP_NULLPTR;
2784 }
2785
2786
2787 /* Define this type's super-types. */
2788 static sipEncodedTypeDef supers_wxStaticBitmap[] = {{89, 255, 1}};
2789
2790
2791 static PyMethodDef methods_wxStaticBitmap[] = {
2792 {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxStaticBitmap_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_AcceptsFocus)},
2793 {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxStaticBitmap_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_AcceptsFocusFromKeyboard)},
2794 {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxStaticBitmap_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_AcceptsFocusRecursively)},
2795 {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxStaticBitmap_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_AddChild)},
2796 {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxStaticBitmap_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_Create)},
2797 {SIP_MLNAME_CAST(sipName_Destroy), meth_wxStaticBitmap_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_Destroy)},
2798 {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoEnable)},
2799 {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxStaticBitmap_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoFreeze)},
2800 {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxStaticBitmap_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetBestClientSize)},
2801 {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxStaticBitmap_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetBestSize)},
2802 {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxStaticBitmap_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetBorderSize)},
2803 {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetClientSize)},
2804 {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetPosition)},
2805 {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoGetSize)},
2806 {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoMoveWindow)},
2807 {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoSetClientSize)},
2808 {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoSetSize)},
2809 {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoSetSizeHints)},
2810 {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxStaticBitmap_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoSetWindowVariant)},
2811 {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxStaticBitmap_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_DoThaw)},
2812 {SIP_MLNAME_CAST(sipName_GetBitmap), meth_wxStaticBitmap_GetBitmap, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetBitmap)},
2813 {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxStaticBitmap_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetClassDefaultAttributes)},
2814 {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxStaticBitmap_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetClientAreaOrigin)},
2815 {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxStaticBitmap_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetDefaultBorder)},
2816 {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxStaticBitmap_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetDefaultBorderForControl)},
2817 {SIP_MLNAME_CAST(sipName_GetIcon), meth_wxStaticBitmap_GetIcon, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetIcon)},
2818 {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxStaticBitmap_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetMainWindowOfCompositeControl)},
2819 {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxStaticBitmap_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_GetValidator)},
2820 {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxStaticBitmap_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_HasTransparentBackground)},
2821 {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxStaticBitmap_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_InformFirstDirection)},
2822 {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxStaticBitmap_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_InheritAttributes)},
2823 {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxStaticBitmap_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_InitDialog)},
2824 {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxStaticBitmap_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_OnInternalIdle)},
2825 {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxStaticBitmap_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_ProcessEvent)},
2826 {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxStaticBitmap_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_RemoveChild)},
2827 {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxStaticBitmap_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
2828 {SIP_MLNAME_CAST(sipName_SetBitmap), SIP_MLMETH_CAST(meth_wxStaticBitmap_SetBitmap), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_SetBitmap)},
2829 {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxStaticBitmap_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_SetCanFocus)},
2830 {SIP_MLNAME_CAST(sipName_SetIcon), SIP_MLMETH_CAST(meth_wxStaticBitmap_SetIcon), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_SetIcon)},
2831 {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxStaticBitmap_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_SetValidator)},
2832 {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxStaticBitmap_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_ShouldInheritColours)},
2833 {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxStaticBitmap_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_TransferDataFromWindow)},
2834 {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxStaticBitmap_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_TransferDataToWindow)},
2835 {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxStaticBitmap_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_TryAfter)},
2836 {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxStaticBitmap_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxStaticBitmap_TryBefore)},
2837 {SIP_MLNAME_CAST(sipName_Validate), meth_wxStaticBitmap_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxStaticBitmap_Validate)}
2838 };
2839
2840 sipVariableDef variables_wxStaticBitmap[] = {
2841 {PropertyVariable, sipName_Icon, &methods_wxStaticBitmap[25], &methods_wxStaticBitmap[38], SIP_NULLPTR, SIP_NULLPTR},
2842 {PropertyVariable, sipName_Bitmap, &methods_wxStaticBitmap[20], &methods_wxStaticBitmap[36], SIP_NULLPTR, SIP_NULLPTR},
2843 };
2844
2845 PyDoc_STRVAR(doc_wxStaticBitmap, "StaticBitmap()\n"
2846 "StaticBitmap(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=0, name=StaticBitmapNameStr)\n"
2847 "\n"
2848 "A static bitmap control displays a bitmap.");
2849
2850
2851 sipClassTypeDef sipTypeDef__core_wxStaticBitmap = {
2852 {
2853 -1,
2854 SIP_NULLPTR,
2855 SIP_NULLPTR,
2856 SIP_TYPE_SCC|SIP_TYPE_CLASS,
2857 sipNameNr_wxStaticBitmap,
2858 {SIP_NULLPTR},
2859 SIP_NULLPTR
2860 },
2861 {
2862 sipNameNr_StaticBitmap,
2863 {0, 0, 1},
2864 46, methods_wxStaticBitmap,
2865 0, SIP_NULLPTR,
2866 2, variables_wxStaticBitmap,
2867 {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
2868 },
2869 doc_wxStaticBitmap,
2870 -1,
2871 -1,
2872 supers_wxStaticBitmap,
2873 SIP_NULLPTR,
2874 init_type_wxStaticBitmap,
2875 SIP_NULLPTR,
2876 SIP_NULLPTR,
2877 #if PY_MAJOR_VERSION >= 3
2878 SIP_NULLPTR,
2879 SIP_NULLPTR,
2880 #else
2881 SIP_NULLPTR,
2882 SIP_NULLPTR,
2883 SIP_NULLPTR,
2884 SIP_NULLPTR,
2885 #endif
2886 dealloc_wxStaticBitmap,
2887 SIP_NULLPTR,
2888 SIP_NULLPTR,
2889 SIP_NULLPTR,
2890 release_wxStaticBitmap,
2891 cast_wxStaticBitmap,
2892 SIP_NULLPTR,
2893 SIP_NULLPTR,
2894 SIP_NULLPTR,
2895 SIP_NULLPTR,
2896 SIP_NULLPTR,
2897 SIP_NULLPTR
2898 };
2899