Back to home page

EIC code displayed by LXR

 
 

    


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

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  *   No new fields need to be defined
0026  *   for the Toggle widget class record
0027  *
0028  ********************************************/
0029 
0030 #ifndef _XmToggleButtonP_h
0031 #define _XmToggleButtonP_h
0032 
0033 #include <Xm/ToggleB.h>
0034 #include <Xm/LabelP.h>
0035 
0036 #ifdef __cplusplus
0037 extern "C" {
0038 #endif
0039 
0040 typedef struct _XmToggleButtonClassPart
0041  {
0042    XtPointer extension;   /* Pointer to extension record */
0043  } XmToggleButtonClassPart;
0044 
0045 
0046 /****************************************************
0047  *
0048  * Full class record declaration for Toggle class
0049  *
0050  ****************************************************/
0051 typedef struct _XmToggleButtonClassRec {
0052     CoreClassPart       core_class;
0053     XmPrimitiveClassPart    primitive_class;
0054     XmLabelClassPart        label_class;
0055     XmToggleButtonClassPart toggle_class;
0056 } XmToggleButtonClassRec;
0057 
0058 
0059 externalref XmToggleButtonClassRec xmToggleButtonClassRec;
0060 
0061 
0062 /********************************************
0063  *
0064  * No new fields needed for instance record
0065  *
0066  ********************************************/
0067 
0068 typedef struct _XmToggleButtonPart
0069 { 
0070    unsigned char    ind_type;
0071    Boolean      visible;
0072    Dimension        spacing;
0073    Dimension        indicator_dim;
0074    Boolean      indicator_set;
0075    Pixmap       on_pixmap; 
0076    Pixmap       insen_pixmap; 
0077    unsigned char    set;
0078    unsigned char    visual_set; /* used for visuals and does not reflect
0079                                         the true state of the button */
0080    unsigned char    ind_on;
0081    Boolean      fill_on_select;
0082    Pixel        select_color;
0083    GC           select_GC;
0084    GC           background_gc;
0085    GC                   arm_GC;    /* used in menus when enableEtchedInMenu 
0086                       is set. */
0087    XtCallbackList   value_changed_CB,
0088                         arm_CB,
0089                         disarm_CB;
0090    Boolean          Armed;
0091    unsigned char        toggle_mode;
0092    Boolean      reversed_select;
0093    Pixmap               indeterminate_pixmap;
0094    Pixmap               indeterminate_insensitive_pixmap;
0095    Pixel                unselect_color;
0096    GC                   unselect_GC;
0097    GC                   indeterminate_GC;
0098    GC                   indeterminate_box_GC;
0099    Dimension        ind_left_delta;
0100    Dimension        ind_right_delta;
0101    Dimension        ind_top_delta;
0102    Dimension        ind_bottom_delta;
0103    Dimension detail_shadow_thickness ;
0104 } XmToggleButtonPart;
0105 
0106 
0107 
0108 /****************************************************************
0109  *
0110  * Full instance record declaration
0111  *
0112  ****************************************************************/
0113 
0114 typedef struct _XmToggleButtonRec {
0115     CorePart            core;
0116     XmPrimitivePart     primitive;
0117     XmLabelPart     label;
0118     XmToggleButtonPart  toggle;
0119 } XmToggleButtonRec;
0120 
0121 
0122 /********    Private Function Declarations    ********/
0123 
0124 
0125 /********    End Private Function Declarations    ********/
0126 
0127 
0128 #ifdef __cplusplus
0129 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0130 #endif
0131 
0132 #endif /* _XmToggleButtonP_h */
0133 /* DON'T ADD ANYTHING AFTER THIS #endif */