#ifndef SCREEN1VIEW_HPP
#define SCREEN1VIEW_HPP

#include <gui_generated/screen1_screen/Screen1ViewBase.hpp>
#include <gui/screen1_screen/Screen1Presenter.hpp>
#include <gui/common/customButtonContainer.hpp>

class Screen1View : public Screen1ViewBase
{
public:
    Screen1View();
    virtual ~Screen1View() {}
    virtual void setupScreen();
    virtual void tearDownScreen();

    virtual void handleTickEvent();
protected:
    touchgfx::CustomButtonContainer customButton1, customButton2;

    uint16_t counter;
    bool buttonPressedFlag;

    Callback<Screen1View, const CustomButtonContainer&, bool&> buttonEventCallback;

    void handleButtonEvent(const CustomButtonContainer& element, bool& buttonState);
};

#endif // SCREEN1VIEW_HPP
