/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.1
 *
 *     Copyright: (c) 2020 by Total Control Software
 *     License:   wxWindows License
 */

#include "sipAPI_ribbon.h"
        #include <wx/ribbon/buttonbar.h>
        #include <wx/window.h>
        #include <wx/gdicmn.h>
        #include <wx/gdicmn.h>
        #include <wx/window.h>
        #include <wx/event.h>
        #include <wx/validate.h>
        #include <wx/bitmap.h>
        #include <wx/gdicmn.h>
        #include <wx/ribbon/bar.h>
        #include <wx/ribbon/art.h>
        #include <wx/dc.h>
        #include <wx/event.h>
        #include <wx/event.h>
    #include <wx/setup.h>
    #include <wxPython/wxpy_api.h>
        #include <wx/event.h>
        #include <wx/cursor.h>
        #include <wx/caret.h>
        #include <wx/layout.h>
        #include <wx/sizer.h>
        #include <wx/dnd.h>
        #include <wx/access.h>
        #include <wx/accel.h>
        #include <wx/menu.h>
        #include <wx/tooltip.h>
        #include <wx/event.h>
        #include <wx/event.h>
        #include <wx/event.h>
        #include <wx/palette.h>
        #include <wx/colour.h>
        #include <wx/font.h>
        #include <wx/region.h>
        #include <wx/eventfilter.h>
        #include <wx/object.h>
        #include <wx/object.h>
        #include <wx/object.h>


class sipwxRibbonButtonBar : public ::wxRibbonButtonBar
{
public:
    sipwxRibbonButtonBar();
    sipwxRibbonButtonBar(::wxWindow*, ::wxWindowID, const ::wxPoint&, const ::wxSize&, long);
    virtual ~sipwxRibbonButtonBar();

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
    void sipProtect_SendDestroyEvent();
    ::wxSize sipProtect_DoGetNextSmallerSize(::wxOrientation, ::wxSize) const;
    ::wxSize sipProtect_DoGetNextLargerSize(::wxOrientation, ::wxSize) const;
    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);
    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:
    void RemoveChild(::wxWindowBase*) SIP_OVERRIDE;
    void AddChild(::wxWindowBase*) SIP_OVERRIDE;
    bool ProcessEvent(::wxEvent&) SIP_OVERRIDE;
    bool TryBefore(::wxEvent&) SIP_OVERRIDE;
    bool TryAfter(::wxEvent&) SIP_OVERRIDE;
    bool AcceptsFocus() const SIP_OVERRIDE;
    bool AcceptsFocusFromKeyboard() const SIP_OVERRIDE;
    bool AcceptsFocusRecursively() const SIP_OVERRIDE;
    void SetCanFocus(bool) SIP_OVERRIDE;
    void EnableVisibleFocus(bool) SIP_OVERRIDE;
    bool InformFirstDirection(int, int, int) SIP_OVERRIDE;
    ::wxPoint GetClientAreaOrigin() const SIP_OVERRIDE;
    bool HasTransparentBackground() SIP_OVERRIDE;
    bool ShouldInheritColours() const SIP_OVERRIDE;
    ::wxValidator* GetValidator() SIP_OVERRIDE;
    void SetValidator(const ::wxValidator&) SIP_OVERRIDE;
    bool TransferDataFromWindow() SIP_OVERRIDE;
    bool TransferDataToWindow() SIP_OVERRIDE;
    bool Validate() SIP_OVERRIDE;
    bool Destroy() SIP_OVERRIDE;
    void InheritAttributes() SIP_OVERRIDE;
    void InitDialog() SIP_OVERRIDE;
    void OnInternalIdle() SIP_OVERRIDE;
    ::wxWindow* GetMainWindowOfCompositeControl() SIP_OVERRIDE;
    void DoEnable(bool) SIP_OVERRIDE;
    void DoGetPosition(int*, int*) const SIP_OVERRIDE;
    void DoGetSize(int*, int*) const SIP_OVERRIDE;
    void DoGetClientSize(int*, int*) const SIP_OVERRIDE;
    void DoSetSize(int, int, int, int, int) SIP_OVERRIDE;
    void DoSetClientSize(int, int) SIP_OVERRIDE;
    void DoSetSizeHints(int, int, int, int, int, int) SIP_OVERRIDE;
    void DoMoveWindow(int, int, int, int) SIP_OVERRIDE;
    void DoSetWindowVariant(::wxWindowVariant) SIP_OVERRIDE;
    ::wxBorder GetDefaultBorder() const SIP_OVERRIDE;
    ::wxBorder GetDefaultBorderForControl() const SIP_OVERRIDE;
    void DoFreeze() SIP_OVERRIDE;
    void DoThaw() SIP_OVERRIDE;
    ::wxSize DoGetBestSize() const SIP_OVERRIDE;
    ::wxSize DoGetBestClientSize() const SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipwxRibbonButtonBar(const sipwxRibbonButtonBar &);
    sipwxRibbonButtonBar &operator = (const sipwxRibbonButtonBar &);

    char sipPyMethods[39];
};

sipwxRibbonButtonBar::sipwxRibbonButtonBar(): ::wxRibbonButtonBar(), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipwxRibbonButtonBar::sipwxRibbonButtonBar(::wxWindow*parent, ::wxWindowID id, const ::wxPoint& pos, const ::wxSize& size, long style): ::wxRibbonButtonBar(parent, id, pos, size, style), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipwxRibbonButtonBar::~sipwxRibbonButtonBar()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

void sipwxRibbonButtonBar::RemoveChild(::wxWindowBase*child)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_RemoveChild);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::RemoveChild(child);
        return;
    }

    extern void sipVH__ribbon_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);

    sipVH__ribbon_0(sipGILState, 0, sipPySelf, sipMeth, child);
}

void sipwxRibbonButtonBar::AddChild(::wxWindowBase*child)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_AddChild);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::AddChild(child);
        return;
    }

    extern void sipVH__ribbon_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowBase*);

    sipVH__ribbon_0(sipGILState, 0, sipPySelf, sipMeth, child);
}

bool sipwxRibbonButtonBar::ProcessEvent(::wxEvent& event)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_ProcessEvent);

    if (!sipMeth)
        return ::wxRibbonButtonBar::ProcessEvent(event);

    extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);

    return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
}

bool sipwxRibbonButtonBar::TryBefore(::wxEvent& event)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_TryBefore);

    if (!sipMeth)
        return ::wxRibbonButtonBar::TryBefore(event);

    extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);

    return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
}

bool sipwxRibbonButtonBar::TryAfter(::wxEvent& event)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_TryAfter);

    if (!sipMeth)
        return ::wxRibbonButtonBar::TryAfter(event);

    extern bool sipVH__ribbon_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxEvent&);

    return sipVH__ribbon_1(sipGILState, 0, sipPySelf, sipMeth, event);
}

bool sipwxRibbonButtonBar::AcceptsFocus() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[5]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_AcceptsFocus);

    if (!sipMeth)
        return ::wxRibbonButtonBar::AcceptsFocus();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::AcceptsFocusFromKeyboard() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[6]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_AcceptsFocusFromKeyboard);

    if (!sipMeth)
        return ::wxRibbonButtonBar::AcceptsFocusFromKeyboard();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::AcceptsFocusRecursively() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[7]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_AcceptsFocusRecursively);

    if (!sipMeth)
        return ::wxRibbonButtonBar::AcceptsFocusRecursively();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::SetCanFocus(bool canFocus)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[8], &sipPySelf, SIP_NULLPTR, sipName_SetCanFocus);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::SetCanFocus(canFocus);
        return;
    }

    extern void sipVH__ribbon_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH__ribbon_3(sipGILState, 0, sipPySelf, sipMeth, canFocus);
}

