/*********************************************************************************/
/********** THIS FILE IS GENERATED BY TOUCHGFX DESIGNER, DO NOT MODIFY ***********/
/*********************************************************************************/
#ifndef MAINPAGEVIEWBASE_HPP
#define MAINPAGEVIEWBASE_HPP

#include <gui/common/FrontendApplication.hpp>
#include <mvp/View.hpp>
#include <gui/mainpage_screen/MainPagePresenter.hpp>
#include <touchgfx/widgets/TiledImage.hpp>
#include <touchgfx/widgets/Image.hpp>
#include <touchgfx/widgets/TextArea.hpp>
#include <touchgfx/widgets/ButtonWithLabel.hpp>

class MainPageViewBase : public touchgfx::View<MainPagePresenter>
{
public:
    MainPageViewBase();
    virtual ~MainPageViewBase() {}
    virtual void setupScreen();

protected:
    FrontendApplication& application() {
        return *static_cast<FrontendApplication*>(touchgfx::Application::getInstance());
    }

    /*
     * Member Declarations
     */
    touchgfx::TiledImage Sfondo;
    touchgfx::Image logo;
    touchgfx::TextArea textArea1;
    touchgfx::ButtonWithLabel Start;
    touchgfx::ButtonWithLabel Help;

private:

    /*
     * Callback Declarations
     */
    touchgfx::Callback<MainPageViewBase, const touchgfx::AbstractButton&> buttonCallback;

    /*
     * Callback Handler Declarations
     */
    void buttonCallbackHandler(const touchgfx::AbstractButton& src);

};

#endif // MAINPAGEVIEWBASE_HPP
