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
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 **************************************************************************** */
32 #define CLASS "PClock"
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
];
56 extern options option
;
58 void CreateWindow(int, char *[]);
59 void DestroyWindow(void);
61 void UpdateClock(void);
62 void HandleEvents(int *);
66 /******************************************************************************
67 *******************************************************************************
69 *******************************************************************************
70 ******************************************************************************/