awips2/nativeLib/rary.ohd.ifp/inc/treeP.h
root 133dc97f67 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 06a8b51d6d [formerly 9f19e3f712 [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 9f19e3f712
Former-commit-id: a02aeb236c
2012-01-06 08:55:05 -06:00

85 lines
1.7 KiB
C

/***********************************************************************
File: treeP.h
Type: private header file for the Tree_widget
Function: defines the class record for the Tree_widget
Source: X Window Systems Programming and Applications with Xt
- by Douglas A. Young
-- Modified 7/17/90 for OSF/Motif Widgets for use on an IBM-RS6000
***********************************************************************/
#ifndef treeP_h
#define treeP_h
typedef struct _XsTreeClassPart
{
int ignore;
}
XsTreeClassPart;
typedef struct _XsTreeClassRec
{
CoreClassPart core_class;
CompositeClassPart composite_class;
ConstraintClassPart constraint_class;
XsTreeClassPart tree_class;
}
XsTreeClassRec;
extern XsTreeClassRec XstreeClassRec;
typedef struct
{
Dimension *array;
int size;
}
TreeOffset, *TreeOffsetPtr;
typedef struct
{
Dimension h_min_space;
Dimension v_min_space;
Pixel foreground;
GC gc;
TreeOffsetPtr horizontal;
TreeOffsetPtr vertical;
Widget tree_root;
}
XsTreePart;
typedef struct _XsTreeRec
{
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XsTreePart tree;
}
XsTreeRec;
typedef struct _TreeConstraintsPart
{
Widget super_node;
WidgetList sub_nodes;
long n_sub_nodes;
long max_sub_nodes;
Position x, y;
}
TreeConstraintsPart;
typedef struct _TreeConstraintsRec
{
TreeConstraintsPart tree;
}
TreeConstraintsRec, *TreeConstraints;
#define TREE_CONSTRAINT(w) ((TreeConstraints) ((w)->core.constraints))
#endif