File indexing completed on 2025-01-18 10:15:30
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 #ifndef _XmTreeP_h_
0026 #define _XmTreeP_h_
0027
0028
0029
0030
0031
0032
0033 #include <Xm/HierarchyP.h>
0034 #include <Xm/Tree.h>
0035 #include <Xm/xmlist.h>
0036
0037
0038
0039
0040
0041 #ifdef __cplusplus
0042 extern "C" {
0043 #endif
0044
0045
0046
0047
0048
0049
0050 #define XmTree_h_node_space(w) (((XmTreeWidget)(w))->tree.h_node_space)
0051 #define XmTree_v_node_space(w) (((XmTreeWidget)(w))->tree.v_node_space)
0052 #define XmTree_connect_style(w) (((XmTreeWidget)(w))->tree.connect_style)
0053 #define XmTree_max_width(w) (((XmTreeWidget)(w))->tree.max_width)
0054 #define XmTree_max_height(w) (((XmTreeWidget)(w))->tree.max_height)
0055 #define XmTree_child_op_list(w) (((XmTreeWidget)(w))->tree.child_op_list)
0056 #define XmTree_ul_point(w) (((XmTreeWidget)(w))->tree.ul_point)
0057 #define XmTree_lr_point(w) (((XmTreeWidget)(w))->tree.lr_point)
0058 #define XmTree_orientation(w) (((XmTreeWidget)(w))->tree.orientation)
0059 #define XmTree_compress_style(w) (((XmTreeWidget)(w))->tree.compress_style)
0060 #define XmTree_vertical_delta(w) (((XmTreeWidget)(w))->tree.vertical_delta)
0061 #define XmTree_horizontal_delta(w) (((XmTreeWidget)(w))->tree.horizontal_delta)
0062
0063 #define XmTreeC_open_close_padding(c) (((XmTreeConstraintPtr)(c))->tree.open_close_padding)
0064 #define XmTreeC_box_x(c) (((XmTreeConstraintPtr)(c))->tree.box_x)
0065 #define XmTreeC_box_y(c) (((XmTreeConstraintPtr)(c))->tree.box_y)
0066 #define XmTreeC_bb_width(c) (((XmTreeConstraintPtr)(c))->tree.bb_width)
0067 #define XmTreeC_bb_height(c) (((XmTreeConstraintPtr)(c))->tree.bb_height)
0068 #define XmTreeC_widget_offset(c) (((XmTreeConstraintPtr)(c))->tree.widget_offset)
0069 #define XmTreeC_placed(c) (((XmTreeConstraintPtr)(c))->tree.placed)
0070 #define XmTreeC_color(c) (((XmTreeConstraintPtr)(c))->tree.color)
0071 #define XmTreeC_background_color(c) (((XmTreeConstraintPtr)(c))->tree.background_color)
0072 #define XmTreeC_line_width(c) (((XmTreeConstraintPtr)(c))->tree.line_width)
0073 #define XmTreeC_line_style(c) (((XmTreeConstraintPtr)(c))->tree.line_style)
0074 #define XmTreeC_gc(c) (((XmTreeConstraintPtr)(c))->tree.gc)
0075 #define XmTreeC_new_x(c) (((XmTreeConstraintPtr)(c))->tree.new_x)
0076 #define XmTreeC_new_y(c) (((XmTreeConstraintPtr)(c))->tree.new_y)
0077 #define XmTreeC_oc_new_x(c) (((XmTreeConstraintPtr)(c))->tree.oc_new_x)
0078 #define XmTreeC_oc_new_y(c) (((XmTreeConstraintPtr)(c))->tree.oc_new_y)
0079 #define XmTreeC_map(c) (((XmTreeConstraintPtr)(c))->tree.map)
0080 #define XmTreeC_unmap(c) (((XmTreeConstraintPtr)(c))->tree.unmap)
0081 #define XmTreeC_move(c) (((XmTreeConstraintPtr)(c))->tree.move)
0082 #define XmTreeC_is_compressed(c) (((XmTreeConstraintPtr)(c))->tree.is_compressed)
0083
0084
0085
0086
0087
0088 typedef struct {
0089 XtPointer extension;
0090 } TreeClassPart;
0091
0092 typedef struct _XmTreeClassRec {
0093 CoreClassPart core_class;
0094 CompositeClassPart composite_class;
0095 ConstraintClassPart constraint_class;
0096 XmManagerClassPart manager_class;
0097 HierarchyClassPart hierarchy_class;
0098 TreeClassPart tree_class;
0099 } XmTreeClassRec;
0100 externalref XmTreeClassRec xmTreeClassRec;
0101
0102 typedef struct _TreeNodeInfo {
0103
0104
0105
0106
0107 int open_close_padding;
0108
0109
0110
0111
0112
0113
0114 Position box_x, box_y;
0115 Dimension bb_width, bb_height;
0116 Dimension widget_offset;
0117
0118 Boolean placed;
0119
0120 Pixel color;
0121 int line_width;
0122
0123 GC gc;
0124
0125 Position new_x, new_y, oc_new_x, oc_new_y;
0126 Boolean map, unmap, move;
0127 Boolean is_compressed;
0128
0129
0130 int line_style;
0131 Pixel background_color;
0132 } TreeNodeInfo;
0133
0134 typedef struct _TreeConstraintRec {
0135 XmManagerConstraintPart manager;
0136 HierNodeInfo hierarchy;
0137 TreeNodeInfo tree;
0138 } XmTreeConstraintRec, TreeConstraintRec, *TreeConstraints, *XmTreeConstraintPtr;
0139
0140
0141 typedef struct _TreePart {
0142
0143
0144 Dimension h_node_space, v_node_space;
0145
0146 XmTreeConnectStyle connect_style;
0147
0148
0149
0150
0151 Dimension max_width;
0152 Dimension max_height;
0153
0154 XmList child_op_list;
0155 XPoint ul_point, lr_point;
0156
0157
0158 unsigned char orientation;
0159
0160 XmTreeCompressStyle compress_style;
0161
0162 Dimension vertical_delta;
0163
0164 Dimension horizontal_delta;
0165 } TreePart;
0166
0167 typedef struct _XmTreeRec {
0168 CorePart core;
0169 CompositePart composite;
0170 ConstraintPart constraint;
0171 XmManagerPart manager;
0172 HierarchyPart hierarchy;
0173 TreePart tree;
0174 } XmTreeRec;
0175
0176
0177
0178
0179 typedef TreePart XmTreePart;
0180 typedef TreeNodeInfo XmTreeConstraintPart;
0181
0182
0183
0184
0185
0186 extern XmTreeClassRec xmTreeClassRec;
0187
0188
0189
0190
0191
0192 #ifdef __cplusplus
0193 }
0194 #endif
0195
0196 #if defined(VMS) || defined(__VMS)
0197 #include <X11/apienvrst.h>
0198 #endif
0199
0200 #endif
0201
0202
0203
0204
0205
0206