wmail: Specify libdockapper header file directory.
[dockapps.git] / pclock / src / PClock.h
blob1a6c7e5cb025608681e501f2fc96d18d0e30c426
1 /* -*- Mode: C; fill-column: 79 -*- *******************************************
2 *******************************************************************************
3 pclock -- a simple analog clock program for the X Window System
4 Copyright (C) 1998 Alexander Kourakos
5 Time-stamp: <1998-05-28 21:04:30 awk@oxygene.vnet.net>
7 This program is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free Software
9 Foundation; either version 2 of the License, or (at your option) any later
10 version.
12 This program is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along with
17 this program; if not, write to the Free Software Foundation, Inc.,
18 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 Author: Alexander Kourakos
21 Email: Alexander@Kourakos.com
22 Web: http://www.kourakos.com/~awk/pclock/
23 *******************************************************************************
24 **************************************************************************** */
26 #ifndef PClock_H
27 #define PClock_H 1
29 #include <unistd.h>
31 #define NAME "pclock"
32 #define CLASS "PClock"
34 #ifndef TRUE
35 #define TRUE 1
36 #endif
37 #ifndef FALSE
38 #define FALSE 0
39 #endif
41 #define SIZE 64
43 #define STRING_LENGTH 256
45 /* needs to be an even divisor of 1e6 */
46 #define PERIOD 200000L
48 typedef struct options {
49 int under_windowmaker, show_seconds;
50 int hand_width, second_hand_width;
51 int hour_hand_length, minute_hand_length, second_hand_length;
52 char hand_color[STRING_LENGTH], second_hand_color[STRING_LENGTH];
53 char background_pixmap[STRING_LENGTH];
54 } options;
56 extern options option;
58 void CreateWindow(int, char *[]);
59 void DestroyWindow(void);
61 void UpdateClock(void);
62 void HandleEvents(int *);
64 #endif
66 /******************************************************************************
67 *******************************************************************************
68 END OF FILE
69 *******************************************************************************
70 ******************************************************************************/