Back to home page

EIC code displayed by LXR

 
 

    


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

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 _XmDButtonP_h
0024 #define _XmDButtonP_h
0025 
0026 #include <Xm/DrawnB.h>
0027 #include <Xm/LabelP.h>
0028 
0029 #ifdef __cplusplus
0030 extern "C" {
0031 #endif
0032 
0033 /* DrawnButton class structure */
0034 
0035 typedef struct _XmDrawnButtonClassPart
0036 {
0037    XtPointer extension;   /* Pointer to extension record */
0038 } XmDrawnButtonClassPart;
0039 
0040 
0041 /* Full class record declaration for DrawnButton class */
0042 
0043 typedef struct _XmDrawnButtonClassRec {
0044     CoreClassPart     core_class;
0045     XmPrimitiveClassPart  primitive_class;
0046     XmLabelClassPart      label_class;
0047     XmDrawnButtonClassPart drawnbutton_class;
0048 } XmDrawnButtonClassRec;
0049 
0050 
0051 externalref  XmDrawnButtonClassRec xmDrawnButtonClassRec;
0052 
0053 
0054 /* DrawnButton instance record */
0055 
0056 typedef struct _XmDrawnButtonPart
0057 {
0058    Boolean      pushbutton_enabled;
0059    unsigned char    shadow_type;
0060    XtCallbackList   activate_callback;
0061    XtCallbackList   arm_callback;
0062    XtCallbackList   disarm_callback;
0063    XtCallbackList   expose_callback;
0064    XtCallbackList   resize_callback;
0065 
0066    Boolean      armed;
0067    Dimension        old_width;
0068    Dimension        old_height;
0069    Dimension        old_shadow_thickness;
0070    Dimension        old_highlight_thickness;
0071    XtIntervalId     timer;
0072    unsigned char    multiClick;         /* KEEP/DISCARD resource */
0073    int              click_count;
0074    Time         armTimeStamp;
0075 
0076 } XmDrawnButtonPart;
0077 
0078 
0079 /* Full instance record declaration */
0080 
0081 typedef struct _XmDrawnButtonRec {
0082     CorePart         core;
0083     XmPrimitivePart  primitive;
0084     XmLabelPart      label;
0085     XmDrawnButtonPart drawnbutton;
0086 } XmDrawnButtonRec;
0087 
0088 
0089 /********    Private Function Declarations    ********/
0090 
0091 
0092 /********    End Private Function Declarations    ********/
0093 
0094 
0095 #ifdef __cplusplus
0096 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0097 #endif
0098 
0099 #endif /* _XmDButtonP_h */
0100 /* DON'T ADD ANYTHING AFTER THIS #endif */