1 /*******************************************************************************
5 ** static char sccsid[] = "@(#)dayglance.h 1.11 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
7 ** $XConsortium: dayglance.h /main/5 1996/04/12 14:58:09 rswiston $
9 ** RESTRICTED CONFIDENTIAL INFORMATION:
11 ** The information in this document is subject to special
12 ** restrictions in a confidential disclosure agreement between
13 ** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
14 ** document outside HP, IBM, Sun, USL, SCO, or Univel without
15 ** Sun's specific written approval. This document and all copies
16 ** and derivative works thereof must be returned or destroyed at
19 ** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 *******************************************************************************/
24 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
25 * (c) Copyright 1993, 1994 International Business Machines Corp. *
26 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
27 * (c) Copyright 1993, 1994 Novell, Inc. *
37 #define MOBOX_AREA_WIDTH (int)(c->view->winw*.4)
38 #define APPT_AREA_WIDTH (c->view->winw-MOBOX_AREA_WIDTH-2)
39 #define HRBOX_MARGIN 30
41 typedef struct dayglance {
45 int month1; /* tick in 1st mo */
47 int month2; /* tick in 2nd mo */
49 int month3; /* tick in 3rd mo */
51 int col_w; /* width of month box col */
52 int row_h; /* height of month box row */
53 int mobox_width; /* width of month box row */
63 extern void init_dayview P((Calendar*));
64 extern void day_button P((Widget, XtPointer, XtPointer));
65 extern void init_mo P((Calendar*));
66 extern void monthbox_datetoxy P((Calendar*));
67 extern void monthbox_xytodate P((Calendar*, int x, int y));
68 extern void paint_dayview P((Calendar*, Boolean,
69 XRectangle*, Boolean));
70 extern void paint_day P((Calendar*));
71 extern void print_day_range P((Calendar*, Tick, Tick));
72 extern void day_event P((XEvent*));
73 extern int morning P((int));
74 extern void paint_day_header P((Calendar *, Tick, void *));
75 extern void cleanup_after_dayview P((Calendar *));