adapated for Maemo
[shermanaquarium] / sherman-aquarium / shermans / clock.h
1
2 /* Header file for Sherman's aquarium's clock <cja@gmx.net> */
3
4 #ifndef CLOCK_H
5 #define CLOCK_H
6
7 /* Kind of clock */ 
8 #define CLOCK_OFF 0
9 #define CLOCK_DIGITAL 2
10 #define CLOCK_ANALOG 1
11 #define CLOCK_FUZZY 3
12
13 #define CLOCK_LARGE_FONT 0
14 #define CLOCK_SMALL_FONT 1
15
16 /* Settings that are saved, gui selected or given at command line */
17
18 typedef struct
19 {
20     int type;                   /* 0=Off, 1=Digital, 2=Analog, 3=Fuzzy */
21     //    int with_seconds;     /* 0=No seconds, 1=With seconds */
22     //    int when_update;      /* 0=Updates before fish, 1=After */
23     int horz;                   /* Horizontal placement, 0=Left, 1=Center, 2=Right*/
24     int vert;                   /* Vertical placement, 0=Top, 1=Center, 2=Bottom*/
25         
26     /* For the digital clock */
27     GaiColor digital_colour;    /* RGB settings for digital clock */
28
29
30     int digital_blinking;       /* If no seconds, 1=Blink colon */
31     //    int digital_font_size;        /* 0=Small font, 1=Large font */
32
33     /* For the fuzzy clock */
34     GaiColor fuzzy_colour;              /* Color for fuzzy clock */
35
36     /* For the analog clock */
37     GaiColor analog_colour_hour;        /* Colour of all the pointers */
38     GaiColor analog_colour_min;
39     GaiColor analog_colour_sec;
40
41     int analog_keep_circular;   /* 0=Size adjusts after size of applet, 
42                                    1=Make it circular. */
43
44     /* New better suited for GAI pref */
45     int analog_seconds;
46     int digital_seconds;
47
48
49     int draw;
50     int digital_fontsize;
51
52 } Clock_settings;
53
54
55
56 void clock_init(void);
57 void clock_update(int);
58 void clock_exit(void);
59 Clock_settings *clock_get_settings_ptr(void);
60
61 #endif