void sipwxRibbonButtonBar::EnableVisibleFocus(bool enabled)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[9], &sipPySelf, SIP_NULLPTR, sipName_EnableVisibleFocus);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::EnableVisibleFocus(enabled);
        return;
    }

    extern void sipVH__ribbon_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH__ribbon_3(sipGILState, 0, sipPySelf, sipMeth, enabled);
}

bool sipwxRibbonButtonBar::InformFirstDirection(int direction, int size, int availableOtherDir)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[10], &sipPySelf, SIP_NULLPTR, sipName_InformFirstDirection);

    if (!sipMeth)
        return ::wxRibbonButtonBar::InformFirstDirection(direction, size, availableOtherDir);

    extern bool sipVH__ribbon_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, int, int);

    return sipVH__ribbon_4(sipGILState, 0, sipPySelf, sipMeth, direction, size, availableOtherDir);
}

::wxPoint sipwxRibbonButtonBar::GetClientAreaOrigin() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[11]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_GetClientAreaOrigin);

    if (!sipMeth)
        return ::wxRibbonButtonBar::GetClientAreaOrigin();

    extern ::wxPoint sipVH__ribbon_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_5(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::HasTransparentBackground()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[12], &sipPySelf, SIP_NULLPTR, sipName_HasTransparentBackground);

    if (!sipMeth)
        return ::wxRibbonButtonBar::HasTransparentBackground();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::ShouldInheritColours() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[13]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_ShouldInheritColours);

    if (!sipMeth)
        return ::wxRibbonButtonBar::ShouldInheritColours();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

::wxValidator* sipwxRibbonButtonBar::GetValidator()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[14], &sipPySelf, SIP_NULLPTR, sipName_GetValidator);

    if (!sipMeth)
        return ::wxRibbonButtonBar::GetValidator();

    extern ::wxValidator* sipVH__ribbon_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_6(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::SetValidator(const ::wxValidator& validator)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[15], &sipPySelf, SIP_NULLPTR, sipName_SetValidator);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::SetValidator(validator);
        return;
    }

    extern void sipVH__ribbon_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::wxValidator&);

    sipVH__ribbon_7(sipGILState, 0, sipPySelf, sipMeth, validator);
}

bool sipwxRibbonButtonBar::TransferDataFromWindow()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[16], &sipPySelf, SIP_NULLPTR, sipName_TransferDataFromWindow);

    if (!sipMeth)
        return ::wxRibbonButtonBar::TransferDataFromWindow();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::TransferDataToWindow()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[17], &sipPySelf, SIP_NULLPTR, sipName_TransferDataToWindow);

    if (!sipMeth)
        return ::wxRibbonButtonBar::TransferDataToWindow();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::Validate()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[18], &sipPySelf, SIP_NULLPTR, sipName_Validate);

    if (!sipMeth)
        return ::wxRibbonButtonBar::Validate();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

bool sipwxRibbonButtonBar::Destroy()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[19], &sipPySelf, SIP_NULLPTR, sipName_Destroy);

    if (!sipMeth)
        return ::wxRibbonButtonBar::Destroy();

    extern bool sipVH__ribbon_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_2(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::InheritAttributes()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[20], &sipPySelf, SIP_NULLPTR, sipName_InheritAttributes);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::InheritAttributes();
        return;
    }

    extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::InitDialog()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[21], &sipPySelf, SIP_NULLPTR, sipName_InitDialog);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::InitDialog();
        return;
    }

    extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::OnInternalIdle()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[22], &sipPySelf, SIP_NULLPTR, sipName_OnInternalIdle);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::OnInternalIdle();
        return;
    }

    extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
}

::wxWindow* sipwxRibbonButtonBar::GetMainWindowOfCompositeControl()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[23], &sipPySelf, SIP_NULLPTR, sipName_GetMainWindowOfCompositeControl);

    if (!sipMeth)
        return ::wxRibbonButtonBar::GetMainWindowOfCompositeControl();

    extern ::wxWindow* sipVH__ribbon_9(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_9(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::DoEnable(bool enable)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[24], &sipPySelf, SIP_NULLPTR, sipName_DoEnable);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoEnable(enable);
        return;
    }

    extern void sipVH__ribbon_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH__ribbon_3(sipGILState, 0, sipPySelf, sipMeth, enable);
}

void sipwxRibbonButtonBar::DoGetPosition(int*x, int*y) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[25]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_DoGetPosition);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoGetPosition(x, y);
        return;
    }

    extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*, int*);

    sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, x, y);
}

void sipwxRibbonButtonBar::DoGetSize(int*width, int*height) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[26]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_DoGetSize);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoGetSize(width, height);
        return;
    }

    extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*, int*);

    sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, width, height);
}

void sipwxRibbonButtonBar::DoGetClientSize(int*width, int*height) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[27]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_DoGetClientSize);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoGetClientSize(width, height);
        return;
    }

    extern void sipVH__ribbon_10(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int*, int*);

    sipVH__ribbon_10(sipGILState, 0, sipPySelf, sipMeth, width, height);
}

void sipwxRibbonButtonBar::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[28], &sipPySelf, SIP_NULLPTR, sipName_DoSetSize);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoSetSize(x, y, width, height, sizeFlags);
        return;
    }

    extern void sipVH__ribbon_11(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, int, int, int, int);

    sipVH__ribbon_11(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height, sizeFlags);
}

void sipwxRibbonButtonBar::DoSetClientSize(int width, int height)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[29], &sipPySelf, SIP_NULLPTR, sipName_DoSetClientSize);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoSetClientSize(width, height);
        return;
    }

    extern void sipVH__ribbon_12(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, int);

    sipVH__ribbon_12(sipGILState, 0, sipPySelf, sipMeth, width, height);
}

void sipwxRibbonButtonBar::DoSetSizeHints(int minW, int minH, int maxW, int maxH, int incW, int incH)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[30], &sipPySelf, SIP_NULLPTR, sipName_DoSetSizeHints);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoSetSizeHints(minW, minH, maxW, maxH, incW, incH);
        return;
    }

    extern void sipVH__ribbon_13(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, int, int, int, int, int);

    sipVH__ribbon_13(sipGILState, 0, sipPySelf, sipMeth, minW, minH, maxW, maxH, incW, incH);
}

void sipwxRibbonButtonBar::DoMoveWindow(int x, int y, int width, int height)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[31], &sipPySelf, SIP_NULLPTR, sipName_DoMoveWindow);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoMoveWindow(x, y, width, height);
        return;
    }

    extern void sipVH__ribbon_14(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int, int, int, int);

    sipVH__ribbon_14(sipGILState, 0, sipPySelf, sipMeth, x, y, width, height);
}

void sipwxRibbonButtonBar::DoSetWindowVariant(::wxWindowVariant variant)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[32], &sipPySelf, SIP_NULLPTR, sipName_DoSetWindowVariant);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoSetWindowVariant(variant);
        return;
    }

    extern void sipVH__ribbon_15(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::wxWindowVariant);

    sipVH__ribbon_15(sipGILState, 0, sipPySelf, sipMeth, variant);
}

::wxBorder sipwxRibbonButtonBar::GetDefaultBorder() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[33]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_GetDefaultBorder);

    if (!sipMeth)
        return ::wxRibbonButtonBar::GetDefaultBorder();

    extern ::wxBorder sipVH__ribbon_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_16(sipGILState, 0, sipPySelf, sipMeth);
}

