-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathskins.h
69 lines (63 loc) · 1.67 KB
/
skins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef skins_h
#define skins_h
#include "clock.h"
#include <pngwriter.h>
class Example1 : public IWatchFace, public WatchInternals {
pngwriter* watchCanvas;
int secondHandRadius, minuteHandRadius, hourHandRadius;
int facePlateRadius;
int canvasHeight, canvasWidth;
int originX, originY;
public:
Example1();
~Example1();
void drawClock();
void drawFacePlate();
void drawSecondsHand();
void drawMinutesHand();
void drawHoursHand();
void displayAlarm();
double rad(int);
};
class Example2 : public IWatchFace, public WatchInternals {
pngwriter* watchCanvas;
float secondHandRatio, minuteHandRatio, hourHandRatio;
int facePlateRadius;
int canvasHeight, canvasWidth;
int originX, originY;
public:
Example2();
~Example2();
void drawClock();
void drawFacePlate();
void drawSecondsHand();
void drawMinutesHand();
void drawHoursHand();
void displayAlarm();
double rad(int);
};
class Example3 : public IWatchFace, public WatchInternals {
pngwriter* watchCanvas;
int secondRadius, minuteRadius, hourRadius, daysRadius, monthRadius, yearRadius;
int facePlateRadius;
int canvasHeight, canvasWidth;
int originX, originY;
int hoursCentreX, hoursCentreY, minutesCentreX, minutesCentreY;
int daysCentreX, daysCentreY, monthCentreX, monthCentreY;
int yearCentreX, yearCentreY;
public:
Example3();
~Example3();
void drawClock();
void drawFacePlate();
void drawSecondsHand();
void drawMinutesHand();
void drawHoursHand();
void drawDaysHand();
int getDaysInMonth();
bool isLeapYear();
void drawMonthsHand();
void displayAlarm();
double rad(int);
};
#endif