My final year project

Dependencies:   BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter

Screens/MainMenuScreen.cpp

Committer:
Generic
Date:
2016-10-01
Revision:
2:5fded6444350
Parent:
1:43fb2d03c36f
Child:
3:37f3d9c1eae3

File content as of revision 2:5fded6444350:

#include "MainMenuScreen.hpp"

MainMenuScreen::MainMenuScreen(int *nextScreen) :
  Screen(),
  _lbTitle(SCREEN_W/2,0,"Main Menu",Label::CENTER, Font24),
  _btAutomatic(0,27,((SCREEN_W)/2)-5, SCREEN_H-62, "Automatic", Font20),
  _btManual((SCREEN_W/2)+5,27,(SCREEN_W/2)-5,SCREEN_H-62,"Manual", Font20),
  _btSettings(0,SCREEN_H-30,SCREEN_W,30,"Settings",Font20)
{
  _nextScreen = nextScreen;
}

void MainMenuScreen::Draw()
{
  _lbTitle.Draw();
  _btAutomatic.Draw();
  _btManual.Draw();
  _btSettings.Draw();
}

void MainMenuScreen::Process()
{
  // TODO Create Automatic, Manual and Settings screens
}