/usr/include/Xm/TreeP.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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | /*
* 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 _XmTreeP_h_
#define _XmTreeP_h_
/************************************************************
* INCLUDE FILES
*************************************************************/
#include <Xm/HierarchyP.h>
#include <Xm/Tree.h>
#include <Xm/xmlist.h>
/************************************************************
* TYPEDEFS AND DEFINES
*************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/************************************************************
* MACROS
*************************************************************/
#define XmTree_h_node_space(w) (((XmTreeWidget)(w))->tree.h_node_space)
#define XmTree_v_node_space(w) (((XmTreeWidget)(w))->tree.v_node_space)
#define XmTree_connect_style(w) (((XmTreeWidget)(w))->tree.connect_style)
#define XmTree_max_width(w) (((XmTreeWidget)(w))->tree.max_width)
#define XmTree_max_height(w) (((XmTreeWidget)(w))->tree.max_height)
#define XmTree_child_op_list(w) (((XmTreeWidget)(w))->tree.child_op_list)
#define XmTree_ul_point(w) (((XmTreeWidget)(w))->tree.ul_point)
#define XmTree_lr_point(w) (((XmTreeWidget)(w))->tree.lr_point)
#define XmTree_orientation(w) (((XmTreeWidget)(w))->tree.orientation)
#define XmTree_compress_style(w) (((XmTreeWidget)(w))->tree.compress_style)
#define XmTree_vertical_delta(w) (((XmTreeWidget)(w))->tree.vertical_delta)
#define XmTree_horizontal_delta(w) (((XmTreeWidget)(w))->tree.horizontal_delta)
#define XmTreeC_open_close_padding(c) (((XmTreeConstraintPtr)(c))->tree.open_close_padding)
#define XmTreeC_box_x(c) (((XmTreeConstraintPtr)(c))->tree.box_x)
#define XmTreeC_box_y(c) (((XmTreeConstraintPtr)(c))->tree.box_y)
#define XmTreeC_bb_width(c) (((XmTreeConstraintPtr)(c))->tree.bb_width)
#define XmTreeC_bb_height(c) (((XmTreeConstraintPtr)(c))->tree.bb_height)
#define XmTreeC_widget_offset(c) (((XmTreeConstraintPtr)(c))->tree.widget_offset)
#define XmTreeC_placed(c) (((XmTreeConstraintPtr)(c))->tree.placed)
#define XmTreeC_color(c) (((XmTreeConstraintPtr)(c))->tree.color)
#define XmTreeC_background_color(c) (((XmTreeConstraintPtr)(c))->tree.background_color)
#define XmTreeC_line_width(c) (((XmTreeConstraintPtr)(c))->tree.line_width)
#define XmTreeC_line_style(c) (((XmTreeConstraintPtr)(c))->tree.line_style)
#define XmTreeC_gc(c) (((XmTreeConstraintPtr)(c))->tree.gc)
#define XmTreeC_new_x(c) (((XmTreeConstraintPtr)(c))->tree.new_x)
#define XmTreeC_new_y(c) (((XmTreeConstraintPtr)(c))->tree.new_y)
#define XmTreeC_oc_new_x(c) (((XmTreeConstraintPtr)(c))->tree.oc_new_x)
#define XmTreeC_oc_new_y(c) (((XmTreeConstraintPtr)(c))->tree.oc_new_y)
#define XmTreeC_map(c) (((XmTreeConstraintPtr)(c))->tree.map)
#define XmTreeC_unmap(c) (((XmTreeConstraintPtr)(c))->tree.unmap)
#define XmTreeC_move(c) (((XmTreeConstraintPtr)(c))->tree.move)
#define XmTreeC_is_compressed(c) (((XmTreeConstraintPtr)(c))->tree.is_compressed)
/************************************************************
* GLOBAL DECLARATIONS
*************************************************************/
typedef struct {
XtPointer extension; /* Just in case we need it later. */
} TreeClassPart;
typedef struct _XmTreeClassRec {
CoreClassPart core_class;
CompositeClassPart composite_class;
ConstraintClassPart constraint_class;
XmManagerClassPart manager_class;
HierarchyClassPart hierarchy_class;
TreeClassPart tree_class;
} XmTreeClassRec;
externalref XmTreeClassRec xmTreeClassRec;
typedef struct _TreeNodeInfo {
/*
* Public (Resource) data.
*/
int open_close_padding; /* Number of pixels to leave between o/c button
and node button (can be negative). */
/*
* Private data.
*/
Position box_x, box_y;
Dimension bb_width, bb_height; /*Bounding box for myself and my children*/
Dimension widget_offset; /* Amount of space to leave for the open
close button to the left of the node.*/
Boolean placed;
Pixel color; /* color to draw line in. */
int line_width;
GC gc;
Position new_x, new_y, oc_new_x, oc_new_y;
Boolean map, unmap, move;
Boolean is_compressed; /* for space compression, is this node moved? */
/* more resources */
int line_style;
Pixel background_color; /* color to draw line in. */
} TreeNodeInfo;
typedef struct _TreeConstraintRec {
XmManagerConstraintPart manager;
HierNodeInfo hierarchy;
TreeNodeInfo tree;
} XmTreeConstraintRec, TreeConstraintRec, *TreeConstraints, *XmTreeConstraintPtr;
typedef struct _TreePart {
/* Resources */
Dimension h_node_space, v_node_space; /* Space between various nodes. */
XmTreeConnectStyle connect_style; /* The connection style. */
/* Private State */
Dimension max_width; /* Our new desired width. */
Dimension max_height; /* Our new desired height. */
XmList child_op_list; /* List of child operations */
XPoint ul_point, lr_point; /* Bounding box for exposure compression. */
/* more resources */
unsigned char orientation; /* XmHORIZONTAL or XmVERTICAL */
XmTreeCompressStyle compress_style; /* how to do space compression */
Dimension vertical_delta; /* if doing space compression, how many pixels */
/* to offset alternating siblings vertically */
Dimension horizontal_delta; /* or horizontally */
} TreePart;
typedef struct _XmTreeRec {
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XmManagerPart manager;
HierarchyPart hierarchy;
TreePart tree;
} XmTreeRec;
/*
* Typedefs to conform to the XmField macro's naming convention
*/
typedef TreePart XmTreePart;
typedef TreeNodeInfo XmTreeConstraintPart;
/************************************************************
* EXTERNAL DECLARATIONS
*************************************************************/
extern XmTreeClassRec xmTreeClassRec;
/************************************************************
* STATIC DECLARATIONS
*************************************************************/
#ifdef __cplusplus
} /* Closes scope of 'extern "C"' declaration */
#endif
#if defined(VMS) || defined(__VMS)
#include <X11/apienvrst.h>
#endif
#endif /* _TreeP_h */
|