::wxBorder sipwxRibbonButtonBar::GetDefaultBorderForControl() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[34]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_GetDefaultBorderForControl);

    if (!sipMeth)
        return ::wxRibbonButtonBar::GetDefaultBorderForControl();

    extern ::wxBorder sipVH__ribbon_16(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_16(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::DoFreeze()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[35], &sipPySelf, SIP_NULLPTR, sipName_DoFreeze);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoFreeze();
        return;
    }

    extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::DoThaw()
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[36], &sipPySelf, SIP_NULLPTR, sipName_DoThaw);

    if (!sipMeth)
    {
        ::wxRibbonButtonBar::DoThaw();
        return;
    }

    extern void sipVH__ribbon_8(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    sipVH__ribbon_8(sipGILState, 0, sipPySelf, sipMeth);
}

::wxSize sipwxRibbonButtonBar::DoGetBestSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[37]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_DoGetBestSize);

    if (!sipMeth)
        return ::wxRibbonButtonBar::DoGetBestSize();

    extern ::wxSize sipVH__ribbon_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_17(sipGILState, 0, sipPySelf, sipMeth);
}

::wxSize sipwxRibbonButtonBar::DoGetBestClientSize() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[38]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_DoGetBestClientSize);

    if (!sipMeth)
        return ::wxRibbonButtonBar::DoGetBestClientSize();

    extern ::wxSize sipVH__ribbon_17(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH__ribbon_17(sipGILState, 0, sipPySelf, sipMeth);
}

void sipwxRibbonButtonBar::sipProtect_SendDestroyEvent()
{
    ::wxWindow::SendDestroyEvent();
}

::wxSize sipwxRibbonButtonBar::sipProtect_DoGetNextSmallerSize(::wxOrientation direction, ::wxSize relative_to) const
{
    return ::wxRibbonControl::DoGetNextSmallerSize(direction, relative_to);
}

::wxSize sipwxRibbonButtonBar::sipProtect_DoGetNextLargerSize(::wxOrientation direction, ::wxSize relative_to) const
{
    return ::wxRibbonControl::DoGetNextLargerSize(direction, relative_to);
}

bool sipwxRibbonButtonBar::sipProtectVirt_ProcessEvent(bool sipSelfWasArg, ::wxEvent& event)
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::ProcessEvent(event) : ProcessEvent(event));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoEnable(bool sipSelfWasArg, bool enable)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoEnable(enable) : DoEnable(enable));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoGetPosition(bool sipSelfWasArg, int*x, int*y) const
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoGetPosition(x, y) : DoGetPosition(x, y));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoGetSize(bool sipSelfWasArg, int*width, int*height) const
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoGetSize(width, height) : DoGetSize(width, height));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoGetClientSize(bool sipSelfWasArg, int*width, int*height) const
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoGetClientSize(width, height) : DoGetClientSize(width, height));
}

::wxSize sipwxRibbonButtonBar::sipProtectVirt_DoGetBestSize(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::DoGetBestSize() : DoGetBestSize());
}

::wxSize sipwxRibbonButtonBar::sipProtectVirt_DoGetBestClientSize(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::DoGetBestClientSize() : DoGetBestClientSize());
}

void sipwxRibbonButtonBar::sipProtectVirt_DoSetSize(bool sipSelfWasArg, int x, int y, int width, int height, int sizeFlags)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoSetSize(x, y, width, height, sizeFlags) : DoSetSize(x, y, width, height, sizeFlags));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoSetClientSize(bool sipSelfWasArg, int width, int height)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoSetClientSize(width, height) : DoSetClientSize(width, height));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoSetSizeHints(bool sipSelfWasArg, int minW, int minH, int maxW, int maxH, int incW, int incH)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoSetSizeHints(minW, minH, maxW, maxH, incW, incH) : DoSetSizeHints(minW, minH, maxW, maxH, incW, incH));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoMoveWindow(bool sipSelfWasArg, int x, int y, int width, int height)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoMoveWindow(x, y, width, height) : DoMoveWindow(x, y, width, height));
}

void sipwxRibbonButtonBar::sipProtectVirt_DoSetWindowVariant(bool sipSelfWasArg, ::wxWindowVariant variant)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoSetWindowVariant(variant) : DoSetWindowVariant(variant));
}

::wxBorder sipwxRibbonButtonBar::sipProtectVirt_GetDefaultBorder(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::GetDefaultBorder() : GetDefaultBorder());
}

::wxBorder sipwxRibbonButtonBar::sipProtectVirt_GetDefaultBorderForControl(bool sipSelfWasArg) const
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::GetDefaultBorderForControl() : GetDefaultBorderForControl());
}

void sipwxRibbonButtonBar::sipProtectVirt_DoFreeze(bool sipSelfWasArg)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoFreeze() : DoFreeze());
}

void sipwxRibbonButtonBar::sipProtectVirt_DoThaw(bool sipSelfWasArg)
{
    (sipSelfWasArg ? ::wxRibbonButtonBar::DoThaw() : DoThaw());
}

bool sipwxRibbonButtonBar::sipProtectVirt_HasTransparentBackground(bool sipSelfWasArg)
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::HasTransparentBackground() : HasTransparentBackground());
}

bool sipwxRibbonButtonBar::sipProtectVirt_TryBefore(bool sipSelfWasArg, ::wxEvent& event)
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::TryBefore(event) : TryBefore(event));
}

