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

#include "sipAPI_core.h"
        #include <wx/sizer.h>



PyDoc_STRVAR(doc_wxSizerFlags_Align, "Align(alignment) -> SizerFlags\n"
"\n"
"Sets the alignment of this wxSizerFlags to align.");

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

    {
        int alignment;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxSizerFlags, &sipCpp, &alignment))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Align(alignment);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Align, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Border, "Border(direction, borderinpixels) -> SizerFlags\n"
"Border(direction=ALL) -> SizerFlags\n"
"\n"
"Sets the wxSizerFlags to have a border of a number of pixels specified\n"
"by borderinpixels with the directions specified by direction.\n"
"");

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

    {
        int direction;
        int borderinpixels;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bii", &sipSelf, sipType_wxSizerFlags, &sipCpp, &direction, &borderinpixels))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Border(direction, borderinpixels);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    {
        int direction = wxALL;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxSizerFlags, &sipCpp, &direction))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Border(direction);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Border, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Bottom, "Bottom() -> SizerFlags\n"
"\n"
"Aligns the object to the bottom, similar for Align(wxALIGN_BOTTOM).");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Bottom();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Bottom, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Center, "Center() -> SizerFlags\n"
"\n"
"Sets the object of the wxSizerFlags to center itself in the area it is\n"
"given.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Center();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Center, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Centre, "Centre() -> SizerFlags\n"
"\n"
"Center() for people with the other dialect of English.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Centre();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Centre, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_CenterHorizontal, "CenterHorizontal() -> SizerFlags\n"
"\n"
"Same as CentreHorizontal().");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->CenterHorizontal();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_CenterHorizontal, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_CenterVertical, "CenterVertical() -> SizerFlags\n"
"\n"
"Same as CentreVertical().");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->CenterVertical();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_CenterVertical, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_CentreHorizontal, "CentreHorizontal() -> SizerFlags\n"
"\n"
"Center an item only in horizontal direction.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->CentreHorizontal();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_CentreHorizontal, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_CentreVertical, "CentreVertical() -> SizerFlags\n"
"\n"
"Center an item only in vertical direction.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->CentreVertical();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_CentreVertical, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_DoubleBorder, "DoubleBorder(direction=ALL) -> SizerFlags\n"
"\n"
"Sets the border in the given direction having twice the default border\n"
"size.");

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

    {
        int direction = wxALL;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxSizerFlags, &sipCpp, &direction))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->DoubleBorder(direction);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_DoubleBorder, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_HorzBorder, "HorzBorder() -> SizerFlags\n"
