Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /* $XConsortium: AccColorT.h /main/5 1995/07/15 20:47:59 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 /*
0026  * HISTORY
0027  */
0028 
0029 #ifndef _XmAccessColorsT_H
0030 #define _XmAccessColorsT_H
0031 
0032 #include <Xm/Xm.h>
0033 #include <X11/Xresource.h>
0034 
0035 #ifdef __cplusplus
0036 extern "C" {
0037 #endif
0038 
0039 externalref XrmQuark XmQTaccessColors;
0040 
0041 /* this one can be expanded in the future */
0042 typedef struct _XmAccessColorDataRec {
0043     Mask  valueMask ;
0044     Pixel foreground  ;
0045     Pixel background  ;
0046     Pixel highlight_color  ;
0047     Pixel top_shadow_color  ;
0048     Pixel bottom_shadow_color ;
0049     Pixel select_color ;
0050 } XmAccessColorDataRec, *XmAccessColorData;
0051 
0052 typedef void (*XmAccessColorsGetProc)(Widget widget, 
0053                       XmAccessColorData color_data);
0054 typedef void (*XmAccessColorsSetProc)(Widget widget, 
0055                       XmAccessColorData color_data);
0056 
0057 /* Trait structures and typedefs, place typedefs first */
0058 
0059 /* Version 0: initial release. */
0060 
0061 typedef struct _XmAccessColorsTraitRec {
0062   int           version;    /* 0 */
0063   XmAccessColorsGetProc getColors;
0064   XmAccessColorsGetProc setColors;
0065 } XmAccessColorsTraitRec, *XmAccessColorsTrait;
0066 
0067 #define AccessColorInvalid         0L
0068 #define AccessForeground           (1L<<0)  
0069 #define AccessBackgroundPixel      (1L<<1)   
0070 #define AccessHighlightColor       (1L<<2)   
0071 #define AccessTopShadowColor       (1L<<3)   
0072 #define AccessBottomShadowColor    (1L<<4)   
0073 #define AccessSelectColor          (1L<<5)   
0074 
0075 #ifdef __cplusplus
0076 }  /* Close scope of 'extern "C"' declaration which encloses file. */
0077 #endif
0078 
0079 /* to do:
0080 
0081  add it to PushB/G and ToggleB/G so that they can report their
0082    select color
0083  implement the setValues ?
0084 
0085 */
0086 
0087 #endif /* _XmAccessColorsT_H */