Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /* $XConsortium: ContItemT.h /main/5 1995/07/15 20:49:36 drk $ */
0002 /*
0003  * Motif
0004  *
0005  * Copyright (c) 1987-2012, The Open Group. All rights reserved.
0006  *
0007  * These libraries and programs are free software; you can
0008  * redistribute them and/or modify them under the terms of the GNU
0009  * Lesser General Public License as published by the Free Software
0010  * Foundation; either version 2 of the License, or (at your option)
0011  * any later version.
0012  *
0013  * These libraries and programs are distributed in the hope that
0014  * they will be useful, but WITHOUT ANY WARRANTY; without even the
0015  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
0016  * PURPOSE. See the GNU Lesser General Public License for more
0017  * details.
0018  *
0019  * You should have received a copy of the GNU Lesser General Public
0020  * License along with these librararies and programs; if not, write
0021  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
0022  * Floor, Boston, MA 02110-1301 USA
0023  */
0024 /*
0025  * HISTORY
0026  */
0027 #ifndef _XmContainerItemT_H
0028 #define _XmContainerItemT_H
0029 
0030 #include <Xm/Xm.h>
0031 
0032 #ifdef __cplusplus
0033 extern "C" {
0034 #endif
0035 
0036 externalref XrmQuark XmQTcontainerItem;
0037 
0038 /* Trait structures and typedefs, place typedefs first */
0039 
0040 /* this one can be expanded in the future */
0041 typedef struct _XmContainerItemDataRec {
0042     Mask valueMask ;        /* on setValues, give the information on
0043                  what to change in the Icon, on getValues,
0044                  on what to put in the record returned */
0045     unsigned char view_type;
0046     unsigned char visual_emphasis;
0047     Dimension icon_width ;    /* get value */
0048     Cardinal detail_count;   /* get value */
0049 } XmContainerItemDataRec, *XmContainerItemData;
0050 
0051 #define ContItemAllValid             (0xFFFF)
0052 #define ContItemViewType         (1L<<0)
0053 #define ContItemVisualEmphasis       (1L<<1)
0054 #define ContItemIconWidth            (1L<<2)
0055 #define ContItemDetailCount          (1L<<3)
0056 
0057 
0058 typedef void (*XmContainerItemSetValuesProc)(Widget w, 
0059                     XmContainerItemData contItemData);
0060 typedef void (*XmContainerItemGetValuesProc)(Widget w, 
0061                     XmContainerItemData contItemData);
0062 
0063 /* Version 0: initial release. */
0064 
0065 typedef struct _XmContainerItemTraitRec {
0066   int                  version;     /* 0 */
0067   XmContainerItemSetValuesProc setValues;
0068   XmContainerItemGetValuesProc getValues;
0069 } XmContainerItemTraitRec, *XmContainerItemTrait;
0070 
0071 
0072 #ifdef __cplusplus
0073 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0074 #endif
0075 
0076 #endif /* _XmContainerItemT_H */