"\n"
"Sets the border in left and right directions having the default border\n"
"size.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->HorzBorder();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_HorzBorder, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_DoubleHorzBorder, "DoubleHorzBorder() -> SizerFlags\n"
"\n"
"Sets the border in left and right directions having twice the default\n"
"border size.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->DoubleHorzBorder();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_DoubleHorzBorder, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Expand, "Expand() -> SizerFlags\n"
"\n"
"Sets the object of the wxSizerFlags to expand to fill as much area as\n"
"it can.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Expand();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Expand, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_FixedMinSize, "FixedMinSize() -> SizerFlags\n"
"\n"
"Set the wxFIXED_MINSIZE flag which indicates that the initial size of\n"
"the window should be also set as its minimal size.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->FixedMinSize();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_FixedMinSize, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_ReserveSpaceEvenIfHidden, "ReserveSpaceEvenIfHidden() -> SizerFlags\n"
"\n"
"Set the wxRESERVE_SPACE_EVEN_IF_HIDDEN flag.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->ReserveSpaceEvenIfHidden();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_ReserveSpaceEvenIfHidden, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Left, "Left() -> SizerFlags\n"
"\n"
"Aligns the object to the left, similar for Align(wxALIGN_LEFT).");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Left();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Left, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Proportion, "Proportion(proportion) -> SizerFlags\n"
"\n"
"Sets the proportion of this wxSizerFlags to proportion.");

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

    {
        int proportion;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi", &sipSelf, sipType_wxSizerFlags, &sipCpp, &proportion))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Proportion(proportion);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Proportion, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Right, "Right() -> SizerFlags\n"
"\n"
"Aligns the object to the right, similar for Align(wxALIGN_RIGHT).");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Right();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Right, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Shaped, "Shaped() -> SizerFlags\n"
"\n"
"Sets the wxSHAPED flag which indicates that the elements should always\n"
"keep the fixed width to height ratio equal to its original value.");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Shaped();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Shaped, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_Top, "Top() -> SizerFlags\n"
"\n"
"Aligns the object to the top, similar for Align(wxALIGN_TOP).");

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

    {
        ::wxSizerFlags *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->Top();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_Top, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_TripleBorder, "TripleBorder(direction=ALL) -> SizerFlags\n"
"\n"
"Sets the border in the given direction having thrice the default\n"
"border size.");

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

    {
        int direction = wxALL;
        ::wxSizerFlags *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|i", &sipSelf, sipType_wxSizerFlags, &sipCpp, &direction))
        {
            ::wxSizerFlags*sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = &sipCpp->TripleBorder(direction);
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_TripleBorder, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_DisableConsistencyChecks, "DisableConsistencyChecks() -> None\n"
"\n"
"Globally disable checks for sizer flag consistency in debug builds.");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            ::wxSizerFlags::DisableConsistencyChecks();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_DisableConsistencyChecks, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_GetDefaultBorder, "GetDefaultBorder() -> int\n"
"\n"
"Returns the border used by default in Border() method.");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            int sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = ::wxSizerFlags::GetDefaultBorder();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_GetDefaultBorder, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxSizerFlags_GetDefaultBorderFractional, "GetDefaultBorderFractional() -> float\n"
"\n"
"Returns the border used by default, with fractional precision.");

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

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
            float sipRes;

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = ::wxSizerFlags::GetDefaultBorderFractional();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            return PyFloat_FromDouble((double)sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_SizerFlags, sipName_GetDefaultBorderFractional, SIP_NULLPTR);

    return SIP_NULLPTR;
}


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

    delete reinterpret_cast< ::wxSizerFlags *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


extern "C" {static void assign_wxSizerFlags(void *, Py_ssize_t, void *);}
static void assign_wxSizerFlags(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::wxSizerFlags *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxSizerFlags *>(sipSrc);
}


extern "C" {static void *copy_wxSizerFlags(const void *, Py_ssize_t);}
static void *copy_wxSizerFlags(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new ::wxSizerFlags(reinterpret_cast<const ::wxSizerFlags *>(sipSrc)[sipSrcIdx]);
}


extern "C" {static void dealloc_wxSizerFlags(sipSimpleWrapper *);}
static void dealloc_wxSizerFlags(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_wxSizerFlags(sipGetAddress(sipSelf), 0);
    }
}


