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

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

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_426d5acfd3159a0bead459531d1c718329f9917c();
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_426d5acfd3159a0bead459531d1c718329f9917c();
    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
}


bool SwipeView::SwipeView_1511590716_bindingFunctor::operator()(SwipeView *self) const
{
    (void) self;
    bool r2__interactive = false;
    QUL_DECL_UNUSED SwipeView * r2 = NULL;
    // interactive: control.interactive
    // line 16  "SwipeView.qml"
    r2 = self;
    r2__interactive = r2->interactive.value();
    return r2__interactive;
    
}
int SwipeView::SwipeView_1979022036_bindingFunctor::operator()(SwipeView *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;
    // implicitHeight: Math.max((background ? background.implicitHeight : 0) + topInset + bottomInset,
    // line 12  "SwipeView.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->implicitHeight.value();
    goto label_1;;
    label_0:;
    r2_2 = 0;
    label_1:;
    r12 = r2_2;
    r2_2 = self->topInset.value();
    r2_2 = r12 + r2_2;
    r13 = r2_2;
    r2_2 = self->bottomInset.value();
    r2_2 = r13 + r2_2;
    r10 = r2_2;
    // (contentItem ? contentItem.implicitHeight : 0) + topPadding + bottomPadding)
    // line 13  "SwipeView.qml"
    r2_3 = self->contentItem.value();
    if (!r2_3) goto label_2;;
    r2_3 = self->contentItem.value();
    r2_2 = r2_3->itemExtraProperties->implicitHeight.value();
    goto label_3;;
    label_2:;
    r2_2 = 0;
    label_3:;
    r12 = r2_2;
    r2_2 = self->topPadding.value();
    r2_2 = r12 + r2_2;
    r13 = r2_2;
    r2_2 = self->bottomPadding.value();
    r2_2 = r13 + r2_2;
    r11 = r2_2;
    r2_1 = r7->max(r10, r11);
    return int(r2_1);
    
}
int SwipeView::SwipeView_3988550022_bindingFunctor::operator()(SwipeView *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  "SwipeView.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  "SwipeView.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);
    
}

SwipeView::SwipeView()

    : ExtraStorage_itemExtraProperties_this_instance(this)
    , ExtraStorage_itemExtraProperties_flickable_instance(&flickable)
    , flickable_interactive_binding(SwipeView_1511590716_bindingFunctor())
    , _implicitHeight_binding(SwipeView_1979022036_bindingFunctor())
    , _implicitWidth_binding(SwipeView_3988550022_bindingFunctor())
{
    flickable_interactive_binding.init<SwipeView, &SwipeView::flickable_interactive_binding>(flickable.interactive);
    // interactive: control.interactive
    // line 16  "SwipeView.qml"
    flickable.interactive.setBinding (&flickable_interactive_binding);
    // contentItem: Flickable {
    // line 15  "SwipeView.qml"
    contentItem.setValue(&flickable);
    _implicitHeight_binding.init<SwipeView, &SwipeView::_implicitHeight_binding>(itemExtraProperties->implicitHeight);
    // implicitHeight: Math.max((background ? background.implicitHeight : 0) + topInset + bottomInset,
    // line 12  "SwipeView.qml"
    itemExtraProperties->implicitHeight.setBinding (&_implicitHeight_binding);
    _implicitWidth_binding.init<SwipeView, &SwipeView::_implicitWidth_binding>(itemExtraProperties->implicitWidth);
    // implicitWidth: Math.max((background ? background.implicitWidth : 0) + leftInset + rightInset,
    // line 10  "SwipeView.qml"
    itemExtraProperties->implicitWidth.setBinding (&_implicitWidth_binding);
}

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