/* * Interface wrapper code. * * Generated by SIP 4.19.16 * * Copyright: (c) 2018 by Total Control Software * License: wxWindows License */ #include "sipAPI_core.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include class sipwxBitmapButton : public ::wxBitmapButton { public: sipwxBitmapButton(); sipwxBitmapButton( ::wxWindow*, ::wxWindowID,const ::wxBitmap&,const ::wxPoint&,const ::wxSize&,long,const ::wxValidator&,const ::wxString&); virtual ~sipwxBitmapButton(); /* * There is a public method for every protected method visible from * this class. */ void sipProtect_SendDestroyEvent(); bool sipProtectVirt_ProcessEvent(bool, ::wxEvent&); void sipProtectVirt_DoEnable(bool,bool); void sipProtectVirt_DoGetPosition(bool,int*,int*) const; void sipProtectVirt_DoGetSize(bool,int*,int*) const; void sipProtectVirt_DoGetClientSize(bool,int*,int*) const; ::wxSize sipProtectVirt_DoGetBestSize(bool) const; ::wxSize sipProtectVirt_DoGetBestClientSize(bool) const; void sipProtectVirt_DoSetSize(bool,int,int,int,int,int); void sipProtectVirt_DoSetClientSize(bool,int,int); void sipProtectVirt_DoSetSizeHints(bool,int,int,int,int,int,int); ::wxSize sipProtectVirt_DoGetBorderSize(bool) const; void sipProtectVirt_DoMoveWindow(bool,int,int,int,int); void sipProtectVirt_DoSetWindowVariant(bool, ::wxWindowVariant); ::wxBorder sipProtectVirt_GetDefaultBorder(bool) const; ::wxBorder sipProtectVirt_GetDefaultBorderForControl(bool) const; void sipProtectVirt_DoFreeze(bool); void sipProtectVirt_DoThaw(bool); bool sipProtectVirt_HasTransparentBackground(bool); bool sipProtectVirt_TryBefore(bool, ::wxEvent&); bool sipProtectVirt_TryAfter(bool, ::wxEvent&); /* * There is a protected method for every virtual method visible from * this class. */ protected: ::wxSize DoGetBestClientSize() const SIP_OVERRIDE; ::wxSize DoGetBestSize() const SIP_OVERRIDE; void DoThaw() SIP_OVERRIDE; void DoFreeze() SIP_OVERRIDE; ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE; ::wxBorder GetDefaultBorder() const SIP_OVERRIDE; void DoSetWindowVariant( ::wxWindowVariant) SIP_OVERRIDE; void DoMoveWindow(int,int,int,int) SIP_OVERRIDE; ::wxSize DoGetBorderSize() const SIP_OVERRIDE; void DoSetSizeHints(int,int,int,int,int,int) SIP_OVERRIDE; void DoSetClientSize(int,int) SIP_OVERRIDE; void DoSetSize(int,int,int,int,int) SIP_OVERRIDE; void DoGetClientSize(int*,int*) const SIP_OVERRIDE; void DoGetSize(int*,int*) const SIP_OVERRIDE; void DoGetPosition(int*,int*) const SIP_OVERRIDE; void DoEnable(bool) SIP_OVERRIDE; ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE; void OnInternalIdle() SIP_OVERRIDE; void InitDialog() SIP_OVERRIDE; void InheritAttributes() SIP_OVERRIDE; bool Destroy() SIP_OVERRIDE; bool Validate() SIP_OVERRIDE; bool TransferDataToWindow() SIP_OVERRIDE; bool TransferDataFromWindow() SIP_OVERRIDE; void SetValidator(const ::wxValidator&) SIP_OVERRIDE; ::wxValidator* GetValidator() SIP_OVERRIDE; bool ShouldInheritColours() const SIP_OVERRIDE; bool HasTransparentBackground() SIP_OVERRIDE; ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE; bool InformFirstDirection(int,int,int) SIP_OVERRIDE; void SetCanFocus(bool) SIP_OVERRIDE; bool AcceptsFocusRecursively() const SIP_OVERRIDE; bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE; bool AcceptsFocus() const SIP_OVERRIDE; bool TryAfter( ::wxEvent&) SIP_OVERRIDE; bool TryBefore( ::wxEvent&) SIP_OVERRIDE; bool ProcessEvent( ::wxEvent&) SIP_OVERRIDE; void AddChild( ::wxWindowBase*) SIP_OVERRIDE; void RemoveChild( ::wxWindowBase*) SIP_OVERRIDE; public: sipSimpleWrapper *sipPySelf; private: sipwxBitmapButton(const sipwxBitmapButton &); sipwxBitmapButton &operator = (const sipwxBitmapButton &); char sipPyMethods[39]; }; sipwxBitmapButton::sipwxBitmapButton(): ::wxBitmapButton(), sipPySelf(SIP_NULLPTR) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxBitmapButton::sipwxBitmapButton( ::wxWindow*parent, ::wxWindowID id,const ::wxBitmap& bitmap,const ::wxPoint& pos,const ::wxSize& size,long style,const ::wxValidator& validator,const ::wxString& name): ::wxBitmapButton(parent,id,bitmap,pos,size,style,validator,name), sipPySelf(SIP_NULLPTR) { memset(sipPyMethods, 0, sizeof (sipPyMethods)); } sipwxBitmapButton::~sipwxBitmapButton() { sipInstanceDestroyedEx(&sipPySelf); } ::wxSize sipwxBitmapButton::DoGetBestClientSize() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[0]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestClientSize); if (!sipMeth) return ::wxBitmapButton::DoGetBestClientSize(); extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth); } ::wxSize sipwxBitmapButton::DoGetBestSize() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[1]),sipPySelf,SIP_NULLPTR,sipName_DoGetBestSize); if (!sipMeth) return ::wxBitmapButton::DoGetBestSize(); extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::DoThaw() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,SIP_NULLPTR,sipName_DoThaw); if (!sipMeth) { ::wxBitmapButton::DoThaw(); return; } extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::DoFreeze() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,SIP_NULLPTR,sipName_DoFreeze); if (!sipMeth) { ::wxBitmapButton::DoFreeze(); return; } extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth); } ::wxBorder sipwxBitmapButton::GetDefaultBorderForControl() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[4]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorderForControl); if (!sipMeth) return ::wxBitmapButton::GetDefaultBorderForControl(); extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth); } ::wxBorder sipwxBitmapButton::GetDefaultBorder() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[5]),sipPySelf,SIP_NULLPTR,sipName_GetDefaultBorder); if (!sipMeth) return ::wxBitmapButton::GetDefaultBorder(); extern ::wxBorder sipVH__core_122(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_122(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::DoSetWindowVariant( ::wxWindowVariant variant) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,SIP_NULLPTR,sipName_DoSetWindowVariant); if (!sipMeth) { ::wxBitmapButton::DoSetWindowVariant(variant); return; } extern void sipVH__core_121(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant); sipVH__core_121(sipGILState, 0, sipPySelf, sipMeth, variant); } void sipwxBitmapButton::DoMoveWindow(int x,int y,int width,int height) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,SIP_NULLPTR,sipName_DoMoveWindow); if (!sipMeth) { ::wxBitmapButton::DoMoveWindow(x,y,width,height); return; } extern void sipVH__core_120(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int); sipVH__core_120(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height); } ::wxSize sipwxBitmapButton::DoGetBorderSize() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[8]),sipPySelf,SIP_NULLPTR,sipName_DoGetBorderSize); if (!sipMeth) return ::wxBitmapButton::DoGetBorderSize(); extern ::wxSize sipVH__core_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_93(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::DoSetSizeHints(int minW,int minH,int maxW,int maxH,int incW,int incH) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,SIP_NULLPTR,sipName_DoSetSizeHints); if (!sipMeth) { ::wxBitmapButton::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH); return; } extern void sipVH__core_119(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int,int); sipVH__core_119(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH); } void sipwxBitmapButton::DoSetClientSize(int width,int height) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,SIP_NULLPTR,sipName_DoSetClientSize); if (!sipMeth) { ::wxBitmapButton::DoSetClientSize(width,height); return; } extern void sipVH__core_118(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int); sipVH__core_118(sipGILState, 0, sipPySelf, sipMeth, width, height); } void sipwxBitmapButton::DoSetSize(int x,int y,int width,int height,int sizeFlags) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,SIP_NULLPTR,sipName_DoSetSize); if (!sipMeth) { ::wxBitmapButton::DoSetSize(x,y,width,height,sizeFlags); return; } extern void sipVH__core_117(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int,int,int); sipVH__core_117(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags); } void sipwxBitmapButton::DoGetClientSize(int*width,int*height) const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[12]),sipPySelf,SIP_NULLPTR,sipName_DoGetClientSize); if (!sipMeth) { ::wxBitmapButton::DoGetClientSize(width,height); return; } extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*); sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height); } void sipwxBitmapButton::DoGetSize(int*width,int*height) const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[13]),sipPySelf,SIP_NULLPTR,sipName_DoGetSize); if (!sipMeth) { ::wxBitmapButton::DoGetSize(width,height); return; } extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*); sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, width, height); } void sipwxBitmapButton::DoGetPosition(int*x,int*y) const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[14]),sipPySelf,SIP_NULLPTR,sipName_DoGetPosition); if (!sipMeth) { ::wxBitmapButton::DoGetPosition(x,y); return; } extern void sipVH__core_116(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*,int*); sipVH__core_116(sipGILState, 0, sipPySelf, sipMeth, x, y); } void sipwxBitmapButton::DoEnable(bool enable) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,SIP_NULLPTR,sipName_DoEnable); if (!sipMeth) { ::wxBitmapButton::DoEnable(enable); return; } extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool); sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, enable); } ::wxWindow* sipwxBitmapButton::GetMainWindowOfCompositeControl() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,SIP_NULLPTR,sipName_GetMainWindowOfCompositeControl); if (!sipMeth) return ::wxBitmapButton::GetMainWindowOfCompositeControl(); extern ::wxWindow* sipVH__core_115(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_115(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::OnInternalIdle() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,SIP_NULLPTR,sipName_OnInternalIdle); if (!sipMeth) { ::wxBitmapButton::OnInternalIdle(); return; } extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::InitDialog() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[18],sipPySelf,SIP_NULLPTR,sipName_InitDialog); if (!sipMeth) { ::wxBitmapButton::InitDialog(); return; } extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::InheritAttributes() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[19],sipPySelf,SIP_NULLPTR,sipName_InheritAttributes); if (!sipMeth) { ::wxBitmapButton::InheritAttributes(); return; } extern void sipVH__core_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); sipVH__core_45(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::Destroy() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[20],sipPySelf,SIP_NULLPTR,sipName_Destroy); if (!sipMeth) return ::wxBitmapButton::Destroy(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::Validate() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[21],sipPySelf,SIP_NULLPTR,sipName_Validate); if (!sipMeth) return ::wxBitmapButton::Validate(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::TransferDataToWindow() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[22],sipPySelf,SIP_NULLPTR,sipName_TransferDataToWindow); if (!sipMeth) return ::wxBitmapButton::TransferDataToWindow(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::TransferDataFromWindow() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[23],sipPySelf,SIP_NULLPTR,sipName_TransferDataFromWindow); if (!sipMeth) return ::wxBitmapButton::TransferDataFromWindow(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } void sipwxBitmapButton::SetValidator(const ::wxValidator& validator) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[24],sipPySelf,SIP_NULLPTR,sipName_SetValidator); if (!sipMeth) { ::wxBitmapButton::SetValidator(validator); return; } extern void sipVH__core_114(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&); sipVH__core_114(sipGILState, 0, sipPySelf, sipMeth, validator); } ::wxValidator* sipwxBitmapButton::GetValidator() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[25],sipPySelf,SIP_NULLPTR,sipName_GetValidator); if (!sipMeth) return ::wxBitmapButton::GetValidator(); extern ::wxValidator* sipVH__core_113(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_113(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::ShouldInheritColours() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[26]),sipPySelf,SIP_NULLPTR,sipName_ShouldInheritColours); if (!sipMeth) return ::wxBitmapButton::ShouldInheritColours(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::HasTransparentBackground() { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[27],sipPySelf,SIP_NULLPTR,sipName_HasTransparentBackground); if (!sipMeth) return ::wxBitmapButton::HasTransparentBackground(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } ::wxPoint sipwxBitmapButton::GetClientAreaOrigin() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[28]),sipPySelf,SIP_NULLPTR,sipName_GetClientAreaOrigin); if (!sipMeth) return ::wxBitmapButton::GetClientAreaOrigin(); extern ::wxPoint sipVH__core_112(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_112(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::InformFirstDirection(int direction,int size,int availableOtherDir) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[29],sipPySelf,SIP_NULLPTR,sipName_InformFirstDirection); if (!sipMeth) return ::wxBitmapButton::InformFirstDirection(direction,size,availableOtherDir); extern bool sipVH__core_111(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,int,int); return sipVH__core_111(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir); } void sipwxBitmapButton::SetCanFocus(bool canFocus) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[30],sipPySelf,SIP_NULLPTR,sipName_SetCanFocus); if (!sipMeth) { ::wxBitmapButton::SetCanFocus(canFocus); return; } extern void sipVH__core_84(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool); sipVH__core_84(sipGILState, 0, sipPySelf, sipMeth, canFocus); } bool sipwxBitmapButton::AcceptsFocusRecursively() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[31]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusRecursively); if (!sipMeth) return ::wxBitmapButton::AcceptsFocusRecursively(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::AcceptsFocusFromKeyboard() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[32]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocusFromKeyboard); if (!sipMeth) return ::wxBitmapButton::AcceptsFocusFromKeyboard(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::AcceptsFocus() const { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,const_cast(&sipPyMethods[33]),sipPySelf,SIP_NULLPTR,sipName_AcceptsFocus); if (!sipMeth) return ::wxBitmapButton::AcceptsFocus(); extern bool sipVH__core_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *); return sipVH__core_6(sipGILState, 0, sipPySelf, sipMeth); } bool sipwxBitmapButton::TryAfter( ::wxEvent& event) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[34],sipPySelf,SIP_NULLPTR,sipName_TryAfter); if (!sipMeth) return ::wxBitmapButton::TryAfter(event); extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&); return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event); } bool sipwxBitmapButton::TryBefore( ::wxEvent& event) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[35],sipPySelf,SIP_NULLPTR,sipName_TryBefore); if (!sipMeth) return ::wxBitmapButton::TryBefore(event); extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&); return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event); } bool sipwxBitmapButton::ProcessEvent( ::wxEvent& event) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[36],sipPySelf,SIP_NULLPTR,sipName_ProcessEvent); if (!sipMeth) return ::wxBitmapButton::ProcessEvent(event); extern bool sipVH__core_90(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&); return sipVH__core_90(sipGILState, 0, sipPySelf, sipMeth, event); } void sipwxBitmapButton::AddChild( ::wxWindowBase*child) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[37],sipPySelf,SIP_NULLPTR,sipName_AddChild); if (!sipMeth) { ::wxBitmapButton::AddChild(child); return; } extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*); sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child); } void sipwxBitmapButton::RemoveChild( ::wxWindowBase*child) { sip_gilstate_t sipGILState; PyObject *sipMeth; sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[38],sipPySelf,SIP_NULLPTR,sipName_RemoveChild); if (!sipMeth) { ::wxBitmapButton::RemoveChild(child); return; } extern void sipVH__core_110(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*); sipVH__core_110(sipGILState, 0, sipPySelf, sipMeth, child); } void sipwxBitmapButton::sipProtect_SendDestroyEvent() { ::wxWindow::SendDestroyEvent(); } bool sipwxBitmapButton::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event) { return (sipSelfWasArg ? ::wxBitmapButton::ProcessEvent(event) : ProcessEvent(event)); } void sipwxBitmapButton::sipProtectVirt_DoEnable(bool sipSelfWasArg,bool enable) { (sipSelfWasArg ? ::wxBitmapButton::DoEnable(enable) : DoEnable(enable)); } void sipwxBitmapButton::sipProtectVirt_DoGetPosition(bool sipSelfWasArg,int*x,int*y) const { (sipSelfWasArg ? ::wxBitmapButton::DoGetPosition(x,y) : DoGetPosition(x,y)); } void sipwxBitmapButton::sipProtectVirt_DoGetSize(bool sipSelfWasArg,int*width,int*height) const { (sipSelfWasArg ? ::wxBitmapButton::DoGetSize(width,height) : DoGetSize(width,height)); } void sipwxBitmapButton::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg,int*width,int*height) const { (sipSelfWasArg ? ::wxBitmapButton::DoGetClientSize(width,height) : DoGetClientSize(width,height)); } ::wxSize sipwxBitmapButton::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const { return (sipSelfWasArg ? ::wxBitmapButton::DoGetBestSize() : DoGetBestSize()); } ::wxSize sipwxBitmapButton::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const { return (sipSelfWasArg ? ::wxBitmapButton::DoGetBestClientSize() : DoGetBestClientSize()); } void sipwxBitmapButton::sipProtectVirt_DoSetSize(bool sipSelfWasArg,int x,int y,int width,int height,int sizeFlags) { (sipSelfWasArg ? ::wxBitmapButton::DoSetSize(x,y,width,height,sizeFlags) : DoSetSize(x,y,width,height,sizeFlags)); } void sipwxBitmapButton::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg,int width,int height) { (sipSelfWasArg ? ::wxBitmapButton::DoSetClientSize(width,height) : DoSetClientSize(width,height)); } void sipwxBitmapButton::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg,int minW,int minH,int maxW,int maxH,int incW,int incH) { (sipSelfWasArg ? ::wxBitmapButton::DoSetSizeHints(minW,minH,maxW,maxH,incW,incH) : DoSetSizeHints(minW,minH,maxW,maxH,incW,incH)); } ::wxSize sipwxBitmapButton::sipProtectVirt_DoGetBorderSize(bool sipSelfWasArg) const { return (sipSelfWasArg ? ::wxBitmapButton::DoGetBorderSize() : DoGetBorderSize()); } void sipwxBitmapButton::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg,int x,int y,int width,int height) { (sipSelfWasArg ? ::wxBitmapButton::DoMoveWindow(x,y,width,height) : DoMoveWindow(x,y,width,height)); } void sipwxBitmapButton::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant) { (sipSelfWasArg ? ::wxBitmapButton::DoSetWindowVariant(variant) : DoSetWindowVariant(variant)); } ::wxBorder sipwxBitmapButton::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const { return (sipSelfWasArg ? ::wxBitmapButton::GetDefaultBorder() : GetDefaultBorder()); } ::wxBorder sipwxBitmapButton::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const { return (sipSelfWasArg ? ::wxBitmapButton::GetDefaultBorderForControl() : GetDefaultBorderForControl()); } void sipwxBitmapButton::sipProtectVirt_DoFreeze(bool sipSelfWasArg) { (sipSelfWasArg ? ::wxBitmapButton::DoFreeze() : DoFreeze()); } void sipwxBitmapButton::sipProtectVirt_DoThaw(bool sipSelfWasArg) { (sipSelfWasArg ? ::wxBitmapButton::DoThaw() : DoThaw()); } bool sipwxBitmapButton::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg) { return (sipSelfWasArg ? ::wxBitmapButton::HasTransparentBackground() : HasTransparentBackground()); } bool sipwxBitmapButton::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event) { return (sipSelfWasArg ? ::wxBitmapButton::TryBefore(event) : TryBefore(event)); } bool sipwxBitmapButton::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event) { return (sipSelfWasArg ? ::wxBitmapButton::TryAfter(event) : TryAfter(event)); } PyDoc_STRVAR(doc_wxBitmapButton_SendDestroyEvent, "SendDestroyEvent()\n" "\n" "Generate wxWindowDestroyEvent for this window."); extern "C" {static PyObject *meth_wxBitmapButton_SendDestroyEvent(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; { sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtect_SendDestroyEvent(); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_SendDestroyEvent, SIP_NULLPTR); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_Create, "Create(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=BU_AUTODRAW, validator=DefaultValidator, name=ButtonNameStr) -> bool\n" "\n" "Button creation function for two-step creation."); extern "C" {static PyObject *meth_wxBitmapButton_Create(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; { ::wxWindow* parent; ::wxWindowID id = wxID_ANY; const ::wxBitmap& bitmapdef = wxNullBitmap; const ::wxBitmap* bitmap = &bitmapdef; const ::wxPoint& posdef = wxDefaultPosition; const ::wxPoint* pos = &posdef; int posState = 0; const ::wxSize& sizedef = wxDefaultSize; const ::wxSize* size = &sizedef; int sizeState = 0; long style = wxBU_AUTODRAW; const ::wxValidator& validatordef = wxDefaultValidator; const ::wxValidator* validator = &validatordef; const ::wxString& namedef = wxButtonNameStr; const ::wxString* name = &namedef; int nameState = 0; sipWrapper *sipOwner = SIP_NULLPTR; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_parent, sipName_id, sipName_bitmap, sipName_pos, sipName_size, sipName_style, sipName_validator, sipName_name, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ9J1J1lJ9J1", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxBitmap, &bitmap, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->Create(parent,id,*bitmap,*pos,*size,style,*validator,*name); Py_END_ALLOW_THREADS if (sipOwner) sipTransferTo(sipSelf, (PyObject *)sipOwner); else sipTransferBack(sipSelf); sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState); sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState); sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState); if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_Create, SIP_NULLPTR); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_NewCloseButton, "NewCloseButton(parent, winid) -> BitmapButton\n" "\n" "Helper function creating a standard-looking \"Close\" button."); extern "C" {static PyObject *meth_wxBitmapButton_NewCloseButton(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_NewCloseButton(PyObject *, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; { ::wxWindow* parent; ::wxWindowID winid; static const char *sipKwdList[] = { sipName_parent, sipName_winid, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "J8i", sipType_wxWindow, &parent, &winid)) { ::wxBitmapButton*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = ::wxBitmapButton::NewCloseButton(parent,winid); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromType(sipRes,sipType_wxBitmapButton,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_NewCloseButton, SIP_NULLPTR); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point"); extern "C" {static PyObject *meth_wxBitmapButton_GetClientAreaOrigin(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxPoint*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp-> ::wxBitmapButton::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin())); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromNewType(sipRes,sipType_wxPoint,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetClientAreaOrigin, doc_wxBitmapButton_GetClientAreaOrigin); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_Validate, "Validate(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_Validate(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_Validate(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::Validate() : sipCpp->Validate()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_Validate, doc_wxBitmapButton_Validate); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_TransferDataToWindow, "TransferDataToWindow(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_TransferDataToWindow(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::TransferDataToWindow() : sipCpp->TransferDataToWindow()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_TransferDataToWindow, doc_wxBitmapButton_TransferDataToWindow); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_TransferDataFromWindow(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::TransferDataFromWindow() : sipCpp->TransferDataFromWindow()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_TransferDataFromWindow, doc_wxBitmapButton_TransferDataFromWindow); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_InitDialog, "InitDialog(self)"); extern "C" {static PyObject *meth_wxBitmapButton_InitDialog(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_InitDialog(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::InitDialog() : sipCpp->InitDialog()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_InitDialog, doc_wxBitmapButton_InitDialog); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_AcceptsFocus, "AcceptsFocus(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_AcceptsFocus(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::AcceptsFocus() : sipCpp->AcceptsFocus()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_AcceptsFocus, doc_wxBitmapButton_AcceptsFocus); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_AcceptsFocusRecursively(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_AcceptsFocusRecursively, doc_wxBitmapButton_AcceptsFocusRecursively); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_AcceptsFocusFromKeyboard(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_AcceptsFocusFromKeyboard, doc_wxBitmapButton_AcceptsFocusFromKeyboard); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_AddChild, "AddChild(self, child: WindowBase)"); extern "C" {static PyObject *meth_wxBitmapButton_AddChild(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxWindowBase* child; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_child, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxWindowBase, &child)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::AddChild(child) : sipCpp->AddChild(child)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_AddChild, doc_wxBitmapButton_AddChild); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_RemoveChild, "RemoveChild(self, child: WindowBase)"); extern "C" {static PyObject *meth_wxBitmapButton_RemoveChild(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxWindowBase* child; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_child, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxWindowBase, &child)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::RemoveChild(child) : sipCpp->RemoveChild(child)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_RemoveChild, doc_wxBitmapButton_RemoveChild); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_InheritAttributes, "InheritAttributes(self)"); extern "C" {static PyObject *meth_wxBitmapButton_InheritAttributes(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::InheritAttributes() : sipCpp->InheritAttributes()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_InheritAttributes, doc_wxBitmapButton_InheritAttributes); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_ShouldInheritColours, "ShouldInheritColours(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_ShouldInheritColours(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::ShouldInheritColours() : sipCpp->ShouldInheritColours()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_ShouldInheritColours, doc_wxBitmapButton_ShouldInheritColours); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_OnInternalIdle, "OnInternalIdle(self)"); extern "C" {static PyObject *meth_wxBitmapButton_OnInternalIdle(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::OnInternalIdle() : sipCpp->OnInternalIdle()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_OnInternalIdle, doc_wxBitmapButton_OnInternalIdle); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window"); extern "C" {static PyObject *meth_wxBitmapButton_GetMainWindowOfCompositeControl(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxWindow*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromType(sipRes,sipType_wxWindow,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetMainWindowOfCompositeControl, doc_wxBitmapButton_GetMainWindowOfCompositeControl); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_InformFirstDirection(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int direction; int size; int availableOtherDir; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_direction, sipName_size, sipName_availableOtherDir, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxBitmapButton, &sipCpp, &direction, &size, &availableOtherDir)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::InformFirstDirection(direction,size,availableOtherDir) : sipCpp->InformFirstDirection(direction,size,availableOtherDir)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_InformFirstDirection, doc_wxBitmapButton_InformFirstDirection); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_SetCanFocus, "SetCanFocus(self, canFocus: bool)"); extern "C" {static PyObject *meth_wxBitmapButton_SetCanFocus(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { bool canFocus; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_canFocus, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxBitmapButton, &sipCpp, &canFocus)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_SetCanFocus, doc_wxBitmapButton_SetCanFocus); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_Destroy, "Destroy(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_Destroy(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_Destroy(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::Destroy() : sipCpp->Destroy()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_Destroy, doc_wxBitmapButton_Destroy); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_SetValidator, "SetValidator(self, validator: Validator)"); extern "C" {static PyObject *meth_wxBitmapButton_SetValidator(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const ::wxValidator* validator; ::wxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_validator, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxValidator, &validator)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::SetValidator(*validator) : sipCpp->SetValidator(*validator)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_SetValidator, doc_wxBitmapButton_SetValidator); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetValidator, "GetValidator(self) -> Validator"); extern "C" {static PyObject *meth_wxBitmapButton_GetValidator(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetValidator(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxValidator*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp-> ::wxBitmapButton::GetValidator() : sipCpp->GetValidator()); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromType(sipRes,sipType_wxValidator,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetValidator, doc_wxBitmapButton_GetValidator); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_ProcessEvent, "ProcessEvent(self, event: Event) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_ProcessEvent(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxEvent* event; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_event, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxEvent, &event)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_ProcessEvent(sipSelfWasArg,*event); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_ProcessEvent, doc_wxBitmapButton_ProcessEvent); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoEnable, "DoEnable(self, enable: bool)"); extern "C" {static PyObject *meth_wxBitmapButton_DoEnable(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { bool enable; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_enable, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxBitmapButton, &sipCpp, &enable)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoEnable(sipSelfWasArg,enable); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoEnable, doc_wxBitmapButton_DoEnable); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetPosition, "DoGetPosition(self) -> Tuple[int, int]"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetPosition(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int x; int y; const sipwxBitmapButton *sipCpp; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoGetPosition(sipSelfWasArg,&x,&y); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipBuildResult(0,"(ii)",x,y); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetPosition, doc_wxBitmapButton_DoGetPosition); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetSize, "DoGetSize(self) -> Tuple[int, int]"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetSize(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int width; int height; const sipwxBitmapButton *sipCpp; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoGetSize(sipSelfWasArg,&width,&height); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipBuildResult(0,"(ii)",width,height); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetSize, doc_wxBitmapButton_DoGetSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetClientSize, "DoGetClientSize(self) -> Tuple[int, int]"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetClientSize(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int width; int height; const sipwxBitmapButton *sipCpp; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoGetClientSize(sipSelfWasArg,&width,&height); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipBuildResult(0,"(ii)",width,height); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetClientSize, doc_wxBitmapButton_DoGetClientSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetBestSize, "DoGetBestSize(self) -> Size"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetBestSize(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxSize*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestSize(sipSelfWasArg)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetBestSize, doc_wxBitmapButton_DoGetBestSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetBestClientSize(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxSize*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBestClientSize(sipSelfWasArg)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetBestClientSize, doc_wxBitmapButton_DoGetBestClientSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)"); extern "C" {static PyObject *meth_wxBitmapButton_DoSetSize(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoSetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int x; int y; int width; int height; int sizeFlags; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_x, sipName_y, sipName_width, sipName_height, sipName_sizeFlags, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiii", &sipSelf, sipType_wxBitmapButton, &sipCpp, &x, &y, &width, &height, &sizeFlags)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoSetSize(sipSelfWasArg,x,y,width,height,sizeFlags); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoSetSize, doc_wxBitmapButton_DoSetSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)"); extern "C" {static PyObject *meth_wxBitmapButton_DoSetClientSize(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int width; int height; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_width, sipName_height, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxBitmapButton, &sipCpp, &width, &height)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoSetClientSize(sipSelfWasArg,width,height); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoSetClientSize, doc_wxBitmapButton_DoSetClientSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)"); extern "C" {static PyObject *meth_wxBitmapButton_DoSetSizeHints(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoSetSizeHints(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int minW; int minH; int maxW; int maxH; int incW; int incH; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_minW, sipName_minH, sipName_maxW, sipName_maxH, sipName_incW, sipName_incH, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiiiii", &sipSelf, sipType_wxBitmapButton, &sipCpp, &minW, &minH, &maxW, &maxH, &incW, &incH)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoSetSizeHints(sipSelfWasArg,minW,minH,maxW,maxH,incW,incH); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoSetSizeHints, doc_wxBitmapButton_DoSetSizeHints); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoGetBorderSize, "DoGetBorderSize(self) -> Size"); extern "C" {static PyObject *meth_wxBitmapButton_DoGetBorderSize(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoGetBorderSize(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxSize*sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = new ::wxSize(sipCpp->sipProtectVirt_DoGetBorderSize(sipSelfWasArg)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromNewType(sipRes,sipType_wxSize,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoGetBorderSize, doc_wxBitmapButton_DoGetBorderSize); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)"); extern "C" {static PyObject *meth_wxBitmapButton_DoMoveWindow(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoMoveWindow(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { int x; int y; int width; int height; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_x, sipName_y, sipName_width, sipName_height, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxBitmapButton, &sipCpp, &x, &y, &width, &height)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoMoveWindow(sipSelfWasArg,x,y,width,height); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoMoveWindow, doc_wxBitmapButton_DoMoveWindow); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)"); extern "C" {static PyObject *meth_wxBitmapButton_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxWindowVariant variant; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_variant, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxWindowVariant, &variant)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoSetWindowVariant(sipSelfWasArg,variant); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoSetWindowVariant, doc_wxBitmapButton_DoSetWindowVariant); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetDefaultBorder, "GetDefaultBorder(self) -> Border"); extern "C" {static PyObject *meth_wxBitmapButton_GetDefaultBorder(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxBorder sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_GetDefaultBorder(sipSelfWasArg); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromEnum(static_cast(sipRes), sipType_wxBorder); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetDefaultBorder, doc_wxBitmapButton_GetDefaultBorder); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border"); extern "C" {static PyObject *meth_wxBitmapButton_GetDefaultBorderForControl(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { const sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { ::wxBorder sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_GetDefaultBorderForControl(sipSelfWasArg); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromEnum(static_cast(sipRes), sipType_wxBorder); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetDefaultBorderForControl, doc_wxBitmapButton_GetDefaultBorderForControl); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoFreeze, "DoFreeze(self)"); extern "C" {static PyObject *meth_wxBitmapButton_DoFreeze(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoFreeze(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoFreeze(sipSelfWasArg); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoFreeze, doc_wxBitmapButton_DoFreeze); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_DoThaw, "DoThaw(self)"); extern "C" {static PyObject *meth_wxBitmapButton_DoThaw(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_DoThaw(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp->sipProtectVirt_DoThaw(sipSelfWasArg); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; Py_INCREF(Py_None); return Py_None; } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_DoThaw, doc_wxBitmapButton_DoThaw); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_HasTransparentBackground, "HasTransparentBackground(self) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_HasTransparentBackground(PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { sipwxBitmapButton *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxBitmapButton, &sipCpp)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_HasTransparentBackground(sipSelfWasArg); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_HasTransparentBackground, doc_wxBitmapButton_HasTransparentBackground); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_TryBefore, "TryBefore(self, event: Event) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_TryBefore(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxEvent* event; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_event, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxEvent, &event)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_TryBefore(sipSelfWasArg,*event); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_TryBefore, doc_wxBitmapButton_TryBefore); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_TryAfter, "TryAfter(self, event: Event) -> bool"); extern "C" {static PyObject *meth_wxBitmapButton_TryAfter(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf)); { ::wxEvent* event; sipwxBitmapButton *sipCpp; static const char *sipKwdList[] = { sipName_event, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxBitmapButton, &sipCpp, sipType_wxEvent, &event)) { bool sipRes; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->sipProtectVirt_TryAfter(sipSelfWasArg,*event); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return PyBool_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_TryAfter, doc_wxBitmapButton_TryAfter); return SIP_NULLPTR; } PyDoc_STRVAR(doc_wxBitmapButton_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes"); extern "C" {static PyObject *meth_wxBitmapButton_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);} static PyObject *meth_wxBitmapButton_GetClassDefaultAttributes(PyObject *, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = SIP_NULLPTR; { ::wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL; static const char *sipKwdList[] = { sipName_variant, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "|E", sipType_wxWindowVariant, &variant)) { ::wxVisualAttributes*sipRes; if (!wxPyCheckForApp()) return NULL; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipRes = new ::wxVisualAttributes( ::wxBitmapButton::GetClassDefaultAttributes(variant)); Py_END_ALLOW_THREADS if (PyErr_Occurred()) return 0; return sipConvertFromNewType(sipRes,sipType_wxVisualAttributes,SIP_NULLPTR); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_BitmapButton, sipName_GetClassDefaultAttributes, SIP_NULLPTR); return SIP_NULLPTR; } /* Cast a pointer to a type somewhere in its inheritance hierarchy. */ extern "C" {static void *cast_wxBitmapButton(void *, const sipTypeDef *);} static void *cast_wxBitmapButton(void *sipCppV, const sipTypeDef *targetType) { ::wxBitmapButton *sipCpp = reinterpret_cast< ::wxBitmapButton *>(sipCppV); if (targetType == sipType_wxButton) return static_cast< ::wxButton *>(sipCpp); if (targetType == sipType_wxAnyButton) return static_cast< ::wxAnyButton *>(sipCpp); if (targetType == sipType_wxControl) return static_cast< ::wxControl *>(sipCpp); if (targetType == sipType_wxWindow) return static_cast< ::wxWindow *>(sipCpp); if (targetType == sipType_wxWindowBase) return static_cast< ::wxWindowBase *>(sipCpp); if (targetType == sipType_wxEvtHandler) return static_cast< ::wxEvtHandler *>(sipCpp); if (targetType == sipType_wxObject) return static_cast< ::wxObject *>(sipCpp); if (targetType == sipType_wxTrackable) return static_cast< ::wxTrackable *>(sipCpp); return sipCppV; } /* Call the instance's destructor. */ extern "C" {static void release_wxBitmapButton(void *, int);} static void release_wxBitmapButton(void *sipCppV, int sipState) { Py_BEGIN_ALLOW_THREADS if (sipState & SIP_DERIVED_CLASS) delete reinterpret_cast(sipCppV); else delete reinterpret_cast< ::wxBitmapButton *>(sipCppV); Py_END_ALLOW_THREADS } extern "C" {static void dealloc_wxBitmapButton(sipSimpleWrapper *);} static void dealloc_wxBitmapButton(sipSimpleWrapper *sipSelf) { if (sipIsDerivedClass(sipSelf)) reinterpret_cast(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR; if (sipIsOwnedByPython(sipSelf)) { release_wxBitmapButton(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf)); } } extern "C" {static void *init_type_wxBitmapButton(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);} static void *init_type_wxBitmapButton(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr) { sipwxBitmapButton *sipCpp = SIP_NULLPTR; { if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "")) { if (!wxPyCheckForApp()) return NULL; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp = new sipwxBitmapButton(); Py_END_ALLOW_THREADS if (PyErr_Occurred()) { delete sipCpp; return SIP_NULLPTR; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } { ::wxWindow* parent; ::wxWindowID id = wxID_ANY; const ::wxBitmap& bitmapdef = wxNullBitmap; const ::wxBitmap* bitmap = &bitmapdef; const ::wxPoint& posdef = wxDefaultPosition; const ::wxPoint* pos = &posdef; int posState = 0; const ::wxSize& sizedef = wxDefaultSize; const ::wxSize* size = &sizedef; int sizeState = 0; long style = wxBU_AUTODRAW; const ::wxValidator& validatordef = wxDefaultValidator; const ::wxValidator* validator = &validatordef; const ::wxString& namedef = wxButtonNameStr; const ::wxString* name = &namedef; int nameState = 0; static const char *sipKwdList[] = { sipName_parent, sipName_id, sipName_bitmap, sipName_pos, sipName_size, sipName_style, sipName_validator, sipName_name, }; if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ9J1J1lJ9J1", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxBitmap, &bitmap, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style, sipType_wxValidator, &validator, sipType_wxString,&name, &nameState)) { if (!wxPyCheckForApp()) return NULL; PyErr_Clear(); Py_BEGIN_ALLOW_THREADS sipCpp = new sipwxBitmapButton(parent,id,*bitmap,*pos,*size,style,*validator,*name); Py_END_ALLOW_THREADS sipReleaseType(const_cast< ::wxPoint *>(pos),sipType_wxPoint,posState); sipReleaseType(const_cast< ::wxSize *>(size),sipType_wxSize,sizeState); sipReleaseType(const_cast< ::wxString *>(name),sipType_wxString,nameState); if (PyErr_Occurred()) { delete sipCpp; return SIP_NULLPTR; } sipCpp->sipPySelf = sipSelf; return sipCpp; } } return SIP_NULLPTR; } /* Define this type's super-types. */ static sipEncodedTypeDef supers_wxBitmapButton[] = {{48, 255, 1}}; static PyMethodDef methods_wxBitmapButton[] = { {SIP_MLNAME_CAST(sipName_AcceptsFocus), meth_wxBitmapButton_AcceptsFocus, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_AcceptsFocus)}, {SIP_MLNAME_CAST(sipName_AcceptsFocusFromKeyboard), meth_wxBitmapButton_AcceptsFocusFromKeyboard, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_AcceptsFocusFromKeyboard)}, {SIP_MLNAME_CAST(sipName_AcceptsFocusRecursively), meth_wxBitmapButton_AcceptsFocusRecursively, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_AcceptsFocusRecursively)}, {SIP_MLNAME_CAST(sipName_AddChild), SIP_MLMETH_CAST(meth_wxBitmapButton_AddChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_AddChild)}, {SIP_MLNAME_CAST(sipName_Create), SIP_MLMETH_CAST(meth_wxBitmapButton_Create), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_Create)}, {SIP_MLNAME_CAST(sipName_Destroy), meth_wxBitmapButton_Destroy, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_Destroy)}, {SIP_MLNAME_CAST(sipName_DoEnable), SIP_MLMETH_CAST(meth_wxBitmapButton_DoEnable), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoEnable)}, {SIP_MLNAME_CAST(sipName_DoFreeze), meth_wxBitmapButton_DoFreeze, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoFreeze)}, {SIP_MLNAME_CAST(sipName_DoGetBestClientSize), meth_wxBitmapButton_DoGetBestClientSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetBestClientSize)}, {SIP_MLNAME_CAST(sipName_DoGetBestSize), meth_wxBitmapButton_DoGetBestSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetBestSize)}, {SIP_MLNAME_CAST(sipName_DoGetBorderSize), meth_wxBitmapButton_DoGetBorderSize, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetBorderSize)}, {SIP_MLNAME_CAST(sipName_DoGetClientSize), SIP_MLMETH_CAST(meth_wxBitmapButton_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetClientSize)}, {SIP_MLNAME_CAST(sipName_DoGetPosition), SIP_MLMETH_CAST(meth_wxBitmapButton_DoGetPosition), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetPosition)}, {SIP_MLNAME_CAST(sipName_DoGetSize), SIP_MLMETH_CAST(meth_wxBitmapButton_DoGetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoGetSize)}, {SIP_MLNAME_CAST(sipName_DoMoveWindow), SIP_MLMETH_CAST(meth_wxBitmapButton_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoMoveWindow)}, {SIP_MLNAME_CAST(sipName_DoSetClientSize), SIP_MLMETH_CAST(meth_wxBitmapButton_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoSetClientSize)}, {SIP_MLNAME_CAST(sipName_DoSetSize), SIP_MLMETH_CAST(meth_wxBitmapButton_DoSetSize), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoSetSize)}, {SIP_MLNAME_CAST(sipName_DoSetSizeHints), SIP_MLMETH_CAST(meth_wxBitmapButton_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoSetSizeHints)}, {SIP_MLNAME_CAST(sipName_DoSetWindowVariant), SIP_MLMETH_CAST(meth_wxBitmapButton_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoSetWindowVariant)}, {SIP_MLNAME_CAST(sipName_DoThaw), meth_wxBitmapButton_DoThaw, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_DoThaw)}, {SIP_MLNAME_CAST(sipName_GetClassDefaultAttributes), SIP_MLMETH_CAST(meth_wxBitmapButton_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetClassDefaultAttributes)}, {SIP_MLNAME_CAST(sipName_GetClientAreaOrigin), meth_wxBitmapButton_GetClientAreaOrigin, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetClientAreaOrigin)}, {SIP_MLNAME_CAST(sipName_GetDefaultBorder), meth_wxBitmapButton_GetDefaultBorder, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetDefaultBorder)}, {SIP_MLNAME_CAST(sipName_GetDefaultBorderForControl), meth_wxBitmapButton_GetDefaultBorderForControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetDefaultBorderForControl)}, {SIP_MLNAME_CAST(sipName_GetMainWindowOfCompositeControl), meth_wxBitmapButton_GetMainWindowOfCompositeControl, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetMainWindowOfCompositeControl)}, {SIP_MLNAME_CAST(sipName_GetValidator), meth_wxBitmapButton_GetValidator, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_GetValidator)}, {SIP_MLNAME_CAST(sipName_HasTransparentBackground), meth_wxBitmapButton_HasTransparentBackground, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_HasTransparentBackground)}, {SIP_MLNAME_CAST(sipName_InformFirstDirection), SIP_MLMETH_CAST(meth_wxBitmapButton_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_InformFirstDirection)}, {SIP_MLNAME_CAST(sipName_InheritAttributes), meth_wxBitmapButton_InheritAttributes, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_InheritAttributes)}, {SIP_MLNAME_CAST(sipName_InitDialog), meth_wxBitmapButton_InitDialog, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_InitDialog)}, {SIP_MLNAME_CAST(sipName_NewCloseButton), SIP_MLMETH_CAST(meth_wxBitmapButton_NewCloseButton), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_NewCloseButton)}, {SIP_MLNAME_CAST(sipName_OnInternalIdle), meth_wxBitmapButton_OnInternalIdle, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_OnInternalIdle)}, {SIP_MLNAME_CAST(sipName_ProcessEvent), SIP_MLMETH_CAST(meth_wxBitmapButton_ProcessEvent), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_ProcessEvent)}, {SIP_MLNAME_CAST(sipName_RemoveChild), SIP_MLMETH_CAST(meth_wxBitmapButton_RemoveChild), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_RemoveChild)}, {SIP_MLNAME_CAST(sipName_SendDestroyEvent), meth_wxBitmapButton_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR}, {SIP_MLNAME_CAST(sipName_SetCanFocus), SIP_MLMETH_CAST(meth_wxBitmapButton_SetCanFocus), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_SetCanFocus)}, {SIP_MLNAME_CAST(sipName_SetValidator), SIP_MLMETH_CAST(meth_wxBitmapButton_SetValidator), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_SetValidator)}, {SIP_MLNAME_CAST(sipName_ShouldInheritColours), meth_wxBitmapButton_ShouldInheritColours, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_ShouldInheritColours)}, {SIP_MLNAME_CAST(sipName_TransferDataFromWindow), meth_wxBitmapButton_TransferDataFromWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_TransferDataFromWindow)}, {SIP_MLNAME_CAST(sipName_TransferDataToWindow), meth_wxBitmapButton_TransferDataToWindow, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_TransferDataToWindow)}, {SIP_MLNAME_CAST(sipName_TryAfter), SIP_MLMETH_CAST(meth_wxBitmapButton_TryAfter), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_TryAfter)}, {SIP_MLNAME_CAST(sipName_TryBefore), SIP_MLMETH_CAST(meth_wxBitmapButton_TryBefore), METH_VARARGS|METH_KEYWORDS, SIP_MLDOC_CAST(doc_wxBitmapButton_TryBefore)}, {SIP_MLNAME_CAST(sipName_Validate), meth_wxBitmapButton_Validate, METH_VARARGS, SIP_MLDOC_CAST(doc_wxBitmapButton_Validate)} }; PyDoc_STRVAR(doc_wxBitmapButton, "BitmapButton()\n" "BitmapButton(parent, id=ID_ANY, bitmap=NullBitmap, pos=DefaultPosition, size=DefaultSize, style=BU_AUTODRAW, validator=DefaultValidator, name=ButtonNameStr)\n" "\n" "A bitmap button is a control that contains a bitmap."); sipClassTypeDef sipTypeDef__core_wxBitmapButton = { { -1, SIP_NULLPTR, SIP_NULLPTR, SIP_TYPE_SCC|SIP_TYPE_CLASS, sipNameNr_wxBitmapButton, {SIP_NULLPTR}, SIP_NULLPTR }, { sipNameNr_BitmapButton, {0, 0, 1}, 43, methods_wxBitmapButton, 0, SIP_NULLPTR, 0, SIP_NULLPTR, {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}, }, doc_wxBitmapButton, -1, -1, supers_wxBitmapButton, SIP_NULLPTR, init_type_wxBitmapButton, SIP_NULLPTR, SIP_NULLPTR, #if PY_MAJOR_VERSION >= 3 SIP_NULLPTR, SIP_NULLPTR, #else SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, #endif dealloc_wxBitmapButton, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, release_wxBitmapButton, cast_wxBitmapButton, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR };