]> Dogcows Code - chaz/tint2/blob - src/clock/clock.h
b886d4a39882f550e4c47639a5370c9a7f06a938
[chaz/tint2] / src / clock / clock.h
1 /**************************************************************************
2 * clock :
3 * - draw clock, adjust width
4 *
5 **************************************************************************/
6
7 #ifndef CLOCK_H
8 #define CLOCK_H
9
10 #include <sys/time.h>
11 #include "common.h"
12 #include "area.h"
13
14
15 typedef struct Clock {
16 // always start with area
17 Area area;
18
19 config_color font;
20 PangoFontDescription *time1_font_desc;
21 PangoFontDescription *time2_font_desc;
22 int time1_posy;
23 int time2_posy;
24 char *time1_format;
25 char *time2_format;
26
27 struct timeval clock;
28 int time_precision;
29 } Clock;
30
31
32 // initialize clock : y position, precision, ...
33 void init_clock(Clock *clock, int panel_height);
34
35 void draw_foreground_clock (void *obj, cairo_t *c, int active);
36
37
38 #endif
This page took 0.032199 seconds and 3 git commands to generate.