bool sipwxRibbonButtonBar::sipProtectVirt_TryAfter(bool sipSelfWasArg, ::wxEvent& event)
{
    return (sipSelfWasArg ? ::wxRibbonButtonBar::TryAfter(event) : TryAfter(event));
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SendDestroyEvent, "SendDestroyEvent() -> None\n"
"\n"
"Generate wxWindowDestroyEvent for this window.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SendDestroyEvent(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SendDestroyEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SendDestroyEvent, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetNextSmallerSize, "DoGetNextSmallerSize(direction, relative_to) -> wx.Size\n"
"\n"
"Implementation of GetNextSmallerSize().");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetNextSmallerSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetNextSmallerSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxOrientation direction;
        ::wxSize* relative_to;
        int relative_toState = 0;
        const sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_direction,
            sipName_relative_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxOrientation, &direction, sipType_wxSize, &relative_to, &relative_toState))
        {
            ::wxSize*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxSize(sipCpp->sipProtect_DoGetNextSmallerSize(direction, *relative_to));
            Py_END_ALLOW_THREADS
            sipReleaseType(relative_to, sipType_wxSize, relative_toState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromNewType(sipRes, sipType_wxSize, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetNextSmallerSize, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetNextLargerSize, "DoGetNextLargerSize(direction, relative_to) -> wx.Size\n"
"\n"
"Implementation of GetNextLargerSize().");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetNextLargerSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetNextLargerSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxOrientation direction;
        ::wxSize* relative_to;
        int relative_toState = 0;
        const sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_direction,
            sipName_relative_to,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BEJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxOrientation, &direction, sipType_wxSize, &relative_to, &relative_toState))
        {
            ::wxSize*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxSize(sipCpp->sipProtect_DoGetNextLargerSize(direction, *relative_to));
            Py_END_ALLOW_THREADS
            sipReleaseType(relative_to, sipType_wxSize, relative_toState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromNewType(sipRes, sipType_wxSize, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetNextLargerSize, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_Create, "Create(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> bool\n"
"\n"
"Create a button bar in two-step button bar construction.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_Create(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_Create(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxWindow* parent;
        ::wxWindowID id = wxID_ANY;
        const ::wxPoint& posdef = wxDefaultPosition;
        const ::wxPoint* pos = &posdef;
        int posState = 0;
        const ::wxSize& sizedef = wxDefaultSize;
        const ::wxSize* size = &sizedef;
        int sizeState = 0;
        long style = 0;
        sipWrapper *sipOwner = SIP_NULLPTR;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_parent,
            sipName_id,
            sipName_pos,
            sipName_size,
            sipName_style,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJH|iJ1J1l", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxWindow, &parent, &sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Create(parent, id, *pos, *size, style);
            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);

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_Create, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AddButton, "AddButton(button_id, label, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase\n"
"AddButton(button_id, label, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap, kind=RIBBON_BUTTON_NORMAL, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Add a button to the button bar (simple version).\n"
"");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AddButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AddButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString* help_string;
        int help_stringState = 0;
        ::wxRibbonButtonKind kind = wxRIBBON_BUTTON_NORMAL;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
            sipName_kind,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1J9J1|E", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState, sipType_wxRibbonButtonKind, &kind))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->AddButton(button_id, *label, *bitmap, *help_string, kind);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxBitmap& bitmap_smalldef = wxNullBitmap;
        const ::wxBitmap* bitmap_small = &bitmap_smalldef;
        const ::wxBitmap& bitmap_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_disabled = &bitmap_disableddef;
        const ::wxBitmap& bitmap_small_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_small_disabled = &bitmap_small_disableddef;
        ::wxRibbonButtonKind kind = wxRIBBON_BUTTON_NORMAL;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_bitmap_small,
            sipName_bitmap_disabled,
            sipName_bitmap_small_disabled,
            sipName_kind,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1J9|J9J9J9EJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxBitmap, &bitmap_small, sipType_wxBitmap, &bitmap_disabled, sipType_wxBitmap, &bitmap_small_disabled, sipType_wxRibbonButtonKind, &kind, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->AddButton(button_id, *label, *bitmap, *bitmap_small, *bitmap_disabled, *bitmap_small_disabled, kind, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AddButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AddDropdownButton, "AddDropdownButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Add a dropdown button to the button bar (simple version).");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AddDropdownButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AddDropdownButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->AddDropdownButton(button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AddDropdownButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AddHybridButton, "AddHybridButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Add a hybrid button to the button bar (simple version).");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AddHybridButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AddHybridButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->AddHybridButton(button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AddHybridButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AddToggleButton, "AddToggleButton(button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Add a toggle button to the button bar (simple version).");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AddToggleButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AddToggleButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->AddToggleButton(button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AddToggleButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InsertButton, "InsertButton(pos, button_id, label, bitmap, help_string, kind=RIBBON_BUTTON_NORMAL) -> RibbonButtonBarButtonBase\n"
"InsertButton(pos, button_id, label, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap, kind=RIBBON_BUTTON_NORMAL, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Inserts a button to the button bar (simple version) at the given\n"
"position.\n"
"");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InsertButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InsertButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        size_t pos;
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString* help_string;
        int help_stringState = 0;
        ::wxRibbonButtonKind kind = wxRIBBON_BUTTON_NORMAL;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_pos,
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
            sipName_kind,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=iJ1J9J1|E", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &pos, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState, sipType_wxRibbonButtonKind, &kind))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->InsertButton(pos, button_id, *label, *bitmap, *help_string, kind);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    {
        size_t pos;
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxBitmap& bitmap_smalldef = wxNullBitmap;
        const ::wxBitmap* bitmap_small = &bitmap_smalldef;
        const ::wxBitmap& bitmap_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_disabled = &bitmap_disableddef;
        const ::wxBitmap& bitmap_small_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_small_disabled = &bitmap_small_disableddef;
        ::wxRibbonButtonKind kind = wxRIBBON_BUTTON_NORMAL;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_pos,
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_bitmap_small,
            sipName_bitmap_disabled,
            sipName_bitmap_small_disabled,
            sipName_kind,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=iJ1J9|J9J9J9EJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &pos, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxBitmap, &bitmap_small, sipType_wxBitmap, &bitmap_disabled, sipType_wxBitmap, &bitmap_small_disabled, sipType_wxRibbonButtonKind, &kind, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->InsertButton(pos, button_id, *label, *bitmap, *bitmap_small, *bitmap_disabled, *bitmap_small_disabled, kind, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InsertButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InsertDropdownButton, "InsertDropdownButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Inserts a dropdown button to the button bar (simple version) at the\n"
"given position.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InsertDropdownButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InsertDropdownButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        size_t pos;
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_pos,
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=iJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &pos, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->InsertDropdownButton(pos, button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InsertDropdownButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InsertHybridButton, "InsertHybridButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Inserts a hybrid button to the button bar (simple version) at the\n"
"given position.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InsertHybridButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InsertHybridButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        size_t pos;
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_pos,
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=iJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &pos, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->InsertHybridButton(pos, button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InsertHybridButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InsertToggleButton, "InsertToggleButton(pos, button_id, label, bitmap, help_string='') -> RibbonButtonBarButtonBase\n"
"\n"
"Inserts a toggle button to the button bar (simple version) at the\n"
"given position.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InsertToggleButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InsertToggleButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        size_t pos;
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        const ::wxBitmap* bitmap;
        const ::wxString& help_stringdef = wxEmptyString;
        const ::wxString* help_string = &help_stringdef;
        int help_stringState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_pos,
            sipName_button_id,
            sipName_label,
            sipName_bitmap,
            sipName_help_string,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=iJ1J9|J1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &pos, &button_id, sipType_wxString, &label, &labelState, sipType_wxBitmap, &bitmap, sipType_wxString, &help_string, &help_stringState))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->InsertToggleButton(pos, button_id, *label, *bitmap, *help_string);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);
            sipReleaseType(const_cast< ::wxString *>(help_string), sipType_wxString, help_stringState);

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InsertToggleButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetButtonCount, "GetButtonCount() -> int\n"
"\n"
"Returns the number of buttons in this button bar.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetButtonCount(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetButtonCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            size_t sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetButtonCount();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyLong_FromUnsignedLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetButtonCount, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetItemClientData, "SetItemClientData(item, data) -> None\n"
"\n"
"Set the client object associated with a button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetItemClientData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetItemClientData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxRibbonButtonBarButtonBase* item;
        ::wxClientData* data;
        int dataState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_item,
            sipName_data,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J2", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxRibbonButtonBarButtonBase, &item, sipType_wxClientData, &data, &dataState))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetItemClientObject(item, data);
            Py_END_ALLOW_THREADS
            sipReleaseType(data, sipType_wxClientData, dataState);

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetItemClientData, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetItemClientData, "GetItemClientData(item) -> ClientData\n"
"\n"
"Get the client object associated with a button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetItemClientData(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetItemClientData(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::wxRibbonButtonBarButtonBase* item;
        const ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_item,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxRibbonButtonBarButtonBase, &item))
        {
            ::wxClientData*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetItemClientObject(item);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxClientData, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetItemClientData, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetItem, "GetItem(n) -> RibbonButtonBarButtonBase\n"
"\n"
"Returns the N-th button of the bar.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetItem(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetItem(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        size_t n;
        const ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_n,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B=", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &n))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetItem(n);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetItem, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetItemById, "GetItemById(id) -> RibbonButtonBarButtonBase\n"
"\n"
"Returns the first button having a given id or NULL if none matches.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetItemById(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetItemById(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int id;
        const ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_id,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &id))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetItemById(id);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetItemById, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetItemId, "GetItemId(item) -> int\n"
