Back to home page

EIC code displayed by LXR

 
 

    


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

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  */
0024 
0025 #ifndef XmButtonBoxP_h
0026 #define XmButtonBoxP_h
0027 
0028 #if defined(VMS) || defined(__VMS)
0029 #include <X11/apienvset.h>
0030 #endif
0031 
0032 /************************************************************
0033  *      INCLUDE FILES
0034  ************************************************************/
0035 
0036 #include <Xm/ManagerP.h>
0037 #include <Xm/ButtonBox.h>
0038 
0039 /************************************************************
0040  *      TYPEDEFS AND DEFINES
0041  ************************************************************/
0042 
0043 /************************************************************
0044  *      MACROS
0045  ************************************************************/
0046 
0047 #define XmButtonBoxIndex (XmManagerIndex + 1)
0048 
0049 #define XmButtonBox_equal_size(w) (((XmButtonBoxWidget)(w))->button_box.equal_size)
0050 #define XmButtonBox_fill_option(w) (((XmButtonBoxWidget)(w))->button_box.fill_option)
0051 #define XmButtonBox_margin_width(w) (((XmButtonBoxWidget)(w))->button_box.margin_width)
0052 #define XmButtonBox_margin_height(w) (((XmButtonBoxWidget)(w))->button_box.margin_height)
0053 #define XmButtonBox_spacing(w) (((XmButtonBoxWidget)(w))->button_box.spacing)
0054 #define XmButtonBox_orientation(w) (((XmButtonBoxWidget)(w))->button_box.orientation)
0055 #define XmButtonBox_default_button(w) (((XmButtonBoxWidget)(w))->button_box.default_button)
0056 
0057 #define XmButtonBoxC_pref_width(w) (((XmBBoxConstraints)((Widget)(w))->core.constraints)->bbox.pref_width)
0058 #define XmButtonBoxC_pref_height(w) (((XmBBoxConstraints)((Widget)(w))->core.constraints)->bbox.pref_height)
0059 
0060 /************************************************************
0061  *      GLOBAL DECLARATIONS
0062  ************************************************************/
0063 
0064 #ifdef __cplusplus
0065 extern "C" {
0066 #endif
0067 
0068 typedef struct _XmButtonBoxClassPart
0069 {
0070     XtPointer extension;        /* In case its needed later */
0071 } XmButtonBoxClassPart;
0072 
0073 typedef struct _XmButtonBoxClassRec
0074 {
0075     CoreClassPart           core_class;
0076     CompositeClassPart      composite_class;
0077     ConstraintClassPart         constraint_class;
0078     XmManagerClassPart          manager_class;
0079     XmButtonBoxClassPart        buttonbox_class;
0080 
0081 } XmButtonBoxClassRec;
0082 
0083 typedef struct _XmBBoxConstraintsPart {
0084     Dimension pref_width, pref_height;
0085 } XmBBoxConstraintsPart;
0086     
0087 typedef struct _XmBBoxConstraintsRec {
0088     XmManagerConstraintPart manager;
0089     XmBBoxConstraintsPart   bbox;
0090 } XmBBoxConstraintsRec, *XmBBoxConstraints;
0091 
0092 /*
0093  * Match XmOffset nomenclature
0094  */
0095 typedef XmBBoxConstraintsPart XmButtonBoxConstraintPart;
0096 
0097 typedef struct
0098 {
0099     /* resources */
0100 
0101     Boolean     equal_size;
0102     XmFillOption    fill_option;
0103     Dimension       margin_width, margin_height;
0104     Dimension       spacing;
0105     unsigned char   orientation;
0106     Widget          default_button;
0107     
0108 } XmButtonBoxPart;
0109 
0110 typedef struct _XmButtonBoxRec
0111 {
0112     CorePart            core;
0113     CompositePart       composite;
0114     ConstraintPart      constraint;
0115     XmManagerPart       manager;
0116     XmButtonBoxPart     button_box;
0117 
0118 }  XmButtonBoxRec;
0119 
0120 /************************************************************
0121  *       EXTERNAL DECLARATIONS
0122  ************************************************************/
0123 
0124 extern XmButtonBoxClassRec xmButtonBoxClassRec;
0125 
0126 /************************************************************
0127  *       STATIC DECLARATIONS
0128  ************************************************************/
0129 
0130 #ifdef __cplusplus
0131 }   /* Closes scope of 'extern "C"' declaration */
0132 #endif
0133 
0134 #if defined(VMS) || defined(__VMS)
0135 #include <X11/apienvrst.h>
0136 #endif
0137 
0138 #endif /* _XmButtonBoxP_h */