X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclock%2Fclock.h;h=f607f7284f53b1199f81a3782ec14bf0f28c71f7;hb=bdf5fa4daad88f6a65b6f4be3acae7b663906e86;hp=4eea83701ca8fdd08bc3b1bf4b0ddffe55f6f519;hpb=cb9288bcb990b5ff5b550285f6d3ef752bd44d68;p=chaz%2Ftint2 diff --git a/src/clock/clock.h b/src/clock/clock.h index 4eea837..f607f72 100644 --- a/src/clock/clock.h +++ b/src/clock/clock.h @@ -3,7 +3,7 @@ * * Clock with fonctionnal data (timeval, precision) and drawing data (area, font, ...). * Each panel use his own drawing data. -* +* **************************************************************************/ #ifndef CLOCK_H @@ -19,22 +19,29 @@ typedef struct Clock { Area area; config_color font; - PangoFontDescription *time1_font_desc; - PangoFontDescription *time2_font_desc; int time1_posy; int time2_posy; } Clock; + extern char *time1_format; extern char *time2_format; extern struct timeval time_clock; extern int time_precision; +extern PangoFontDescription *time1_font_desc; +extern PangoFontDescription *time2_font_desc; +extern char *clock_lclick_command; +extern char *clock_rclick_command; // initialize clock : y position, precision, ... -void init_clock(Clock *clock, int panel_height); +void init_clock(); +void init_precision(); + +void draw_clock (void *obj, cairo_t *c, int active); -void draw_foreground_clock (void *obj, cairo_t *c, int active); +void resize_clock (void *obj); +void clock_action(int button); #endif