2 * $XConsortium: MailboxP.h,v 1.16 89/05/11 01:05:56 kit Exp $
4 * Copyright 1988 Massachusetts Institute of Technology
6 * Permission to use, copy, modify, and distribute this software and its
7 * documentation for any purpose and without fee is hereby granted, provided
8 * that the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of M.I.T. not be used in advertising or
11 * publicity pertaining to distribution of the software without specific,
12 * written prior permission. M.I.T. makes no representations about the
13 * suitability of this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
16 * Author: Jim Fulton, MIT X Consortium
19 #ifndef _XawMailboxP_h
20 #define _XawMailboxP_h
22 #include <./Xaw3_1Mailbox.h>
25 #define MAILBOX_DIRECTORY "/usr/mail"
27 #define MAILBOX_DIRECTORY "/usr/spool/mail"
30 typedef struct { /* new fields for mailbox widget */
32 int update
; /* seconds between updates */
33 Pixel foreground_pixel
; /* color index of normal state fg */
34 String filename
; /* filename to watch */
35 String check_command
; /* command to exec for mail check */
36 Boolean reverseVideo
; /* do reverse video? */
37 Boolean flipit
; /* do flip of full pixmap */
38 int volume
; /* bell volume */
39 Boolean once_only
; /* ring bell only once on new mail */
41 GC gc
; /* normal GC to use */
42 long last_size
; /* size in bytes of mailboxname */
43 XtIntervalId interval_id
; /* time between checks */
44 Boolean flag_up
; /* is the flag up? */
46 Pixmap bitmap
, mask
; /* depth 1, describing shape */
47 Pixmap pixmap
; /* full depth pixmap */
48 int width
, height
; /* geometry of pixmaps */
51 Boolean shapeit
; /* do shape extension */
55 } shape_cache
; /* last set of info */
59 typedef struct _MailboxRec
{ /* full instance record */
65 typedef struct { /* new fields for mailbox class */
66 int dummy
; /* stupid C compiler */
69 typedef struct _MailboxClassRec
{ /* full class record declaration */
70 CoreClassPart core_class
;
71 MailboxClassPart mailbox_class
;
74 extern MailboxClassRec mailboxClassRec
; /* class pointer */
76 #endif /* _XawMailboxP_h */