This file is indexed.

/usr/include/Xm/IconBoxP.h is in libmotif-dev 2.3.4-13.

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
/*
 * 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 _XmIconBoxP_h
#define _XmIconBoxP_h

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

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

#ifdef __cplusplus
extern "C" {
#endif

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


/*
 * Hack to get around naming conventions.  The XmConstraintPartOffset macro
 * requires our contraint part structure to have this name
 */
#define XmIconBoxConstraintPart IconInfo

/*
 * Access macros for widget instance fields
 */
#define XmIconBox_min_v_cells(w)	(((XmIconBoxWidget)(w))->box.min_v_cells)
#define XmIconBox_min_h_cells(w)	(((XmIconBoxWidget)(w))->box.min_h_cells)
#define XmIconBox_v_margin(w)	(((XmIconBoxWidget)(w))->box.v_margin)
#define XmIconBox_h_margin(w)	(((XmIconBoxWidget)(w))->box.h_margin)
#define XmIconBox_min_cell_width(w)  (((XmIconBoxWidget)(w))->box.min_cell_width)
#define XmIconBox_min_cell_height(w) (((XmIconBoxWidget)(w))->box.min_cell_height)
#define XmIconBox_cell_width(w)	(((XmIconBoxWidget)(w))->box.cell_width)
#define XmIconBox_cell_height(w)	(((XmIconBoxWidget)(w))->box.cell_height)

#define XmIconBoxC_cell_x(w)      (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.cell_x)
#define XmIconBoxC_cell_y(w)      (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.cell_y)
#define XmIconBoxC_pref_width(w)  (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.pref_width)
#define XmIconBoxC_pref_height(w) (((XmIconBoxConstraintsRec*)((w)->core.constraints))->icon.pref_height)

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

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

typedef struct {
    XtPointer extension;	/* Just in case we need it later. */
} XmIconBoxClassPart;

typedef struct _XmIconBoxClassRec {
    CoreClassPart		core_class;
    CompositeClassPart		composite_class;
    ConstraintClassPart		constraint_class;
    XmManagerClassPart		manager_class;
    XmIconBoxClassPart	        box_class;
} XmIconBoxClassRec;

typedef struct {
    /* resources */

    Dimension min_v_cells;	/* Default number of cells in the vert dir. */
    Dimension min_h_cells;	/* Default number of cells in the horiz dir. */
    Dimension v_margin;		/* Amount of space to leave between cells */
    Dimension h_margin;		/* and window edges. */
    Dimension min_cell_width;	/* Minimum width of the cells. */
    Dimension min_cell_height;	/* Minimum height of the cells. */

    /* private state */

    Dimension cell_width;	/* Width and height of all cells. */
    Dimension cell_height;

} XmIconBoxPart;


typedef struct _XmIconBoxRec {
    CorePart		core;
    CompositePart	composite;
    ConstraintPart	constraint;
    XmManagerPart	manager;
    XmIconBoxPart	box;
} XmIconBoxRec;

typedef struct _IconInfo {

    /*
     * Resources.
     */

    short cell_x;		/* X location of this icon in cell space. */
    short cell_y;		/* Y location of this icon in cell space. */

    /*
     * Private state.
     */

    Dimension pref_width, pref_height; /* The preferred size of this widget. */
} IconInfo;

typedef struct _XmIconBoxConstraintsRec {
    XmManagerConstraintPart	manager;
    IconInfo			icon;
} XmIconBoxConstraintsRec, *XmIconBoxConstraints;

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

extern XmIconBoxClassRec xmIconBoxClassRec;

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

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

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

#endif /* _XmIconBoxP_h */