// This code is auto-generated by Qul's qmltocpp tool from the file 'CheckBox.qml'
// WARNING! All changes made in this file will be lost!
#include "CheckBox.h"
#include <qul/private/graphicsdevice.h>
#include <qul/private/filecache.h>

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif

extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_2Ddisabled_13247221153793960132_handle;
extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_2Dpartially_2Dchecked_2Dpressed_11192065766233254474_handle;
extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_2Dpartially_2Dchecked_3384688200196511074_handle;
extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_2Dchecked_2Dpressed_2210782209603159047_handle;
extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_2Dchecked_3676362399952859206_handle;
extern const Qul::Private::RasterBuffer *const qul_rasterBuffer_checkbox_17080658918307490481_handle;
static const Qul::Private::String qulCurrentFileDir(".", 1);
namespace QtQuick {
namespace Controls {
namespace StyleDefault {
extern Qul::Private::Items::ItemBase *loaderItemAllocator(const Qul::Private::String &uri, const Qul::Private::String &currentFileDir);

} // namespace QtQuick
} // namespace Controls
} // namespace StyleDefault
namespace Qul { namespace Private {
Qul::Property<int> &translationIndexProperty_main();
extern uint32_t qul_translation_base_offset_2cfcce32f758bbec5dcc3af47a5995971168c440();
extern const char *qul_translation_string(int lang, uint32_t base, int entry);
}}

