-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathwatch_face.h
54 lines (44 loc) · 1.52 KB
/
watch_face.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
#ifndef CRYPTIC_WATCH_WATCH_FACE_H
#define CRYPTIC_WATCH_WATCH_FACE_H
#include <PalmOS.h>
struct WatchFaceType_;
typedef struct WatchFaceType_ WatchFaceType;
/**
* Init watch face.
* @param watchFace Pointer to the watchface object.
* @return errNone on success, memErrorClass otherwise.
*/
Err WfInitWatchFace(WatchFaceType* watchFace);
/**
* Create watch face of the given type from the raw memory pointer.
* @param watchFace Pointer to the watchface object.
* @param raw Raw pointer to create watch face from.
* @return errNone on success, memErrorClass otherwise.
*/
Err WfCreateFromRaw(WatchFaceType* watchFace, void* raw);
/**
* Display the current time on the screen.
* @param watchFace Pointer to the watchface object.
* @param dt Current time.
*/
void WfDrawTime(WatchFaceType* watchFace, DateTimeType* dt);
/**
* Return the raw pointer to the internal watch face data.
* @param watchFace Pointer to the watchface object.
* @param [out] data Output data pointer.
* @param [out] size Size of the internal watchface structure.
*/
void WfGetDataPtr(WatchFaceType* watchFace, void** data, UInt32* size);
/**
* Free the internal watchface structures
* @param watchFace Pointer to the watchface object.
*/
void WfDestroy(WatchFaceType* watchFace);
/**
* Get the char prefix of the watch face to distinguish different watch face
* types.
* @param watchFace Pointer to the watchface object.
* @return Char prefix of the watch face.
*/
UInt32 WfGetPrefix(WatchFaceType* watchFace);
#endif // CRYPTIC_WATCH_WATCH_FACE_H