extern "C" {static void *init_type_wxSizerFlags(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_wxSizerFlags(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    ::wxSizerFlags *sipCpp = SIP_NULLPTR;

    {
        int proportion = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|i", &proportion))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp = new ::wxSizerFlags(proportion);
            Py_END_ALLOW_THREADS

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

            return sipCpp;
        }
    }

    {
        const ::wxSizerFlags* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxSizerFlags, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new ::wxSizerFlags(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_wxSizerFlags[] = {
    {sipName_Align, SIP_MLMETH_CAST(meth_wxSizerFlags_Align), METH_VARARGS|METH_KEYWORDS, doc_wxSizerFlags_Align},
    {sipName_Border, SIP_MLMETH_CAST(meth_wxSizerFlags_Border), METH_VARARGS|METH_KEYWORDS, doc_wxSizerFlags_Border},
    {sipName_Bottom, meth_wxSizerFlags_Bottom, METH_VARARGS, doc_wxSizerFlags_Bottom},
    {sipName_Center, meth_wxSizerFlags_Center, METH_VARARGS, doc_wxSizerFlags_Center},
    {sipName_CenterHorizontal, meth_wxSizerFlags_CenterHorizontal, METH_VARARGS, doc_wxSizerFlags_CenterHorizontal},
    {sipName_CenterVertical, meth_wxSizerFlags_CenterVertical, METH_VARARGS, doc_wxSizerFlags_CenterVertical},
    {sipName_Centre, meth_wxSizerFlags_Centre, METH_VARARGS, doc_wxSizerFlags_Centre},
    {sipName_CentreHorizontal, meth_wxSizerFlags_CentreHorizontal, METH_VARARGS, doc_wxSizerFlags_CentreHorizontal},
    {sipName_CentreVertical, meth_wxSizerFlags_CentreVertical, METH_VARARGS, doc_wxSizerFlags_CentreVertical},
    {sipName_DisableConsistencyChecks, meth_wxSizerFlags_DisableConsistencyChecks, METH_VARARGS, doc_wxSizerFlags_DisableConsistencyChecks},
    {sipName_DoubleBorder, SIP_MLMETH_CAST(meth_wxSizerFlags_DoubleBorder), METH_VARARGS|METH_KEYWORDS, doc_wxSizerFlags_DoubleBorder},
    {sipName_DoubleHorzBorder, meth_wxSizerFlags_DoubleHorzBorder, METH_VARARGS, doc_wxSizerFlags_DoubleHorzBorder},
    {sipName_Expand, meth_wxSizerFlags_Expand, METH_VARARGS, doc_wxSizerFlags_Expand},
    {sipName_FixedMinSize, meth_wxSizerFlags_FixedMinSize, METH_VARARGS, doc_wxSizerFlags_FixedMinSize},
    {sipName_GetDefaultBorder, meth_wxSizerFlags_GetDefaultBorder, METH_VARARGS, doc_wxSizerFlags_GetDefaultBorder},
    {sipName_GetDefaultBorderFractional, meth_wxSizerFlags_GetDefaultBorderFractional, METH_VARARGS, doc_wxSizerFlags_GetDefaultBorderFractional},
    {sipName_HorzBorder, meth_wxSizerFlags_HorzBorder, METH_VARARGS, doc_wxSizerFlags_HorzBorder},
    {sipName_Left, meth_wxSizerFlags_Left, METH_VARARGS, doc_wxSizerFlags_Left},
    {sipName_Proportion, SIP_MLMETH_CAST(meth_wxSizerFlags_Proportion), METH_VARARGS|METH_KEYWORDS, doc_wxSizerFlags_Proportion},
    {sipName_ReserveSpaceEvenIfHidden, meth_wxSizerFlags_ReserveSpaceEvenIfHidden, METH_VARARGS, doc_wxSizerFlags_ReserveSpaceEvenIfHidden},
    {sipName_Right, meth_wxSizerFlags_Right, METH_VARARGS, doc_wxSizerFlags_Right},
    {sipName_Shaped, meth_wxSizerFlags_Shaped, METH_VARARGS, doc_wxSizerFlags_Shaped},
    {sipName_Top, meth_wxSizerFlags_Top, METH_VARARGS, doc_wxSizerFlags_Top},
    {sipName_TripleBorder, SIP_MLMETH_CAST(meth_wxSizerFlags_TripleBorder), METH_VARARGS|METH_KEYWORDS, doc_wxSizerFlags_TripleBorder}
};

PyDoc_STRVAR(doc_wxSizerFlags, "SizerFlags(proportion=0) -> None\n"
"\n"
"Container for sizer items flags providing readable names for them.");


sipClassTypeDef sipTypeDef__core_wxSizerFlags = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_CLASS,
        sipNameNr_wxSizerFlags,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_SizerFlags,
        {0, 0, 1},
        24, methods_wxSizerFlags,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_wxSizerFlags,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_wxSizerFlags,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_wxSizerFlags,
    assign_wxSizerFlags,
    array_wxSizerFlags,
    copy_wxSizerFlags,
    release_wxSizerFlags,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_wxSizerFlags,
    sizeof (::wxSizerFlags),
};
