]> Dogcows Code - chaz/tint2/blob - src/clock/clock.h
0d3e9e1309caf14429b2156c58a47a08f44032cf
[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 // --------------------------------------------------
17 // always start with area
18 Area area;
19
20 config_color font;
21 PangoFontDescription *time1_font_desc;
22 PangoFontDescription *time2_font_desc;
23 int time1_posy;
24 int time2_posy;
25 char *time1_format;
26 char *time2_format;
27
28 struct timeval clock;
29 int time_precision;
30 } Clock;
31
32
33 // initialize clock : y position, precision, ...
34 void init_clock(Clock *clock, int panel_height);
35
36 int draw_foreground_clock (void *obj, cairo_t *c);
37
38
39 #endif
This page took 0.037489 seconds and 3 git commands to generate.