This file is indexed.

/usr/include/Xm/ColorSP.h is in libmotif-dev 2.3.8-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*
 * Motif
 *
 * Copyright (c) 1987-2012, The Open Group. All rights reserved.
 *
 * These libraries and programs are free software; you can
 * redistribute them and/or modify them under the terms of the GNU
 * Lesser General Public License as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * These libraries and programs are distributed in the hope that
 * they will be useful, but WITHOUT ANY WARRANTY; without even the
 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU Lesser General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with these librararies and programs; if not, write
 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA 02110-1301 USA
 * 
 */

#ifndef	_XmColorSelectorP_h
#define	_XmColorSelectorP_h

#if defined(VMS) || defined(__VMS)
#include <X11/apienvset.h>
#endif

/************************************************************
 *      INCLUDE FILES
 *************************************************************/
		
#include <Xm/ManagerP.h>
#include <Xm/ColorS.h>

/************************************************************
 *      TYPEDEFS AND DEFINES
 *************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

#define XmColorSelector_COLOR_NAME_SIZE 100
#define XmColorSelector_NUM_TOGGLES 2

typedef struct _ColorSelStrings {
    XmString slider_labels[3];

    XmString tog_labels[XmColorSelector_NUM_TOGGLES];
    XmString no_cell_error, file_read_error;
} ColorSelStrings;

typedef struct _ColorInfo {
    char name[XmColorSelector_COLOR_NAME_SIZE], no_space_lower_name[XmColorSelector_COLOR_NAME_SIZE];
    unsigned short red, green, blue;
} ColorInfo;

typedef struct _ColorSelectorClassPart {
    XtPointer 		extension; 
} ColorSelectorClassPart;

typedef struct _XmColorSelectorClassRec
{
    CoreClassPart		core_class;
    CompositeClassPart		composite_class;
    ConstraintClassPart         constraint_class;
    XmManagerClassPart          manager_class;
    ColorSelectorClassPart	color_selector_class;
} XmColorSelectorClassRec;

typedef struct _XmColorSelectorPart
{
    /* resources */

    XmColorMode		color_mode;		/* selector mode	   */
    char	       *color_name;		/* the colorname we select */ 
    String	        rgb_file;      		/* where to look for	   */
    Dimension		margin_width;           /* for geom management     */
    Dimension		margin_height;	        /* for geom management	   */

    ColorSelStrings     strings;                /* strings for I18N. */

    /* private state */

    int			slider_red;	/* slider values		    */
    int			slider_green;	/* slider values		    */
    int			slider_blue;	/* slider values		    */
    Widget		bb;		/* area to hold all the sliders     */
    Widget		sliders[3];	/* red,green,blue sliders(slider)   */
    Widget		scrolled_list;	/* list (scrolled window)	    */
    Widget		list;		/* list (simple)		    */
    Widget		color_window;   /* label to show selected color     */
    Widget		chose_radio;	/* selector type radio box	    */
    Widget		chose_mode[2];	/* selector type toggles	    */

    Pixel		color_pixel;		/* pixel value for colors  */
    Boolean 		good_cell;      /* does color_pixel contain
					 * a good value? */
    ColorInfo 		*colors;        /* infomation about all color names */
    short		num_colors;     /* The number of colors. */
} XmColorSelectorPart;

typedef struct _XmColorSelectorRec
{
    CorePart 		core;
    CompositePart 	composite;
    ConstraintPart      constraint;
    XmManagerPart       manager;
    XmColorSelectorPart	cs;
} XmColorSelectorRec;

typedef struct _XmColorSelectorConstraintPart
{
    XtPointer extension;
} XmColorSelectorConstraintPart;

typedef struct _XmColorSelectorConstraintRec
{
    XmManagerConstraintPart       manager;
    XmColorSelectorConstraintPart cs;
} XmColorSelectorConstraintRec;

/************************************************************
 *      MACROS
 *************************************************************/

#define XmColorSelectorIndex (XmManagerIndex + 1)

#define XmColorS_color_mode(w) (((XmColorSelectorWidget)(w))->cs.color_mode)
#define XmColorS_color_name(w) (((XmColorSelectorWidget)(w))->cs.color_name)
#define XmColorS_rgb_file(w) (((XmColorSelectorWidget)(w))->cs.rgb_file)
#define XmColorS_margin_width(w) (((XmColorSelectorWidget)(w))->cs.margin_width)
#define XmColorS_margin_height(w) (((XmColorSelectorWidget)(w))->cs.margin_height)
#define XmColorS_strings(w) (((XmColorSelectorWidget)(w))->cs.strings)
#define XmColorS_slider_red(w) (((XmColorSelectorWidget)(w))->cs.slider_red)
#define XmColorS_slider_green(w) (((XmColorSelectorWidget)(w))->cs.slider_green)
#define XmColorS_slider_blue(w) (((XmColorSelectorWidget)(w))->cs.slider_blue)
#define XmColorS_bb(w) (((XmColorSelectorWidget)(w))->cs.bb)
#define XmColorS_sliders(w) (((XmColorSelectorWidget)(w))->cs.sliders)
#define XmColorS_scrolled_list(w) (((XmColorSelectorWidget)(w))->cs.scrolled_list)
#define XmColorS_list(w) (((XmColorSelectorWidget)(w))->cs.list)
#define XmColorS_color_window(w) (((XmColorSelectorWidget)(w))->cs.color_window)
#define XmColorS_chose_radio(w) (((XmColorSelectorWidget)(w))->cs.chose_radio)
#define XmColorS_chose_mode(w) (((XmColorSelectorWidget)(w))->cs.chose_mode)
#define XmColorS_color_pixel(w) (((XmColorSelectorWidget)(w))->cs.color_pixel)
#define XmColorS_good_cell(w) (((XmColorSelectorWidget)(w))->cs.good_cell)
#define XmColorS_colors(w) (((XmColorSelectorWidget)(w))->cs.colors)
#define XmColorS_num_colors(w) (((XmColorSelectorWidget)(w))->cs.num_colors)

/************************************************************
 *      GLOBAL DECLARATIONS
 *************************************************************/

/************************************************************
 *       EXTERNAL DECLARATIONS
 ************************************************************/

extern XmColorSelectorClassRec	xmColorSelectorClassRec;

/************************************************************
 *       STATIC DECLARATIONS
 ************************************************************/

#ifdef __cplusplus
}	/* Closes scope of 'extern "C"' declaration */
#endif

#if defined(VMS) || defined(__VMS)
#include <X11/apienvrst.h>
#endif

#endif /* _XmColorSelectP_h DON'T ADD STUFF AFTER THIS #endif */