"\n"
"Returns the id of a button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetItemId(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetItemId(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxRibbonButtonBarButtonBase* item;
        const ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_item,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxRibbonButtonBarButtonBase, &item))
        {
            int sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetItemId(item);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetItemId, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetItemRect, "GetItemRect(button_id) -> wx.Rect\n"
"\n"
"Returns the items's rect with coordinates relative to the button bar's\n"
"parent, or a default-constructed rect if the tool is not found.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetItemRect(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetItemRect(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id))
        {
            ::wxRect*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxRect(sipCpp->GetItemRect(button_id));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromNewType(sipRes, sipType_wxRect, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetItemRect, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_Realize, "Realize() -> bool\n"
"\n"
"Calculate button layouts and positions.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_Realize(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_Realize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->Realize();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_Realize, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_ClearButtons, "ClearButtons() -> None\n"
"\n"
"Delete all buttons from the button bar.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_ClearButtons(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_ClearButtons(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->ClearButtons();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_ClearButtons, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DeleteButton, "DeleteButton(button_id) -> bool\n"
"\n"
"Delete a single button from the button bar.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DeleteButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DeleteButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->DeleteButton(button_id);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DeleteButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_EnableButton, "EnableButton(button_id, enable=True) -> None\n"
"\n"
"Enable or disable a single button on the bar.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_EnableButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_EnableButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        bool enable = 1;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_enable,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|b", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, &enable))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->EnableButton(button_id, enable);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_EnableButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_ToggleButton, "ToggleButton(button_id, checked) -> None\n"
"\n"
"Set a toggle button to the checked or unchecked state.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_ToggleButton(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_ToggleButton(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        bool checked;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_checked,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bib", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, &checked))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->ToggleButton(button_id, checked);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_ToggleButton, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetButtonIcon, "SetButtonIcon(button_id, bitmap, bitmap_small=wx.NullBitmap, bitmap_disabled=wx.NullBitmap, bitmap_small_disabled=wx.NullBitmap) -> None\n"
"\n"
"Changes the bitmap of an existing button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetButtonIcon(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetButtonIcon(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxBitmap* bitmap;
        const ::wxBitmap& bitmap_smalldef = wxNullBitmap;
        const ::wxBitmap* bitmap_small = &bitmap_smalldef;
        const ::wxBitmap& bitmap_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_disabled = &bitmap_disableddef;
        const ::wxBitmap& bitmap_small_disableddef = wxNullBitmap;
        const ::wxBitmap* bitmap_small_disabled = &bitmap_small_disableddef;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_bitmap,
            sipName_bitmap_small,
            sipName_bitmap_disabled,
            sipName_bitmap_small_disabled,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ9|J9J9J9", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxBitmap, &bitmap, sipType_wxBitmap, &bitmap_small, sipType_wxBitmap, &bitmap_disabled, sipType_wxBitmap, &bitmap_small_disabled))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonIcon(button_id, *bitmap, *bitmap_small, *bitmap_disabled, *bitmap_small_disabled);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetButtonIcon, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetButtonText, "SetButtonText(button_id, label) -> None\n"
"\n"
"Changes the label text of an existing button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetButtonText(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetButtonText(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonText(button_id, *label);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetButtonText, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetButtonTextMinWidth, "SetButtonTextMinWidth(button_id, min_width_medium, min_width_large) -> None\n"
"SetButtonTextMinWidth(button_id, label) -> None\n"
"\n"
"Sets the minimum width of the button label, to indicate to the\n"
"wxRibbonArtProvider layout mechanism that this is the minimum required\n"
"size.\n"
"");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetButtonTextMinWidth(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetButtonTextMinWidth(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        int min_width_medium;
        int min_width_large;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_min_width_medium,
            sipName_min_width_large,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, &min_width_medium, &min_width_large))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonTextMinWidth(button_id, min_width_medium, min_width_large);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        int button_id;
        const ::wxString* label;
        int labelState = 0;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_label,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiJ1", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxString, &label, &labelState))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonTextMinWidth(button_id, *label);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxString *>(label), sipType_wxString, labelState);

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetButtonTextMinWidth, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetButtonMinSizeClass, "SetButtonMinSizeClass(button_id, min_size_class) -> None\n"
"\n"
"Sets the minimum size class of a ribbon button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetButtonMinSizeClass(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetButtonMinSizeClass(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        ::wxRibbonButtonBarButtonState min_size_class;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_min_size_class,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiE", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxRibbonButtonBarButtonState, &min_size_class))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonMinSizeClass(button_id, min_size_class);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetButtonMinSizeClass, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetButtonMaxSizeClass, "SetButtonMaxSizeClass(button_id, max_size_class) -> None\n"
"\n"
"Sets the maximum size class of a ribbon button.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetButtonMaxSizeClass(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetButtonMaxSizeClass(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int button_id;
        ::wxRibbonButtonBarButtonState max_size_class;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_button_id,
            sipName_max_size_class,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BiE", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &button_id, sipType_wxRibbonButtonBarButtonState, &max_size_class))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetButtonMaxSizeClass(button_id, max_size_class);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetButtonMaxSizeClass, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetActiveItem, "GetActiveItem() -> RibbonButtonBarButtonBase\n"
