]> Dogcows Code - chaz/tint2/blob - src/clock/clock.h
fixed bug : clock resize when date changed, number of desktop changed
[chaz/tint2] / src / clock / clock.h
1 /**************************************************************************
2 * Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
3 *
4 * Clock with fonctionnal data (timeval, precision) and drawing data (area, font, ...).
5 * Each panel use his own drawing data.
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 int time1_posy;
23 int time2_posy;
24 } Clock;
25
26
27 extern char *time1_format;
28 extern char *time2_format;
29 extern struct timeval time_clock;
30 extern int time_precision;
31 extern PangoFontDescription *time1_font_desc;
32 extern PangoFontDescription *time2_font_desc;
33
34
35 // initialize clock : y position, precision, ...
36 void init_clock(Clock *clock, Area *parent);
37
38 void draw_foreground_clock (void *obj, cairo_t *c, int active);
39
40 void resize_clock (void *obj);
41
42 #endif
This page took 0.032863 seconds and 4 git commands to generate.