X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclock%2Fclock.h;h=d9d16fb29ad71f7a60c33d59301539181bbed076;hb=21dcd195642692401f855ef07b239364b5ef0c1b;hp=a0747971c6d3e8904be79571bdad5ff235ca6476;hpb=0357305cec0f78ba4d4717467025ead6be25ce0c;p=chaz%2Ftint2 diff --git a/src/clock/clock.h b/src/clock/clock.h index a074797..d9d16fb 100644 --- a/src/clock/clock.h +++ b/src/clock/clock.h @@ -15,27 +15,37 @@ typedef struct Clock { - // always start with area - Area area; + // always start with area + Area area; - config_color font; - int time1_posy; - int time2_posy; + config_color font; + int time1_posy; + int time2_posy; } Clock; extern char *time1_format; +extern char *time1_timezone; extern char *time2_format; -extern struct timeval time_clock; -extern int time_precision; +extern char *time2_timezone; +extern char *time_tooltip_format; +extern char *time_tooltip_timezone; extern PangoFontDescription *time1_font_desc; extern PangoFontDescription *time2_font_desc; +extern char *clock_lclick_command; +extern char *clock_rclick_command; +extern int clock_enabled; // initialize clock : y position, precision, ... -void init_clock(Clock *clock, Area *parent); +void init_clock(); +void init_clock_panel(void *panel); +void cleanup_clock(); -void draw_foreground_clock (void *obj, cairo_t *c, int active); +void draw_clock (void *obj, cairo_t *c, int active); +void resize_clock (void *obj); + +void clock_action(int button); #endif