Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:25

0001 /* 
0002  * Motif
0003  *
0004  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0005  *
0006  * These libraries and programs are free software; you can
0007  * redistribute them and/or modify them under the terms of the GNU
0008  * Lesser General Public License as published by the Free Software
0009  * Foundation; either version 2 of the License, or (at your option)
0010  * any later version.
0011  *
0012  * These libraries and programs are distributed in the hope that
0013  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0014  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0015  * PURPOSE. See the GNU Lesser General Public License for more
0016  * details.
0017  *
0018  * You should have received a copy of the GNU Lesser General Public
0019  * License along with these librararies and programs; if not, write
0020  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0021  * Floor, Boston, MA 02110-1301 USA
0022 */ 
0023 #ifndef _XmFormP_h
0024 #define _XmFormP_h
0025 
0026 
0027 #include <Xm/Form.h>
0028 #include <Xm/BulletinBP.h>
0029 
0030 #ifdef __cplusplus
0031 extern "C" {
0032 #endif
0033 
0034 /* define index constants which are used to access attribute array of Form 
0035  * so that subclass of Form can make use of them.
0036  */
0037 
0038 #define _XmFORM_LEFT    0
0039 #define _XmFORM_RIGHT   1
0040 #define _XmFORM_TOP     2
0041 #define _XmFORM_BOTTOM  3
0042 
0043 
0044 typedef struct _XmFormAttachmentRec 
0045 {
0046    unsigned char type;
0047    Widget w;
0048    int percent;
0049    int offset;
0050    int value;
0051    int tempValue;
0052 } XmFormAttachmentRec, * XmFormAttachment;
0053 
0054 
0055 #ifdef att
0056 #undef att
0057 #endif
0058 
0059 typedef struct _XmFormConstraintPart
0060 {
0061    XmFormAttachmentRec att[4];
0062    Widget next_sibling;
0063    Boolean sorted;
0064    Boolean resizable;
0065    Dimension preferred_width, preferred_height;
0066 } XmFormConstraintPart, * XmFormConstraint;
0067 
0068 typedef struct _XmFormConstraintRec
0069 {
0070    XmManagerConstraintPart manager;
0071    XmFormConstraintPart    form;
0072 } XmFormConstraintRec, * XmFormConstraintPtr;
0073 
0074 
0075 /*  Form class structure  */
0076 
0077 typedef struct _XmFormClassPart
0078 {
0079    XtPointer extension;   /* Pointer to extension record */
0080 } XmFormClassPart;
0081 
0082 
0083 /*  Full class record declaration for form class  */
0084 
0085 typedef struct _XmFormClassRec
0086 {
0087    CoreClassPart       core_class;
0088    CompositeClassPart  composite_class;
0089    ConstraintClassPart constraint_class;
0090    XmManagerClassPart  manager_class;
0091    XmBulletinBoardClassPart  bulletin_board_class;
0092    XmFormClassPart     form_class;
0093 } XmFormClassRec;
0094 
0095 externalref XmFormClassRec xmFormClassRec;
0096 
0097 
0098 /*  The Form instance record  */
0099 
0100 typedef struct _XmFormPart
0101 {
0102    Dimension horizontal_spacing;
0103    Dimension vertical_spacing;
0104    int fraction_base;
0105    Boolean rubber_positioning;
0106    Widget first_child;
0107    Boolean initial_width, initial_height;
0108    Boolean processing_constraints;
0109 } XmFormPart;
0110 
0111 
0112 /*  Full instance record declaration  */
0113 
0114 typedef struct _XmFormRec
0115 {
0116    CorePart   core;
0117    CompositePart  composite;
0118    ConstraintPart constraint;
0119    XmManagerPart  manager;
0120    XmBulletinBoardPart  bulletin_board;
0121    XmFormPart     form;
0122 } XmFormRec;
0123 
0124 /********    Private Function Declarations    ********/
0125 
0126 
0127 /********    End Private Function Declarations    ********/
0128 
0129 #ifdef __cplusplus
0130 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0131 #endif
0132 
0133 #endif /* _XmFormP_h */
0134 /* DON'T ADD ANYTHING AFTER THIS #endif */