Back to home page

EIC code displayed by LXR

 
 

    


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

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  *  File:   SSpinBP.h
0026  *  Date:   June 1, 1995
0027  *  Author: Mitchell Greess
0028  *
0029  *  Contents:
0030  *      Private header file for the XmSimpleSpinBox widget.
0031  *      Implements the XmSimpleSpinBox.
0032  *
0033  ******************************************************************************/
0034 
0035 #ifndef _XmSSpinBP_h
0036 #define _XmSSpinBP_h
0037 
0038 #include <Xm/SpinBP.h>
0039 #include <Xm/SSpinB.h>
0040 
0041 #ifdef __cplusplus
0042 extern "C" {
0043 #endif
0044 
0045 typedef struct _XmSimpleSpinBoxConstraint
0046 {
0047       int           unused;
0048 } XmSimpleSpinBoxConstraintPart, *XmSimpleSpinBoxConstraint;
0049 
0050 typedef struct _XmSimpleSpinBoxConstraintRec
0051 {
0052     XmManagerConstraintPart manager;
0053     XmSpinBoxConstraintPart spinBox;
0054     XmSimpleSpinBoxConstraintPart simpleSpinBox;
0055 } XmSimpleSpinBoxConstraintRec, *XmSimpleSpinBoxConstraintPtr;
0056 
0057 /*  Simple Spin Box class structure  */
0058 typedef struct _XmSimpleSpinBoxClassPart
0059 {
0060     XtPointer           extension;  /* not used */
0061 } XmSimpleSpinBoxClassPart;
0062 
0063 
0064 /*  Full class record declaration for Simple Spin Box class  */
0065 typedef struct _XmSimpleSpinBoxClassRec
0066 {
0067     CoreClassPart       core_class;
0068     CompositeClassPart      composite_class;
0069     ConstraintClassPart     constraint_class;
0070     XmManagerClassPart      manager_class;
0071     XmSpinBoxClassPart      spinBox_class;
0072     XmSimpleSpinBoxClassPart    simpleSpinBox_class;
0073 } XmSimpleSpinBoxClassRec;
0074 
0075 externalref XmSimpleSpinBoxClassRec xmSimpleSpinBoxClassRec;
0076 
0077 /*  The Simple Spin Box instance record  */
0078 typedef struct _XmSimpleSpinBoxPart
0079 {
0080     /*
0081      * (Public) resources
0082      */
0083     unsigned char   arrow_sensitivity;
0084     Boolean     wrap;
0085 
0086     /* Resources for autonumeric mode */
0087     short       decimal_points;
0088     int         increment_value;
0089     int         maximum_value;
0090     int         minimum_value;
0091 
0092     /* Resources for string values mode */
0093     int         num_values; /* number of XmString in the array */
0094     int         position;   /* 1-based pos'n of current selection */
0095     unsigned char   position_type;  /* governs interpretation of .position:
0096                        XmPOSITION_{ARRAY,VALUE} */
0097     XmStringTable   values;     /* array of XmString */
0098 
0099     /* Resources for the text field child of the XmSimpleSpinBox */
0100     short       columns;    /* number of columns */
0101     Boolean     editable;   /* whether the text field is editable */
0102     unsigned char   sb_child_type;  /* XmSTRING or XmNUMERIC */
0103     Widget      text_field;
0104 
0105     /* (Private) state */
0106 } XmSimpleSpinBoxPart;
0107 
0108 
0109 /*  Full instance record declaration  */
0110 
0111 typedef struct _XmSimpleSpinBoxRec
0112 {
0113   CorePart          core;
0114   CompositePart         composite;
0115   ConstraintPart        constraint;
0116   XmManagerPart         manager;
0117   XmSpinBoxPart         spinBox;
0118   XmSimpleSpinBoxPart       simpleSpinBox;
0119 } XmSimpleSpinBoxRec;
0120 
0121 #ifdef __cplusplus
0122 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0123 #endif
0124 
0125 #endif  /* _SSpinBP_h */
0126 /* DON'T ADD ANYTHING AFTER THIS #endif */
0127 
0128 
0129