Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DMBasicGUI DMSupport
SwimDraw.h
00001 #ifndef SWIMDRAW_H 00002 #define SWIMDRAW_H 00003 00004 /* 00005 This class encapsulates the 'lpc_swim' functions provided by mbed for drawing on the display. 00006 We are using these to draw our own profile graphs on our own bitmaps, 00007 which should give an improved appearance by comparison with easyGUI. 00008 00009 This class (as usual) is a singleton - there is only one display, after all. 00010 */ 00011 00012 class SwimDraw { 00013 public: 00014 /** 00015 * Static method to create (if necessary) and retrieve the single GasCalibrationPageHandler instance 00016 */ 00017 static SwimDraw * GetInstance(void); 00018 00019 void Initialise(DMBoard* board, void* frameBuffer); 00020 00021 bool DrawLine(COLOR_T lineColour, int32_t xStart, int32_t yStart, int32_t xEnd, int32_t yEnd); 00022 00023 bool DrawRectangle(COLOR_T rectColour, int32_t xStart, int32_t yStart, int32_t xEnd, int32_t yEnd); 00024 00025 00026 private: 00027 00028 static SwimDraw * theSwimDrawInstance; 00029 00030 // singleton class -> constructor is private 00031 SwimDraw(); 00032 ~SwimDraw(); 00033 00034 bool initialised; 00035 00036 SWIM_WINDOW_T swimWindowT; 00037 }; 00038 00039 #endif // SWIMDRAW_H
Generated on Tue Jul 19 2022 00:31:07 by
1.7.2