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