File: window.h

package info (click to toggle)
xdkcal 0.9d-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 272 kB
  • ctags: 156
  • sloc: ansic: 1,131; sh: 330; makefile: 42
file content (45 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**************************************************
 window.h -- Copyright(c) 1999 Jiro Sekiba <jir@hello.to>
 **************************************************/
#ifndef __WINDOW_H__
#define __WINDOW_H__
#include "config.h"
struct Colors
{
  unsigned long weekday;
  unsigned long holiday;
  unsigned long header;
  unsigned long today;
  unsigned long saturday;
};

enum Style
{
    NORMAL_STYLE,
    MONDAY_STYLE,
    LINE_STYLE
};

extern int target_year;
extern int target_month;

int xdkcal(int year, int month,
           int window_x, int window_y,
           char *fontset,
           char *default_color,
           char *holiday_color,
           char *saturday_color,
           char *today_color,
           char *header_color,
#ifdef HAVE_LIBXEXT
           int shape,
#endif           
           int pad,
           enum Style,
           int draw_mon,
           int draw_week,
           int num_week
           );
int destroy_data(void);
int repaint(void);
#endif