#ifndef DIGITAL_WATCH_GUI_H #define DIGITAL_WATCH_GUI_H class digitalWatch: public watchObject { private: //Starting point of the watch draw area const static unsigned short int watchStartX = 20, watchStartY = 20; //All these variables store values relative of the ratio (size) unsigned short int ratio, digitThickness, buttonSize, displayPadding; unsigned short int faceStartX, faceStartY, faceEndX, faceEndY, displayStartX, displayStartY, displayEndX, displayEndY; unsigned short int buttonsStartX[4], buttonsStartY[4]; char lastTime[7]; //Stores the digits used in the last time repaint, so only need to repaint ones that have changed void drawNum (HDC hdc, int fromLeft, int fromTop, int num); void drawSep (HDC hdc, int fromLeft, int fromTop); public: digitalWatch (); ~digitalWatch (); int checkMouseClick (int x, int y); void repaintGUI (HDC hdc, int size); void repaintTime (HDC hdc, int hour, int min, int sec); void resetTime (); }; #endif