1 /* $XConsortium: Grid.h /main/5 1995/07/15 20:40:49 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 * 31 * Grid.h: The widget public header file for the ExmGrid demonstration 32 * widget. 33 * 34 ******************************************************************************/ 35 36 37 /* Ensure that the file be included only once. */ 38 #ifndef _ExmGrid_h 39 #define _ExmGrid_h 40 41 42 /* Include appropriate files. */ 43 #include <Xm/Xm.h> /* widget public header file for XmManager */ 44 45 46 /* Allow for C++ compilation. */ 47 #ifdef __cplusplus 48 extern "C" { 49 #endif 50 51 52 /* Define the widget class and widget record. */ 53 externalref WidgetClass exmGridWidgetClass; 54 55 typedef struct _ExmGridClassRec * ExmGridWidgetClass; 56 typedef struct _ExmGridRec * ExmGridWidget; 57 58 59 /* Define an IsSubclass macro. */ 60 #ifndef ExmIsGrid 61 #define ExmIsGrid(w) XtIsSubclass(w, exmGridWidgetClass) 62 #endif 63 64 65 /* Define string equivalents of new resource names. */ 66 #define ExmNgridMarginWidthWithinCell "gridMarginWidthWithinCell" 67 #define ExmNgridMarginHeightWithinCell "gridMarginHeightWithinCell" 68 69 #define ExmCGridMarginWidthWithinCell "GridMarginWidthWithinCell" 70 #define ExmCGridMarginHeightWithinCell "GridMarginHeightWithinCell" 71 72 73 /* Specify the API for this widget. */ 74 extern Widget ExmCreateGrid( 75 Widget parent, 76 char *name, 77 ArgList arglist, 78 Cardinal argcount); 79 extern Widget ExmCreateGridDialog( 80 Widget parent, 81 char *name, 82 ArgList arglist, 83 Cardinal argcount); 84 85 /* Allow for C++ compilation. */ 86 #ifdef __cplusplus 87 } /* Close scope of 'extern "C"' declaration which encloses file. */ 88 #endif 89 90 91 /* Ensure that the file be included only once. */ 92 #endif /* _ExmGrid_h */ 93 /* DON'T ADD ANYTHING AFTER THIS #endif */ 94 95