"\n"
"Returns the active item of the button bar or NULL if there is none.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetActiveItem(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetActiveItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetActiveItem();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetActiveItem, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetHoveredItem, "GetHoveredItem() -> RibbonButtonBarButtonBase\n"
"\n"
"Returns the hovered item of the button bar or NULL if there is none.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetHoveredItem(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetHoveredItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            ::wxRibbonButtonBarButtonBase*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetHoveredItem();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxRibbonButtonBarButtonBase, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetHoveredItem, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetShowToolTipsForDisabled, "SetShowToolTipsForDisabled(show) -> None\n"
"\n"
"Indicates whether tooltips are shown for disabled buttons.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetShowToolTipsForDisabled(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetShowToolTipsForDisabled(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool show;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_show,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &show))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->SetShowToolTipsForDisabled(show);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetShowToolTipsForDisabled, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetShowToolTipsForDisabled, "GetShowToolTipsForDisabled() -> bool\n"
"\n"
"Sets whether tooltips should be shown for disabled buttons or not.");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetShowToolTipsForDisabled(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetShowToolTipsForDisabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = sipCpp->GetShowToolTipsForDisabled();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetShowToolTipsForDisabled, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetClientAreaOrigin, "GetClientAreaOrigin(self) -> Point");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetClientAreaOrigin(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetClientAreaOrigin(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            ::wxPoint*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxPoint((sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::GetClientAreaOrigin() : sipCpp->GetClientAreaOrigin()));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromNewType(sipRes, sipType_wxPoint, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetClientAreaOrigin, doc_wxRibbonButtonBar_GetClientAreaOrigin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_Validate, "Validate(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_Validate(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_Validate(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::Validate() : sipCpp->Validate());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_Validate, doc_wxRibbonButtonBar_Validate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_TransferDataToWindow, "TransferDataToWindow(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_TransferDataToWindow(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_TransferDataToWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::TransferDataToWindow() : sipCpp->TransferDataToWindow());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_TransferDataToWindow, doc_wxRibbonButtonBar_TransferDataToWindow);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_TransferDataFromWindow, "TransferDataFromWindow(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_TransferDataFromWindow(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_TransferDataFromWindow(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::TransferDataFromWindow() : sipCpp->TransferDataFromWindow());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_TransferDataFromWindow, doc_wxRibbonButtonBar_TransferDataFromWindow);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InitDialog, "InitDialog(self)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InitDialog(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InitDialog(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::InitDialog() : sipCpp->InitDialog());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InitDialog, doc_wxRibbonButtonBar_InitDialog);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AcceptsFocus, "AcceptsFocus(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AcceptsFocus(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AcceptsFocus(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::AcceptsFocus() : sipCpp->AcceptsFocus());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AcceptsFocus, doc_wxRibbonButtonBar_AcceptsFocus);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AcceptsFocusRecursively, "AcceptsFocusRecursively(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AcceptsFocusRecursively(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AcceptsFocusRecursively(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::AcceptsFocusRecursively() : sipCpp->AcceptsFocusRecursively());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AcceptsFocusRecursively, doc_wxRibbonButtonBar_AcceptsFocusRecursively);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AcceptsFocusFromKeyboard, "AcceptsFocusFromKeyboard(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AcceptsFocusFromKeyboard(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AcceptsFocusFromKeyboard(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::AcceptsFocusFromKeyboard() : sipCpp->AcceptsFocusFromKeyboard());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AcceptsFocusFromKeyboard, doc_wxRibbonButtonBar_AcceptsFocusFromKeyboard);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_AddChild, "AddChild(self, child: WindowBase|None)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_AddChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_AddChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxWindowBase* child;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_child,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxWindowBase, &child))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::AddChild(child) : sipCpp->AddChild(child));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_AddChild, doc_wxRibbonButtonBar_AddChild);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_RemoveChild, "RemoveChild(self, child: WindowBase|None)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_RemoveChild(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_RemoveChild(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxWindowBase* child;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_child,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxWindowBase, &child))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::RemoveChild(child) : sipCpp->RemoveChild(child));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_RemoveChild, doc_wxRibbonButtonBar_RemoveChild);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InheritAttributes, "InheritAttributes(self)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InheritAttributes(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InheritAttributes(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::InheritAttributes() : sipCpp->InheritAttributes());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InheritAttributes, doc_wxRibbonButtonBar_InheritAttributes);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_ShouldInheritColours, "ShouldInheritColours(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_ShouldInheritColours(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_ShouldInheritColours(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::ShouldInheritColours() : sipCpp->ShouldInheritColours());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_ShouldInheritColours, doc_wxRibbonButtonBar_ShouldInheritColours);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_OnInternalIdle, "OnInternalIdle(self)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_OnInternalIdle(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_OnInternalIdle(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::OnInternalIdle() : sipCpp->OnInternalIdle());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_OnInternalIdle, doc_wxRibbonButtonBar_OnInternalIdle);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetMainWindowOfCompositeControl, "GetMainWindowOfCompositeControl(self) -> Window|None");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetMainWindowOfCompositeControl(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetMainWindowOfCompositeControl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            ::wxWindow*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::GetMainWindowOfCompositeControl() : sipCpp->GetMainWindowOfCompositeControl());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxWindow, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetMainWindowOfCompositeControl, doc_wxRibbonButtonBar_GetMainWindowOfCompositeControl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_InformFirstDirection, "InformFirstDirection(self, direction: int, size: int, availableOtherDir: int) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_InformFirstDirection(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_InformFirstDirection(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int direction;
        int size;
        int availableOtherDir;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_direction,
            sipName_size,
            sipName_availableOtherDir,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biii", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &direction, &size, &availableOtherDir))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::InformFirstDirection(direction, size, availableOtherDir) : sipCpp->InformFirstDirection(direction, size, availableOtherDir));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_InformFirstDirection, doc_wxRibbonButtonBar_InformFirstDirection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetCanFocus, "SetCanFocus(self, canFocus: bool)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetCanFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetCanFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        bool canFocus;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_canFocus,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &canFocus))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::SetCanFocus(canFocus) : sipCpp->SetCanFocus(canFocus));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetCanFocus, doc_wxRibbonButtonBar_SetCanFocus);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_Destroy, "Destroy(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_Destroy(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_Destroy(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            bool sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::Destroy() : sipCpp->Destroy());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_Destroy, doc_wxRibbonButtonBar_Destroy);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_SetValidator, "SetValidator(self, validator: Validator)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_SetValidator(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_SetValidator(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::wxValidator* validator;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_validator,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, sipType_wxValidator, &validator))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::SetValidator(*validator) : sipCpp->SetValidator(*validator));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_SetValidator, doc_wxRibbonButtonBar_SetValidator);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetValidator, "GetValidator(self) -> Validator|None");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetValidator(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetValidator(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp))
        {
            ::wxValidator*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::GetValidator() : sipCpp->GetValidator());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromType(sipRes, sipType_wxValidator, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetValidator, doc_wxRibbonButtonBar_GetValidator);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_EnableVisibleFocus, "EnableVisibleFocus(self, enabled: bool)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_EnableVisibleFocus(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_EnableVisibleFocus(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        bool enabled;
        ::wxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_enabled,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonButtonBar, &sipCpp, &enabled))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp->::wxRibbonButtonBar::EnableVisibleFocus(enabled) : sipCpp->EnableVisibleFocus(enabled));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_EnableVisibleFocus, doc_wxRibbonButtonBar_EnableVisibleFocus);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_ProcessEvent, "ProcessEvent(self, event: Event) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_ProcessEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_ProcessEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxEvent* event;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_event,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_ProcessEvent, doc_wxRibbonButtonBar_ProcessEvent);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoEnable, "DoEnable(self, enable: bool)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoEnable(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoEnable(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        bool enable;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_enable,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bb", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoEnable, doc_wxRibbonButtonBar_DoEnable);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetPosition, "DoGetPosition(self) -> (int, int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetPosition(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetPosition(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int x;
        int y;
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetPosition, doc_wxRibbonButtonBar_DoGetPosition);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetSize, "DoGetSize(self) -> (int, int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int width;
        int height;
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetSize, doc_wxRibbonButtonBar_DoGetSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetClientSize, "DoGetClientSize(self) -> (int, int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetClientSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int width;
        int height;
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, SIP_NULLPTR, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetClientSize, doc_wxRibbonButtonBar_DoGetClientSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetBestSize, "DoGetBestSize(self) -> Size");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetBestSize(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetBestSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetBestSize, doc_wxRibbonButtonBar_DoGetBestSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoGetBestClientSize, "DoGetBestClientSize(self) -> Size");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoGetBestClientSize(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoGetBestClientSize(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoGetBestClientSize, doc_wxRibbonButtonBar_DoGetBestClientSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoSetSize, "DoSetSize(self, x: int, y: int, width: int, height: int, sizeFlags: int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoSetSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_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;
        sipwxRibbonButtonBar *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_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoSetSize, doc_wxRibbonButtonBar_DoSetSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoSetClientSize, "DoSetClientSize(self, width: int, height: int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoSetClientSize(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoSetClientSize(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        int width;
        int height;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_width,
            sipName_height,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoSetClientSize, doc_wxRibbonButtonBar_DoSetClientSize);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoSetSizeHints, "DoSetSizeHints(self, minW: int, minH: int, maxW: int, maxH: int, incW: int, incH: int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoSetSizeHints(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_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;
        sipwxRibbonButtonBar *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_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoSetSizeHints, doc_wxRibbonButtonBar_DoSetSizeHints);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoMoveWindow, "DoMoveWindow(self, x: int, y: int, width: int, height: int)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoMoveWindow(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_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;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_x,
            sipName_y,
            sipName_width,
            sipName_height,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Biiii", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoMoveWindow, doc_wxRibbonButtonBar_DoMoveWindow);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoSetWindowVariant, "DoSetWindowVariant(self, variant: WindowVariant)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoSetWindowVariant(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoSetWindowVariant(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxWindowVariant variant;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_variant,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BE", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoSetWindowVariant, doc_wxRibbonButtonBar_DoSetWindowVariant);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetDefaultBorder, "GetDefaultBorder(self) -> Border");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetDefaultBorder(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetDefaultBorder(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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<int>(sipRes), sipType_wxBorder);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetDefaultBorder, doc_wxRibbonButtonBar_GetDefaultBorder);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetDefaultBorderForControl, "GetDefaultBorderForControl(self) -> Border");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetDefaultBorderForControl(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_GetDefaultBorderForControl(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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<int>(sipRes), sipType_wxBorder);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetDefaultBorderForControl, doc_wxRibbonButtonBar_GetDefaultBorderForControl);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoFreeze, "DoFreeze(self)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoFreeze(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoFreeze(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoFreeze, doc_wxRibbonButtonBar_DoFreeze);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_DoThaw, "DoThaw(self)");

extern "C" {static PyObject *meth_wxRibbonButtonBar_DoThaw(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_DoThaw(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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;
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_DoThaw, doc_wxRibbonButtonBar_DoThaw);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_HasTransparentBackground, "HasTransparentBackground(self) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_HasTransparentBackground(PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_HasTransparentBackground(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        sipwxRibbonButtonBar *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_HasTransparentBackground, doc_wxRibbonButtonBar_HasTransparentBackground);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_TryBefore, "TryBefore(self, event: Event) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_TryBefore(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_TryBefore(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxEvent* event;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_event,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_TryBefore, doc_wxRibbonButtonBar_TryBefore);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_TryAfter, "TryAfter(self, event: Event) -> bool");

extern "C" {static PyObject *meth_wxRibbonButtonBar_TryAfter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_TryAfter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        ::wxEvent* event;
        sipwxRibbonButtonBar *sipCpp;

        static const char *sipKwdList[] = {
            sipName_event,
        };

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ9", &sipSelf, sipType_wxRibbonButtonBar, &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);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_TryAfter, doc_wxRibbonButtonBar_TryAfter);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxRibbonButtonBar_GetClassDefaultAttributes, "GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes");

extern "C" {static PyObject *meth_wxRibbonButtonBar_GetClassDefaultAttributes(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_wxRibbonButtonBar_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(::wxRibbonButtonBar::GetClassDefaultAttributes(variant));
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return sipConvertFromNewType(sipRes, sipType_wxVisualAttributes, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_RibbonButtonBar, sipName_GetClassDefaultAttributes, SIP_NULLPTR);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_wxRibbonButtonBar(void *, const sipTypeDef *);}
static void *cast_wxRibbonButtonBar(void *sipCppV, const sipTypeDef *targetType)
{
    ::wxRibbonButtonBar *sipCpp = reinterpret_cast< ::wxRibbonButtonBar *>(sipCppV);

    if (targetType == sipType_wxRibbonButtonBar)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_wxRibbonControl)->ctd_cast(static_cast< ::wxRibbonControl *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_wxRibbonButtonBar(void *, int);}
static void release_wxRibbonButtonBar(void *sipCppV, int sipState)
{
    Py_BEGIN_ALLOW_THREADS

    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipwxRibbonButtonBar *>(sipCppV);
    else
        delete reinterpret_cast< ::wxRibbonButtonBar *>(sipCppV);

    Py_END_ALLOW_THREADS
}


extern "C" {static void *array_wxRibbonButtonBar(Py_ssize_t);}
static void *array_wxRibbonButtonBar(Py_ssize_t sipNrElem)
{
    return new ::wxRibbonButtonBar[sipNrElem];
}


extern "C" {static void array_delete_wxRibbonButtonBar(void *);}
static void array_delete_wxRibbonButtonBar(void *sipCpp)
{
    delete[] reinterpret_cast< ::wxRibbonButtonBar *>(sipCpp);
}


extern "C" {static void dealloc_wxRibbonButtonBar(sipSimpleWrapper *);}
static void dealloc_wxRibbonButtonBar(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipwxRibbonButtonBar *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_wxRibbonButtonBar(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_wxRibbonButtonBar(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_wxRibbonButtonBar(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipwxRibbonButtonBar *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
        if (!wxPyCheckForApp()) return NULL;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipwxRibbonButtonBar();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
            {
                delete sipCpp;
                return SIP_NULLPTR;
            }

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        ::wxWindow* parent;
        ::wxWindowID id = wxID_ANY;
        const ::wxPoint& posdef = wxDefaultPosition;
        const ::wxPoint* pos = &posdef;
        int posState = 0;
        const ::wxSize& sizedef = wxDefaultSize;
        const ::wxSize* size = &sizedef;
        int sizeState = 0;
        long style = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
            sipName_id,
            sipName_pos,
            sipName_size,
            sipName_style,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "JH|iJ1J1l", sipType_wxWindow, &parent, sipOwner, &id, sipType_wxPoint, &pos, &posState, sipType_wxSize, &size, &sizeState, &style))
        {
        if (!wxPyCheckForApp()) return NULL;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp = new sipwxRibbonButtonBar(parent, id, *pos, *size, style);
            Py_END_ALLOW_THREADS
            sipReleaseType(const_cast< ::wxPoint *>(pos), sipType_wxPoint, posState);
            sipReleaseType(const_cast< ::wxSize *>(size), sipType_wxSize, sizeState);

            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_wxRibbonButtonBar[] = {{11, 255, 1}};


static PyMethodDef methods_wxRibbonButtonBar[] = {
    {sipName_AcceptsFocus, meth_wxRibbonButtonBar_AcceptsFocus, METH_VARARGS, doc_wxRibbonButtonBar_AcceptsFocus},
    {sipName_AcceptsFocusFromKeyboard, meth_wxRibbonButtonBar_AcceptsFocusFromKeyboard, METH_VARARGS, doc_wxRibbonButtonBar_AcceptsFocusFromKeyboard},
    {sipName_AcceptsFocusRecursively, meth_wxRibbonButtonBar_AcceptsFocusRecursively, METH_VARARGS, doc_wxRibbonButtonBar_AcceptsFocusRecursively},
    {sipName_AddButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_AddButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_AddButton},
    {sipName_AddChild, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_AddChild), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_AddChild},
    {sipName_AddDropdownButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_AddDropdownButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_AddDropdownButton},
    {sipName_AddHybridButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_AddHybridButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_AddHybridButton},
    {sipName_AddToggleButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_AddToggleButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_AddToggleButton},
    {sipName_ClearButtons, meth_wxRibbonButtonBar_ClearButtons, METH_VARARGS, doc_wxRibbonButtonBar_ClearButtons},
    {sipName_Create, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_Create), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_Create},
    {sipName_DeleteButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DeleteButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DeleteButton},
    {sipName_Destroy, meth_wxRibbonButtonBar_Destroy, METH_VARARGS, doc_wxRibbonButtonBar_Destroy},
    {sipName_DoEnable, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoEnable), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoEnable},
    {sipName_DoFreeze, meth_wxRibbonButtonBar_DoFreeze, METH_VARARGS, doc_wxRibbonButtonBar_DoFreeze},
    {sipName_DoGetBestClientSize, meth_wxRibbonButtonBar_DoGetBestClientSize, METH_VARARGS, doc_wxRibbonButtonBar_DoGetBestClientSize},
    {sipName_DoGetBestSize, meth_wxRibbonButtonBar_DoGetBestSize, METH_VARARGS, doc_wxRibbonButtonBar_DoGetBestSize},
    {sipName_DoGetClientSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoGetClientSize), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoGetClientSize},
    {sipName_DoGetNextLargerSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoGetNextLargerSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
    {sipName_DoGetNextSmallerSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoGetNextSmallerSize), METH_VARARGS|METH_KEYWORDS, SIP_NULLPTR},
    {sipName_DoGetPosition, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoGetPosition), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoGetPosition},
    {sipName_DoGetSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoGetSize), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoGetSize},
    {sipName_DoMoveWindow, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoMoveWindow), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoMoveWindow},
    {sipName_DoSetClientSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoSetClientSize), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoSetClientSize},
    {sipName_DoSetSize, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoSetSize), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoSetSize},
    {sipName_DoSetSizeHints, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoSetSizeHints), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoSetSizeHints},
    {sipName_DoSetWindowVariant, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_DoSetWindowVariant), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_DoSetWindowVariant},
    {sipName_DoThaw, meth_wxRibbonButtonBar_DoThaw, METH_VARARGS, doc_wxRibbonButtonBar_DoThaw},
    {sipName_EnableButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_EnableButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_EnableButton},
    {sipName_EnableVisibleFocus, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_EnableVisibleFocus), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_EnableVisibleFocus},
    {sipName_GetActiveItem, meth_wxRibbonButtonBar_GetActiveItem, METH_VARARGS, doc_wxRibbonButtonBar_GetActiveItem},
    {sipName_GetButtonCount, meth_wxRibbonButtonBar_GetButtonCount, METH_VARARGS, doc_wxRibbonButtonBar_GetButtonCount},
    {sipName_GetClassDefaultAttributes, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetClassDefaultAttributes), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetClassDefaultAttributes},
    {sipName_GetClientAreaOrigin, meth_wxRibbonButtonBar_GetClientAreaOrigin, METH_VARARGS, doc_wxRibbonButtonBar_GetClientAreaOrigin},
    {sipName_GetDefaultBorder, meth_wxRibbonButtonBar_GetDefaultBorder, METH_VARARGS, doc_wxRibbonButtonBar_GetDefaultBorder},
    {sipName_GetDefaultBorderForControl, meth_wxRibbonButtonBar_GetDefaultBorderForControl, METH_VARARGS, doc_wxRibbonButtonBar_GetDefaultBorderForControl},
    {sipName_GetHoveredItem, meth_wxRibbonButtonBar_GetHoveredItem, METH_VARARGS, doc_wxRibbonButtonBar_GetHoveredItem},
    {sipName_GetItem, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetItem), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetItem},
    {sipName_GetItemById, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetItemById), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetItemById},
    {sipName_GetItemClientData, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetItemClientData), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetItemClientData},
    {sipName_GetItemId, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetItemId), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetItemId},
    {sipName_GetItemRect, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_GetItemRect), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_GetItemRect},
    {sipName_GetMainWindowOfCompositeControl, meth_wxRibbonButtonBar_GetMainWindowOfCompositeControl, METH_VARARGS, doc_wxRibbonButtonBar_GetMainWindowOfCompositeControl},
    {sipName_GetShowToolTipsForDisabled, meth_wxRibbonButtonBar_GetShowToolTipsForDisabled, METH_VARARGS, doc_wxRibbonButtonBar_GetShowToolTipsForDisabled},
    {sipName_GetValidator, meth_wxRibbonButtonBar_GetValidator, METH_VARARGS, doc_wxRibbonButtonBar_GetValidator},
    {sipName_HasTransparentBackground, meth_wxRibbonButtonBar_HasTransparentBackground, METH_VARARGS, doc_wxRibbonButtonBar_HasTransparentBackground},
    {sipName_InformFirstDirection, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_InformFirstDirection), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_InformFirstDirection},
    {sipName_InheritAttributes, meth_wxRibbonButtonBar_InheritAttributes, METH_VARARGS, doc_wxRibbonButtonBar_InheritAttributes},
    {sipName_InitDialog, meth_wxRibbonButtonBar_InitDialog, METH_VARARGS, doc_wxRibbonButtonBar_InitDialog},
    {sipName_InsertButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_InsertButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_InsertButton},
    {sipName_InsertDropdownButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_InsertDropdownButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_InsertDropdownButton},
    {sipName_InsertHybridButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_InsertHybridButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_InsertHybridButton},
    {sipName_InsertToggleButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_InsertToggleButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_InsertToggleButton},
    {sipName_OnInternalIdle, meth_wxRibbonButtonBar_OnInternalIdle, METH_VARARGS, doc_wxRibbonButtonBar_OnInternalIdle},
    {sipName_ProcessEvent, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_ProcessEvent), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_ProcessEvent},
    {sipName_Realize, meth_wxRibbonButtonBar_Realize, METH_VARARGS, doc_wxRibbonButtonBar_Realize},
    {sipName_RemoveChild, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_RemoveChild), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_RemoveChild},
    {sipName_SendDestroyEvent, meth_wxRibbonButtonBar_SendDestroyEvent, METH_VARARGS, SIP_NULLPTR},
    {sipName_SetButtonIcon, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetButtonIcon), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetButtonIcon},
    {sipName_SetButtonMaxSizeClass, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetButtonMaxSizeClass), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetButtonMaxSizeClass},
    {sipName_SetButtonMinSizeClass, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetButtonMinSizeClass), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetButtonMinSizeClass},
    {sipName_SetButtonText, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetButtonText), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetButtonText},
    {sipName_SetButtonTextMinWidth, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetButtonTextMinWidth), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetButtonTextMinWidth},
    {sipName_SetCanFocus, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetCanFocus), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetCanFocus},
    {sipName_SetItemClientData, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetItemClientData), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetItemClientData},
    {sipName_SetShowToolTipsForDisabled, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetShowToolTipsForDisabled), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetShowToolTipsForDisabled},
    {sipName_SetValidator, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_SetValidator), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_SetValidator},
    {sipName_ShouldInheritColours, meth_wxRibbonButtonBar_ShouldInheritColours, METH_VARARGS, doc_wxRibbonButtonBar_ShouldInheritColours},
    {sipName_ToggleButton, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_ToggleButton), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_ToggleButton},
    {sipName_TransferDataFromWindow, meth_wxRibbonButtonBar_TransferDataFromWindow, METH_VARARGS, doc_wxRibbonButtonBar_TransferDataFromWindow},
    {sipName_TransferDataToWindow, meth_wxRibbonButtonBar_TransferDataToWindow, METH_VARARGS, doc_wxRibbonButtonBar_TransferDataToWindow},
    {sipName_TryAfter, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_TryAfter), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_TryAfter},
    {sipName_TryBefore, SIP_MLMETH_CAST(meth_wxRibbonButtonBar_TryBefore), METH_VARARGS|METH_KEYWORDS, doc_wxRibbonButtonBar_TryBefore},
    {sipName_Validate, meth_wxRibbonButtonBar_Validate, METH_VARARGS, doc_wxRibbonButtonBar_Validate}
};

