1/* $XConsortium: bbox.h,v 2.12 91/07/10 19:34:09 converse Exp $ */
2/*
3 *			  COPYRIGHT 1987
4 *		   DIGITAL EQUIPMENT CORPORATION
5 *		       MAYNARD, MASSACHUSETTS
6 *			ALL RIGHTS RESERVED.
7 *
8 * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND
9 * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION.
10 * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR
11 * ANY PURPOSE.  IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
12 *
13 * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT
14 * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN
15 * ADDITION TO THAT SET FORTH ABOVE.
16 *
17 *
18 * Permission to use, copy, modify, and distribute this software and its
19 * documentation for any purpose and without fee is hereby granted, provided
20 * that the above copyright notice appear in all copies and that both that
21 * copyright notice and this permission notice appear in supporting documen-
22 * tation, and that the name of Digital Equipment Corporation not be used in
23 * advertising or publicity pertaining to distribution of the software without
24 * specific, written prior permission.
25 */
26/* $XFree86$ */
27
28#ifndef _bbox_h
29#define _bbox_h
30
31	/* for radio button boxes only */
32
33extern ButtonBox RadioBBoxCreate      (Scrn, const char *);
34extern void	 RadioBBoxAddButton   (ButtonBox, const char *, Boolean);
35extern void	 RadioBBoxSet	      (Button);
36extern char *	 RadioBBoxGetCurrent  (ButtonBox);
37extern void	 RadioBBoxDeleteButton(Button);
38
39	/* for other kinds of button boxes */
40
41extern ButtonBox BBoxCreate	      (Scrn, const char *);
42extern void	 BBoxAddButton (ButtonBox, const char *, WidgetClass, Boolean);
43extern void	 BBoxDeleteButton     (Button);
44
45	/* for all kinds of button boxes */
46
47extern void	 BBoxInit             (void);
48extern void	 BBoxEnable	      (Button);
49extern void	 BBoxDisable	      (Button);
50extern Button	 BBoxFindButtonNamed  (ButtonBox, const char *);
51extern Button	 BBoxFindButton	      (ButtonBox, Widget);
52extern Button	 BBoxButtonNumber     (ButtonBox, int);
53extern int	 BBoxNumButtons	      (ButtonBox);
54extern char *	 BBoxNameOfButton     (Button);
55extern Widget	 BBoxMenuOfButton     (Button);
56extern void	 BBoxLockSize	      (ButtonBox);
57extern Boolean	 BBoxIsGrandparent    (ButtonBox, Widget);
58
59	/* operations upon folder buttons */
60
61extern void	BBoxMailFlag	      (ButtonBox, const char*, int);
62
63#endif /* _bbox_h */
64