1 /* $XConsortium: TabB.h /main/5 1995/07/15 20:42:07 drk $ */
2 /*
3  * Motif
4  *
5  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
6  *
7  * These libraries and programs are free software; you can
8  * redistribute them and/or modify them under the terms of the GNU
9  * Lesser General Public License as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  *
13  * These libraries and programs are distributed in the hope that
14  * they will be useful, but WITHOUT ANY WARRANTY; without even the
15  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16  * PURPOSE. See the GNU Lesser General Public License for more
17  * details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with these librararies and programs; if not, write
21  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
22  * Floor, Boston, MA 02110-1301 USA
23  */
24 /*
25  * HISTORY
26  */
27 
28 /*******************************************************************************
29  *
30  * TabB.h: The widget public header file for the ExmTabButton demonstration
31  *         widget.
32  *
33  ******************************************************************************/
34 
35 
36 /* Ensure that the file be included only once. */
37 #ifndef _ExmTabB_h
38 #define _ExmTabB_h
39 
40 
41 /* Allow for C++ compilation. */
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 
47 /* Include appropriate files. */
48 #include <Exm/CommandB.h>  /* public header file for ExmCommandButton */
49 #include <Xm/JoinSideT.h> /* contains defs. needed by ExmNopenSide resource */
50 
51 
52 /* Define the widget class and widget record. */
53 externalref WidgetClass exmTabButtonWidgetClass;
54 
55 typedef struct _ExmTabButtonClassRec *ExmTabButtonWidgetClass;
56 typedef struct _ExmTabButtonRec *ExmTabButtonWidget;
57 
58 
59 /* Define an IsSubclass macro. */
60 #ifndef ExmIsTabButton
61 #define ExmIsTabButton(w) XtIsSubclass(w, exmTabButtonWidgetClass)
62 #endif
63 
64 
65 /* Define string equivalents of new resource names. */
66 #define ExmNopenSide  "openSide"
67 #define ExmCOpenSide  "OpenSide"
68 #define ExmROpenSide  "ExmOpenSide"
69 
70 
71 /* Specify the API for this widget. */
72 extern Widget ExmCreateTabButton(Widget    parent,
73                                  char     *name,
74                                  Arg      *arglist,
75                                  Cardinal  argCount);
76 
77 
78 /* Allow for C++ compilation. */
79 #ifdef __cplusplus
80 } /* Close scope of 'extern "C"' declaration which encloses file. */
81 #endif
82 
83 
84 /* Ensure that the file be included only once. */
85 #endif /* _ExmTabB_h */
86 /* DON'T ADD ANYTHING AFTER THIS #endif */
87