| 1 |
/* $XConsortium: ContainerP.h /main/4 1995/07/15 20:47:12 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 |
/* |
| 26 |
* HISTORY |
| 27 |
*/ |
| 28 |
|
| 29 |
/**************************************************************************** |
| 30 |
* |
| 31 |
* ContainerP.h: The widget private header file for the ExmContainer widget. |
| 32 |
* |
| 33 |
****************************************************************************/ |
| 34 |
|
| 35 |
/* Ensure that the file be included only once. */ |
| 36 |
#ifndef _ExmContainerP_h |
| 37 |
#define _ExmContainerP_h |
| 38 |
|
| 39 |
|
| 40 |
/* Include appropriate files. */ |
| 41 |
#include <Exm/Container.h> /* public header file for ExmContainer */ |
| 42 |
#include <Exm/GridP.h> /* private header file for Grid */ |
| 43 |
|
| 44 |
|
| 45 |
/* Allow for C++ compilation. */ |
| 46 |
#ifdef __cplusplus |
| 47 |
extern "C" { |
| 48 |
#endif |
| 49 |
|
| 50 |
|
| 51 |
/* Define the widget class part. */ |
| 52 |
typedef struct |
| 53 |
{ |
| 54 |
XtPointer extension; |
| 55 |
} ExmContainerClassPart; |
| 56 |
|
| 57 |
|
| 58 |
/* Define the full class record. */ |
| 59 |
typedef struct _ExmContainerClassRec |
| 60 |
{ |
| 61 |
CoreClassPart core_class; |
| 62 |
CompositeClassPart composite_class; |
| 63 |
ConstraintClassPart constraint_class; |
| 64 |
XmManagerClassPart manager_class; |
| 65 |
ExmGridClassPart grid_class; |
| 66 |
ExmContainerClassPart container_class; |
| 67 |
} ExmContainerClassRec; |
| 68 |
|
| 69 |
externalref ExmContainerClassRec exmContainerClassRec; |
| 70 |
|
| 71 |
|
| 72 |
/* Define the widget instance part. */ |
| 73 |
typedef struct |
| 74 |
{ |
| 75 |
/* Provide space for the values of the resources of ExmContainer. */ |
| 76 |
Dimension first_column_width; |
| 77 |
Cardinal * detail_order; |
| 78 |
Cardinal detail_order_count; |
| 79 |
XmTabList detail_tablist ; |
| 80 |
XmStringTable detail_header ; |
| 81 |
Cardinal detail_header_count; |
| 82 |
Pixel select_color; |
| 83 |
unsigned char layout_type; |
| 84 |
|
| 85 |
Widget icon_header; |
| 86 |
|
| 87 |
} ExmContainerPart; |
| 88 |
|
| 89 |
|
| 90 |
/* Define the full instance record. */ |
| 91 |
typedef struct _ExmContainerRec |
| 92 |
{ |
| 93 |
CorePart core; |
| 94 |
CompositePart composite; |
| 95 |
ConstraintPart constraint; |
| 96 |
XmManagerPart manager; |
| 97 |
ExmGridPart grid; |
| 98 |
ExmContainerPart container; |
| 99 |
} ExmContainerRec; |
| 100 |
|
| 101 |
|
| 102 |
/* Define the constraint part structure. */ |
| 103 |
typedef struct _ExmContainerConstraintPart |
| 104 |
{ |
| 105 |
char unused ; |
| 106 |
} ExmContainerConstraintPart, * ExmContainerConstraint; |
| 107 |
|
| 108 |
|
| 109 |
/* Define the full constraint structure. */ |
| 110 |
typedef struct _ExmContainerConstraintRec |
| 111 |
{ |
| 112 |
XmManagerConstraintPart manager; |
| 113 |
ExmGridConstraintPart grid; |
| 114 |
ExmContainerConstraintPart container; |
| 115 |
} ExmContainerConstraintRec, * ExmContainerConstraintPtr; |
| 116 |
|
| 117 |
|
| 118 |
/* Allow for C++ compilation. */ |
| 119 |
#ifdef __cplusplus |
| 120 |
} /* Close scope of 'extern "C"' declaration which encloses file. */ |
| 121 |
#endif |
| 122 |
|
| 123 |
|
| 124 |
/* Ensure that the file be included only once. */ |
| 125 |
#endif /* _ExmContainerP_h */ |