FrontendHeap 的构造函数--->调用到 FrontendHeapBase 的界面跳转函数 栈是主画面
#ifndef FRONTENDHEAP_HPP
#define FRONTENDHEAP_HPP
#include <gui_generated/common/FrontendHeapBase.hpp>
class FrontendHeap : public FrontendHeapBase
{
public:
FrontendApplication app;
Model model;
private:
FrontendHeap() : FrontendHeapBase(presenters, views, transitions, app),
app(model, *this)
{
gotoStartScreen(app);
}
};
在:FrontendHeapBase.hpp
virtual void gotoStartScreen(FrontendApplication& app)
{
app.gotoScreen1ScreenNoTransition();
}
也就是
void FrontendApplicationBase::gotoScreen1ScreenNoTransition()
{
transitionCallback = touchgfx::Callback<FrontendApplicationBase>(this, &FrontendApplication::gotoScreen1ScreenNoTransitionImpl);
pendingScreenTransitionCallback = &transitionCallback;
}