New import
git-svn-id: http://tint2.googlecode.com/svn/trunk@13 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
39
src/clock/clock.h
Normal file
39
src/clock/clock.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/**************************************************************************
|
||||
* clock :
|
||||
* - draw clock, adjust width
|
||||
*
|
||||
**************************************************************************/
|
||||
|
||||
#ifndef CLOCK_H
|
||||
#define CLOCK_H
|
||||
|
||||
#include <sys/time.h>
|
||||
#include "common.h"
|
||||
#include "area.h"
|
||||
|
||||
|
||||
typedef struct Clock {
|
||||
// --------------------------------------------------
|
||||
// always start with area
|
||||
Area area;
|
||||
|
||||
config_color font;
|
||||
PangoFontDescription *time1_font_desc;
|
||||
PangoFontDescription *time2_font_desc;
|
||||
int time1_posy;
|
||||
int time2_posy;
|
||||
char *time1_format;
|
||||
char *time2_format;
|
||||
|
||||
struct timeval clock;
|
||||
int time_precision;
|
||||
} Clock;
|
||||
|
||||
|
||||
// initialize clock : y position, precision, ...
|
||||
void init_clock(Clock *clock, int panel_height);
|
||||
|
||||
int draw_foreground_clock (void *obj, cairo_t *c);
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user