rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1MailboxP.h
blobc976a42aa485c99aeb924c6d945ca93d7bceb3e8
1 /*
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>
24 #ifdef SYSV
25 #define MAILBOX_DIRECTORY "/usr/mail"
26 #else
27 #define MAILBOX_DIRECTORY "/usr/spool/mail"
28 #endif
30 typedef struct { /* new fields for mailbox widget */
31 /* resources */
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 */
40 /* local state */
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? */
45 struct _mbimage {
46 Pixmap bitmap, mask; /* depth 1, describing shape */
47 Pixmap pixmap; /* full depth pixmap */
48 int width, height; /* geometry of pixmaps */
49 } full, empty;
50 #ifdef SHAPE
51 Boolean shapeit; /* do shape extension */
52 struct {
53 Pixmap mask;
54 int x, y;
55 } shape_cache; /* last set of info */
56 #endif
57 } MailboxPart;
59 typedef struct _MailboxRec { /* full instance record */
60 CorePart core;
61 MailboxPart mailbox;
62 } MailboxRec;
65 typedef struct { /* new fields for mailbox class */
66 int dummy; /* stupid C compiler */
67 } MailboxClassPart;
69 typedef struct _MailboxClassRec { /* full class record declaration */
70 CoreClassPart core_class;
71 MailboxClassPart mailbox_class;
72 } MailboxClassRec;
74 extern MailboxClassRec mailboxClassRec; /* class pointer */
76 #endif /* _XawMailboxP_h */