Select one of the symbols to view example projects that use it.
 
Outline
#include <gui/common/DemoPresenter.hpp>
DemoPresenter::DemoPresenter(DemoViewInterface &)
DemoPresenter::backOptionSelected()
DemoPresenter::mcuLoadUpdated(uint8_t)
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/gui/src/common/DemoPresenter.cpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * @attention * * Copyright (c) 2018 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ #include <gui/common/DemoPresenter.hpp> DemoPresenter::DemoPresenter(DemoViewInterface& view) : viewInterface(view) { }{ ... } void DemoPresenter::backOptionSelected() { if (model->getPreviousSelectedMainMenuType() == Model::CAROUSEL_MENU) { static_cast<FrontendApplication*>(Application::getInstance())->gotoMainMenuCarouselScreen(); }if (model->getPreviousSelectedMainMenuType() == Model::CAROUSEL_MENU) { ... } else if (model->getPreviousSelectedMainMenuType() == Model::ANIMATING_BUTTONS_MENU) { static_cast<FrontendApplication*>(Application::getInstance())->gotoMainMenuAnimatingButtonsScreen(); }else if (model->getPreviousSelectedMainMenuType() == Model::ANIMATING_BUTTONS_MENU) { ... } }{ ... } void DemoPresenter::mcuLoadUpdated(uint8_t mcuLoad) { viewInterface.updateProcessorLoad(mcuLoad); }{ ... }