sipVariableDef variables_wxRibbonButtonBar[] = {
    {PropertyVariable, sipName_ShowToolTipsForDisabled, &methods_wxRibbonButtonBar[42], &methods_wxRibbonButtonBar[64], SIP_NULLPTR, SIP_NULLPTR},
    {PropertyVariable, sipName_HoveredItem, &methods_wxRibbonButtonBar[35], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    {PropertyVariable, sipName_ButtonCount, &methods_wxRibbonButtonBar[30], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    {PropertyVariable, sipName_ActiveItem, &methods_wxRibbonButtonBar[29], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_wxRibbonButtonBar, "RibbonButtonBar() -> None\n"
"RibbonButtonBar(parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0) -> None\n"
"\n"
"A ribbon button bar is similar to a traditional toolbar.");


sipClassTypeDef sipTypeDef__ribbon_wxRibbonButtonBar = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_CLASS,
        sipNameNr_wxRibbonButtonBar,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_RibbonButtonBar,
        {0, 0, 1},
        73, methods_wxRibbonButtonBar,
        0, SIP_NULLPTR,
        4, variables_wxRibbonButtonBar,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_wxRibbonButtonBar,
    -1,
    -1,
    supers_wxRibbonButtonBar,
    SIP_NULLPTR,
    init_type_wxRibbonButtonBar,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_wxRibbonButtonBar,
    SIP_NULLPTR,
    array_wxRibbonButtonBar,
    SIP_NULLPTR,
    release_wxRibbonButtonBar,
    cast_wxRibbonButtonBar,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_wxRibbonButtonBar,
    sizeof (::wxRibbonButtonBar),
};