namespace QtQuick {
namespace Controls {
namespace StyleDefault {

namespace {
#if defined(QUL_CC_IAR)
#pragma diag_suppress=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
static Qul::Property<int> &translationIndexProperty() { return Qul::Private::translationIndexProperty_main(); }
static int translationIndex() { return translationIndexProperty().value(); }
static const char *qul_translation(int entry) {
    const uint32_t base_offset = Qul::Private::qul_translation_base_offset_2cfcce32f758bbec5dcc3af47a5995971168c440();
    return Qul::Private::qul_translation_string(translationIndex(), base_offset, entry);
}
#if defined(QUL_CC_IAR)
#pragma diag_default=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic pop
#endif
}


int CheckBox::CheckBox_2337548876_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    int r2_1 = 0;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    QUL_DECL_UNUSED Qul::Private::Items::ItemBase * r2__indicator = NULL;
    int r7__indicator_width = 0;
    // implicitWidth: control.indicator ? control.indicator.width + control.spacing : 0
    // line 53  "CheckBox.qml"
    r2 = self;
    r2__indicator = r2->indicator.value();
    if (!r2__indicator) {
    goto label_0;};
    r2 = self;
    r2__indicator = r2->indicator.value();
    r2_1 = r2__indicator->width.value();
    r7__indicator_width = r2_1;
    r2 = self;
    r2_1 = r2->spacing.value();
    r2_1 = r7__indicator_width + r2_1;
    goto label_1;;
    {
    }
    label_0:;
    r2_1 = 0;
    label_1:;
    return r2_1;
    
}
int CheckBox::anchor_functor::operator()(CheckBox *self, int _switch_index) const
{
    int properties[2] = {};

    switch(_switch_index) {
    case 0: properties[0] = self->row.height.value(); properties[1] = self->text_.height.value();  break;
    }
    return int((int(properties[0]) + 1)/2 - ((properties[1])/2.0));
}

Qul::PlatformInterface::Rgba32 CheckBox::CheckBox_596636878_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    QUL_DECL_UNUSED Qul::PlatformInterface::Rgba32 r2__disabledTextColor;
    bool r2__enabled = false;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    QUL_DECL_UNUSED  ::QtQuick::Controls::StyleDefault::DefaultStyle * r2_3 = NULL;
    // color: control.enabled ? DefaultStyle.textColor : DefaultStyle.disabledTextColor
    // line 59  "CheckBox.qml"
    r2 = self;
    r2__enabled = r2->enabled.value();
    if (!r2__enabled) goto label_0;;
    r2_3 = & ::QtQuick::Controls::StyleDefault::DefaultStyle ::instance();
    r2__disabledTextColor = r2_3->textColor.value();
    goto label_1;;
    label_0:;
    r2_3 = & ::QtQuick::Controls::StyleDefault::DefaultStyle ::instance();
    r2__disabledTextColor = r2_3->disabledTextColor.value();
    label_1:;
    return r2__disabledTextColor;
    
}
Qul::Private::FontPointer CheckBox::CheckBox_524833712_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    QUL_DECL_UNUSED Qul::Private::FontPointer r2__font;
    // font: control.font
    // line 58  "CheckBox.qml"
    r2 = self;
    r2__font = r2->font.value();
    return r2__font;
    
}
Qul::Private::String CheckBox::CheckBox_2129819560_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    QUL_DECL_UNUSED Qul::Private::String r2__text;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    // text: control.text
    // line 57  "CheckBox.qml"
    r2 = self;
    r2__text = r2->text.value();
    return r2__text;
    
}
Qul::SharedImage CheckBox::CheckBox_940044532_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    QUL_DECL_UNUSED Qul::Private::Builtins::GlobalQtObject::CheckState r8__checkState;
    bool r2_3 = false;
    QUL_DECL_UNUSED Qul::Private::Builtins::GlobalQtObject::CheckState r2__PartiallyChecked;
    QUL_DECL_UNUSED Qul::Private::String r2_2;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    QUL_DECL_UNUSED Qul::Private::Builtins::GlobalQtObject::CheckState r7__checkState;
    /*
    source: !control.enabled
    ? "qrc:/images/checkbox-disabled.png"
    : (control.checkState == Qt.PartiallyChecked
    */
    // line 35  "CheckBox.qml"
    r2 = self;
    r2_3 = r2->enabled.value();
    r2_3 = !r2_3;
    if (!r2_3) goto label_0;;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox-disabled.png", qul_rasterBuffer_checkbox_2Ddisabled_13247221153793960132_handle), 33);
    {
    goto label_1;};
    label_0:;
    r2 = self;
    r2__PartiallyChecked = r2->checkState.value();
    r7__checkState = r2__PartiallyChecked;
    r2__PartiallyChecked = Qul::Private::Builtins::GlobalQtObject::PartiallyChecked;
    r2_3 = Qul::Private::testEqual(r7__checkState, r2__PartiallyChecked);
    if (!r2_3) goto label_2;;
    r2 = self;
    /*
    ? (control.down ? "qrc:/images/checkbox-partially-checked-pressed.png" : "qrc:/images/checkbox-partially-checked.png")
    : (control.checkState == Qt.Checked
    */
    // line 38  "CheckBox.qml"
    r2_3 = r2->down.value();
    if (!r2_3) goto label_3;;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox-partially-checked-pressed.png", qul_rasterBuffer_checkbox_2Dpartially_2Dchecked_2Dpressed_11192065766233254474_handle), 50);
    goto label_4;;
    label_3:;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox-partially-checked.png", qul_rasterBuffer_checkbox_2Dpartially_2Dchecked_3384688200196511074_handle), 42);
    label_4:;
    {
    goto label_1;};
    label_2:;
    r2 = self;
    r2__PartiallyChecked = r2->checkState.value();
    r8__checkState = r2__PartiallyChecked;
    r2__PartiallyChecked = Qul::Private::Builtins::GlobalQtObject::Checked;
    r2_3 = Qul::Private::testEqual(r8__checkState, r2__PartiallyChecked);
    if (!r2_3) goto label_5;;
    r2 = self;
    // ? (control.down ? "qrc:/images/checkbox-checked-pressed.png" : "qrc:/images/checkbox-checked.png")
    // line 40  "CheckBox.qml"
    r2_3 = r2->down.value();
    if (!r2_3) goto label_6;;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox-checked-pressed.png", qul_rasterBuffer_checkbox_2Dchecked_2Dpressed_2210782209603159047_handle), 40);
    goto label_7;;
    label_6:;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox-checked.png", qul_rasterBuffer_checkbox_2Dchecked_3676362399952859206_handle), 32);
    label_7:;
    {
    goto label_1;};
    label_5:;
    r2_2 = Qul::Private::String(Qul::Private::ImageIdValue::create("qrc:/images/checkbox.png", qul_rasterBuffer_checkbox_17080658918307490481_handle), 24);
    {
    }
    label_1:;
    // : "qrc:/images/checkbox.png"))
    // line 41  "CheckBox.qml"
    return Qul::Private::findImageForString(r2_2);
    
}
int CheckBox::CheckBox_1652271087_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    int r8__availableHeight = 0;
    int r2_2 = 0;
    Qul::qreal r2_1 = 0.0;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    int r9 = 0;
    int r7__topPadding = 0;
    // y: control.topPadding + (control.availableHeight - height) / 2
    // line 34  "CheckBox.qml"
    r2 = self;
    r2_2 = r2->topPadding.value();
    r7__topPadding = r2_2;
    r2 = self;
    r2_2 = r2->availableHeight.value();
    r8__availableHeight = r2_2;
    r2_2 = self->image.height.value();
    r2_2 = r8__availableHeight - r2_2;
    r9 = r2_2;
    r2_2 = 2;
    r2_1 = Qul::qreal(r9) / r2_2;
    r2_1 = r7__topPadding + r2_1;
    return int(r2_1);
    
}
int CheckBox::CheckBox_2392209622_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    int r2__leftPadding = 0;
    QUL_DECL_UNUSED CheckBox * r2 = NULL;
    // x: control.leftPadding
    // line 33  "CheckBox.qml"
    r2 = self;
    r2__leftPadding = r2->leftPadding.value();
    return r2__leftPadding;
    
}
int CheckBox::CheckBox_471296976_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    QUL_DECL_UNUSED Qul::Private::Builtins::Math * r7 = NULL;
    int r13 = 0;
    int r16 = 0;
    int r2_1 = 0;
    Qul::qreal r2_3 = 0.0;
    QUL_DECL_UNUSED Qul::Private::Builtins::Math * r2 = NULL;
    QUL_DECL_UNUSED Qul::Private::Items::ItemBase * r2_2 = NULL;
    int r10 = 0;
    int r12_1 = 0;
    QUL_DECL_UNUSED Qul::Private::Builtins::Math * r12 = NULL;
    int r17 = 0;
    int r15 = 0;
    Qul::qreal r11 = 0.0;
    int r18 = 0;
    // implicitHeight: Math.max((background ? background.implicitHeight : 0) + topInset + bottomInset,
    // line 16  "CheckBox.qml"
    r2 = &Qul::Private::Builtins::Math ::instance();
    r7 = r2;
    r2_2 = self->background.value();
    if (!r2_2) goto label_0;;
    r2_2 = self->background.value();
    r2_1 = r2_2->itemExtraProperties->implicitHeight.value();
    goto label_1;;
    label_0:;
    r2_1 = 0;
    label_1:;
    r12_1 = r2_1;
    r2_1 = self->topInset.value();
    r2_1 = r12_1 + r2_1;
    r13 = r2_1;
    r2_1 = self->bottomInset.value();
    r2_1 = r13 + r2_1;
    r10 = r2_1;
    r2 = &Qul::Private::Builtins::Math ::instance();
    r12 = r2;
    // Math.max((contentItem ? contentItem.implicitHeight : 0) + topPadding + bottomPadding,
    // line 17  "CheckBox.qml"
    r2_2 = self->contentItem.value();
    if (!r2_2) goto label_2;;
    r2_2 = self->contentItem.value();
    r2_1 = r2_2->itemExtraProperties->implicitHeight.value();
    goto label_3;;
    label_2:;
    r2_1 = 0;
    label_3:;
    r17 = r2_1;
    r2_1 = self->topPadding.value();
    r2_1 = r17 + r2_1;
    r18 = r2_1;
    r2_1 = self->bottomPadding.value();
    r2_1 = r18 + r2_1;
    r15 = r2_1;
    // (indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding))
    // line 18  "CheckBox.qml"
    r2_2 = self->indicator.value();
    if (!r2_2) goto label_4;;
    r2_2 = self->indicator.value();
    r2_1 = r2_2->itemExtraProperties->implicitHeight.value();
    goto label_5;;
    label_4:;
    r2_1 = 0;
    label_5:;
    r17 = r2_1;
    r2_1 = self->topPadding.value();
    r2_1 = r17 + r2_1;
    r18 = r2_1;
    r2_1 = self->bottomPadding.value();
    r2_1 = r18 + r2_1;
    r16 = r2_1;
    r2_3 = r12->max(r15, r16);
    r11 = r2_3;
    r2_3 = r7->max(r10, r11);
    return int(r2_3);
    
}
int CheckBox::CheckBox_3988550022_bindingFunctor::operator()(CheckBox *self) const
{
    (void) self;
    int r2_2 = 0;
    Qul::qreal r2_1 = 0.0;
    QUL_DECL_UNUSED Qul::Private::Builtins::Math * r2 = NULL;
    QUL_DECL_UNUSED Qul::Private::Items::ItemBase * r2_3 = NULL;
    int r10 = 0;
    int r12 = 0;
    int r11 = 0;
    QUL_DECL_UNUSED Qul::Private::Builtins::Math * r7 = NULL;
    int r13 = 0;
    // implicitWidth: Math.max((background ? background.implicitWidth : 0) + leftInset + rightInset,
    // line 10  "CheckBox.qml"
    r2 = &Qul::Private::Builtins::Math ::instance();
    r7 = r2;
    r2_3 = self->background.value();
    if (!r2_3) goto label_0;;
    r2_3 = self->background.value();
    r2_2 = r2_3->itemExtraProperties->implicitWidth.value();
    goto label_1;;
    label_0:;
    r2_2 = 0;
    label_1:;
    r12 = r2_2;
    r2_2 = self->leftInset.value();
    r2_2 = r12 + r2_2;
    r13 = r2_2;
    r2_2 = self->rightInset.value();
    r2_2 = r13 + r2_2;
    r10 = r2_2;
    // (contentItem ? contentItem.implicitWidth : 0) + leftPadding + rightPadding)
    // line 11  "CheckBox.qml"
    r2_3 = self->contentItem.value();
    if (!r2_3) goto label_2;;
    r2_3 = self->contentItem.value();
    r2_2 = r2_3->itemExtraProperties->implicitWidth.value();
    goto label_3;;
    label_2:;
    r2_2 = 0;
    label_3:;
    r12 = r2_2;
    r2_2 = self->leftPadding.value();
    r2_2 = r12 + r2_2;
    r13 = r2_2;
    r2_2 = self->rightPadding.value();
    r2_2 = r13 + r2_2;
    r11 = r2_2;
    r2_1 = r7->max(r10, r11);
    return int(r2_1);
    
}

