Cornelius Bezuidenhout / Mbed OS Heiko

Dependencies:   BSP_DISCO_F746NG F746_GUI LCD_DISCO_F746NG SDFileSystem TS_DISCO_F746NG ResistiveTouchController Map CYS8218Controller MedianFilter

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SquareScreen.hpp Source File

SquareScreen.hpp

00001 #ifndef SQUARE_SCREEN_HPP
00002 #define SQUARE_SCREEN_HPP
00003 
00004 #include "Screen.hpp"
00005 #include "Map.hpp"
00006 
00007 class SquareScreen : public Screen
00008 {
00009 public:
00010   SquareScreen(int *nextScreen, float *xSP, float *ySP, int *ballOnPlate, bool *started, float *x, float *y);
00011 
00012   void Draw();
00013   void Process();
00014 
00015 private:
00016 
00017   void DrawShape();
00018 
00019   Label _lbTitle;
00020   Button _btBack;
00021   Button _btReset;
00022   Canvas _cSquare;
00023   Button _btStart;
00024   Button _btStop;
00025 
00026 
00027   float *_xSP;
00028   float *_ySP;
00029   int *_ballOnPlate;
00030   bool *_started;
00031   float *_x;
00032   float *_y;
00033 
00034   int _xPoints[4];
00035   int _yPoints[4];
00036 
00037   Map _xMapper;
00038   Map _yMapper;
00039 
00040   int _currentPoint;
00041 };
00042 #endif