Back to home page

EIC code displayed by LXR

 
 

    


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

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 _XmPButtonP_h
0024 #define _XmPButtonP_h
0025 
0026 #include <Xm/PushB.h>
0027 #include <Xm/LabelP.h>
0028 
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 /* PushButton class structure */
0034 
0035 typedef struct _XmPushButtonClassPart
0036 {
0037    XtPointer extension;   /* Pointer to extension record */
0038 } XmPushButtonClassPart;
0039 
0040 
0041 /* Full class record declaration for PushButton class */
0042 
0043 typedef struct _XmPushButtonClassRec {
0044     CoreClassPart     core_class;
0045     XmPrimitiveClassPart  primitive_class;
0046     XmLabelClassPart      label_class;
0047     XmPushButtonClassPart pushbutton_class;
0048 } XmPushButtonClassRec;
0049 
0050 
0051 externalref XmPushButtonClassRec xmPushButtonClassRec;
0052 
0053 /* PushButton instance record */
0054 
0055 typedef struct _XmPushButtonPart
0056 {
0057    Boolean      fill_on_arm;
0058    Dimension        show_as_default;
0059    Pixel        arm_color;
0060    Pixmap       arm_pixmap;
0061    XtCallbackList   activate_callback;
0062    XtCallbackList   arm_callback;
0063    XtCallbackList   disarm_callback;
0064 
0065    Boolean      armed;
0066    Pixmap       unarm_pixmap;
0067    GC               fill_gc;
0068    GC               background_gc;
0069    XtIntervalId     timer;  
0070    unsigned char    multiClick;     /* KEEP/DISCARD resource */
0071    int          click_count;
0072    Time         armTimeStamp;
0073    Boolean      compatible;   /* if false it is Motif 1.1 else Motif 1.0  */
0074    Dimension    default_button_shadow_thickness;  
0075         /* New resource - always add it
0076                     to widgets dimension. */
0077 
0078 } XmPushButtonPart;
0079 
0080 
0081 /* Full instance record declaration */
0082 
0083 typedef struct _XmPushButtonRec {
0084     CorePart         core;
0085     XmPrimitivePart  primitive;
0086     XmLabelPart      label;
0087     XmPushButtonPart pushbutton;
0088 } XmPushButtonRec;
0089 
0090 
0091 /********    Private Function Declarations    ********/
0092 
0093 /********    End Private Function Declarations    ********/
0094 
0095 
0096 #ifdef __cplusplus
0097 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0098 #endif
0099 
0100 #endif /* _XmPButtonP_h */
0101 /* DON'T ADD ANYTHING AFTER THIS #endif */