CheckBox::CheckBox()

    : text__y_anchor_binding(anchor_functor())
    , ExtraStorage_itemExtraProperties_this_instance(this)
    , ExtraStorage_itemExtraProperties_item__2_instance(&item__2)
    , ExtraStorage_itemExtraProperties_row_instance(&row)
    , ExtraStorage_itemExtraProperties_item__instance(&item_)
    , ExtraStorage_itemExtraProperties_image_instance(&image)
    , item__2_implicitWidth_binding(CheckBox_2337548876_bindingFunctor())
    , text__color_binding(CheckBox_596636878_bindingFunctor())
    , font_font_binding(CheckBox_524833712_bindingFunctor())
    , text__text_binding(CheckBox_2129819560_bindingFunctor())
    , image_source_binding(CheckBox_940044532_bindingFunctor())
    , image_y_binding(CheckBox_1652271087_bindingFunctor())
    , image_x_binding(CheckBox_2392209622_bindingFunctor())
    , _implicitHeight_binding(CheckBox_471296976_bindingFunctor())
    , _implicitWidth_binding(CheckBox_3988550022_bindingFunctor())
{
#if __cplusplus < 201103L
    // spacing: 10
    // line 30  "CheckBox.qml"
    spacing.setValue(10);
    // bottomInset: DefaultStyle.inset
    // line 28  "CheckBox.qml"
    bottomInset.setValue(5);
    // rightInset: DefaultStyle.inset
    // line 27  "CheckBox.qml"
    rightInset.setValue(5);
    // topInset: DefaultStyle.inset
    // line 26  "CheckBox.qml"
    topInset.setValue(5);
    // leftInset: DefaultStyle.inset
    // line 25  "CheckBox.qml"
    leftInset.setValue(5);
    // bottomPadding: DefaultStyle.padding
    // line 23  "CheckBox.qml"
    bottomPadding.setValue(5);
    // topPadding: DefaultStyle.padding
    // line 22  "CheckBox.qml"
    topPadding.setValue(5);
    // rightPadding: DefaultStyle.padding
    // line 21  "CheckBox.qml"
    rightPadding.setValue(5);
    // leftPadding: DefaultStyle.padding
    // line 20  "CheckBox.qml"
    leftPadding.setValue(5);
#else
    using OffsetType14508472848368190223 = Qul::Private::Choose<uint16_t, uint32_t, (UINT16_MAX >
        Qul::Private::Max<offsetof(CheckBox, spacing) / 4,
        Qul::Private::Max<offsetof(CheckBox, bottomInset) / 4,
        Qul::Private::Max<offsetof(CheckBox, rightInset) / 4,
        Qul::Private::Max<offsetof(CheckBox, topInset) / 4,
        Qul::Private::Max<offsetof(CheckBox, leftInset) / 4,
        Qul::Private::Max<offsetof(CheckBox, bottomPadding) / 4,
        Qul::Private::Max<offsetof(CheckBox, topPadding) / 4,
        Qul::Private::Max<offsetof(CheckBox, rightPadding) / 4,
        Qul::Private::Max<offsetof(CheckBox, leftPadding) / 4,
        0
        >::V>::V>::V>::V>::V>::V>::V>::V>::V
        )>::Type;
    OffsetType14508472848368190223 propertyOffsets14508472848368190223[] = {
        std::is_same<decltype(spacing), Qul::Property<int>>::value ? (offsetof(CheckBox, spacing) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(bottomInset), Qul::Property<int>>::value ? (offsetof(CheckBox, bottomInset) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(rightInset), Qul::Property<int>>::value ? (offsetof(CheckBox, rightInset) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(topInset), Qul::Property<int>>::value ? (offsetof(CheckBox, topInset) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(leftInset), Qul::Property<int>>::value ? (offsetof(CheckBox, leftInset) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(bottomPadding), Qul::Property<int>>::value ? (offsetof(CheckBox, bottomPadding) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(topPadding), Qul::Property<int>>::value ? (offsetof(CheckBox, topPadding) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(rightPadding), Qul::Property<int>>::value ? (offsetof(CheckBox, rightPadding) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(leftPadding), Qul::Property<int>>::value ? (offsetof(CheckBox, leftPadding) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
    };
    static constexpr int8_t propertyValues14508472848368190223[] = {
        // spacing: 10
        // line 30  "CheckBox.qml"
        10,
        // bottomInset: DefaultStyle.inset
        // line 28  "CheckBox.qml"
        5,
        // rightInset: DefaultStyle.inset
        // line 27  "CheckBox.qml"
        5,
        // topInset: DefaultStyle.inset
        // line 26  "CheckBox.qml"
        5,
        // leftInset: DefaultStyle.inset
        // line 25  "CheckBox.qml"
        5,
        // bottomPadding: DefaultStyle.padding
        // line 23  "CheckBox.qml"
        5,
        // topPadding: DefaultStyle.padding
        // line 22  "CheckBox.qml"
        5,
        // rightPadding: DefaultStyle.padding
        // line 21  "CheckBox.qml"
        5,
        // leftPadding: DefaultStyle.padding
        // line 20  "CheckBox.qml"
        5,
    };
    Qul::Private::initializeProperties<int>(this, propertyOffsets14508472848368190223, propertyValues14508472848368190223,
        sizeof(propertyOffsets14508472848368190223) / sizeof(propertyOffsets14508472848368190223[0]));
    // spacing: 10
    // line 30  "CheckBox.qml"
    if (!std::is_same<decltype(spacing), Qul::Property<int>>::value)
        spacing.setValue(10);
    // bottomInset: DefaultStyle.inset
    // line 28  "CheckBox.qml"
    if (!std::is_same<decltype(bottomInset), Qul::Property<int>>::value)
        bottomInset.setValue(5);
    // rightInset: DefaultStyle.inset
    // line 27  "CheckBox.qml"
    if (!std::is_same<decltype(rightInset), Qul::Property<int>>::value)
        rightInset.setValue(5);
    // topInset: DefaultStyle.inset
    // line 26  "CheckBox.qml"
    if (!std::is_same<decltype(topInset), Qul::Property<int>>::value)
        topInset.setValue(5);
    // leftInset: DefaultStyle.inset
    // line 25  "CheckBox.qml"
    if (!std::is_same<decltype(leftInset), Qul::Property<int>>::value)
        leftInset.setValue(5);
    // bottomPadding: DefaultStyle.padding
    // line 23  "CheckBox.qml"
    if (!std::is_same<decltype(bottomPadding), Qul::Property<int>>::value)
        bottomPadding.setValue(5);
    // topPadding: DefaultStyle.padding
    // line 22  "CheckBox.qml"
    if (!std::is_same<decltype(topPadding), Qul::Property<int>>::value)
        topPadding.setValue(5);
    // rightPadding: DefaultStyle.padding
    // line 21  "CheckBox.qml"
    if (!std::is_same<decltype(rightPadding), Qul::Property<int>>::value)
        rightPadding.setValue(5);
    // leftPadding: DefaultStyle.padding
    // line 20  "CheckBox.qml"
    if (!std::is_same<decltype(leftPadding), Qul::Property<int>>::value)
        leftPadding.setValue(5);
#endif
    // Item {
    // line 52  "CheckBox.qml"
    appendChild(&this->row, &item__2);
    item__2_implicitWidth_binding.init<CheckBox, &CheckBox::item__2_implicitWidth_binding>(item__2.itemExtraProperties->implicitWidth);
    // implicitWidth: control.indicator ? control.indicator.width + control.spacing : 0
    // line 53  "CheckBox.qml"
    item__2.itemExtraProperties->implicitWidth.setBinding (&item__2_implicitWidth_binding);
    // Text {
    // line 56  "CheckBox.qml"
    appendChild(&this->row, &text_);
    text__y_anchor_binding.init<CheckBox, &CheckBox::text__y_anchor_binding, 0>(text_.y);
    text_.y.setBinding(&text__y_anchor_binding);
    text__color_binding.init<CheckBox, &CheckBox::text__color_binding>(text_.color);
    // color: control.enabled ? DefaultStyle.textColor : DefaultStyle.disabledTextColor
    // line 59  "CheckBox.qml"
    text_.color.setBinding (&text__color_binding);
    font_font_binding.init<CheckBox, &CheckBox::font_font_binding>(text_.font);
    // font: control.font
    // line 58  "CheckBox.qml"
    text_.font.setBinding (&font_font_binding);
    text__text_binding.init<CheckBox, &CheckBox::text__text_binding>(text_.text);
    // text: control.text
    // line 57  "CheckBox.qml"
    text_.text.setBinding (&text__text_binding);
    // contentItem: Row {
    // line 51  "CheckBox.qml"
    contentItem.setValue(&row);
    // implicitHeight: 42
    // line 47  "CheckBox.qml"
    item_.itemExtraProperties->implicitHeight.setValue(42);
    // implicitWidth: 100
    // line 46  "CheckBox.qml"
    item_.itemExtraProperties->implicitWidth.setValue(100);
    // background: Item {
    // line 45  "CheckBox.qml"
    background.setValue(&item_);
    image_source_binding.init<CheckBox, &CheckBox::image_source_binding>(image.source);
    // source: !control.enabled
    // line 35  "CheckBox.qml"
    image.source.setBinding (&image_source_binding);
    image_y_binding.init<CheckBox, &CheckBox::image_y_binding>(image.y);
    // y: control.topPadding + (control.availableHeight - height) / 2
    // line 34  "CheckBox.qml"
    image.y.setBinding (&image_y_binding);
    image_x_binding.init<CheckBox, &CheckBox::image_x_binding>(image.x);
    // x: control.leftPadding
    // line 33  "CheckBox.qml"
    image.x.setBinding (&image_x_binding);
    // indicator: Image {
    // line 32  "CheckBox.qml"
    indicator.setValue(&image);
    _implicitHeight_binding.init<CheckBox, &CheckBox::_implicitHeight_binding>(itemExtraProperties->implicitHeight);
    // implicitHeight: Math.max((background ? background.implicitHeight : 0) + topInset + bottomInset,
    // line 16  "CheckBox.qml"
    itemExtraProperties->implicitHeight.setBinding (&_implicitHeight_binding);
    _implicitWidth_binding.init<CheckBox, &CheckBox::_implicitWidth_binding>(itemExtraProperties->implicitWidth);
    // implicitWidth: Math.max((background ? background.implicitWidth : 0) + leftInset + rightInset,
    // line 10  "CheckBox.qml"
    itemExtraProperties->implicitWidth.setBinding (&_implicitWidth_binding);
}

} // namespace QtQuick
} // namespace Controls
} // namespace StyleDefault
