Repository for import to local machine

Dependencies:   DMBasicGUI DMSupport

Committer:
jmitc91516
Date:
Mon Jul 31 15:37:57 2017 +0000
Revision:
8:26e49e6955bd
Parent:
1:a5258871b33d
Method ramp scrolling improved, and more bitmaps moved to QSPI memory

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmitc91516 1:a5258871b33d 1 #ifndef SWIMDRAW_H
jmitc91516 1:a5258871b33d 2 #define SWIMDRAW_H
jmitc91516 1:a5258871b33d 3
jmitc91516 1:a5258871b33d 4 /*
jmitc91516 1:a5258871b33d 5 This class encapsulates the 'lpc_swim' functions provided by mbed for drawing on the display.
jmitc91516 1:a5258871b33d 6 We are using these to draw our own profile graphs on our own bitmaps,
jmitc91516 1:a5258871b33d 7 which should give an improved appearance by comparison with easyGUI.
jmitc91516 1:a5258871b33d 8
jmitc91516 1:a5258871b33d 9 This class (as usual) is a singleton - there is only one display, after all.
jmitc91516 1:a5258871b33d 10 */
jmitc91516 1:a5258871b33d 11
jmitc91516 1:a5258871b33d 12 class SwimDraw {
jmitc91516 1:a5258871b33d 13 public:
jmitc91516 1:a5258871b33d 14 /**
jmitc91516 1:a5258871b33d 15 * Static method to create (if necessary) and retrieve the single GasCalibrationPageHandler instance
jmitc91516 1:a5258871b33d 16 */
jmitc91516 1:a5258871b33d 17 static SwimDraw * GetInstance(void);
jmitc91516 1:a5258871b33d 18
jmitc91516 1:a5258871b33d 19 void Initialise(DMBoard* board, void* frameBuffer);
jmitc91516 1:a5258871b33d 20
jmitc91516 1:a5258871b33d 21 bool DrawLine(COLOR_T lineColour, int32_t xStart, int32_t yStart, int32_t xEnd, int32_t yEnd);
jmitc91516 1:a5258871b33d 22
jmitc91516 1:a5258871b33d 23 bool DrawRectangle(COLOR_T rectColour, int32_t xStart, int32_t yStart, int32_t xEnd, int32_t yEnd);
jmitc91516 1:a5258871b33d 24
jmitc91516 1:a5258871b33d 25
jmitc91516 1:a5258871b33d 26 private:
jmitc91516 1:a5258871b33d 27
jmitc91516 1:a5258871b33d 28 static SwimDraw * theSwimDrawInstance;
jmitc91516 1:a5258871b33d 29
jmitc91516 1:a5258871b33d 30 // singleton class -> constructor is private
jmitc91516 1:a5258871b33d 31 SwimDraw();
jmitc91516 1:a5258871b33d 32 ~SwimDraw();
jmitc91516 1:a5258871b33d 33
jmitc91516 1:a5258871b33d 34 bool initialised;
jmitc91516 1:a5258871b33d 35
jmitc91516 1:a5258871b33d 36 SWIM_WINDOW_T swimWindowT;
jmitc91516 1:a5258871b33d 37 };
jmitc91516 1:a5258871b33d 38
jmitc91516 1:a5258871b33d 39 #endif // SWIMDRAW_H