1 //========================================================================
5 // Copyright 2002-2003 Glyph & Cog, LLC
7 //========================================================================
12 #include <Xm/ManagerP.h>
17 typedef void (*XPDFLayoutProc
)(Widget widget
, Widget instigator
);
18 typedef void (*XPDFCalcSizeProc
)(Widget widget
, Widget instigator
,
19 Dimension
*totalWidth
,
20 Dimension
*totalHeight
);
21 typedef Boolean (*XPDFNeedRelayoutProc
)(Widget oldWidget
, Widget newWidget
);
23 #define XPDFInheritCreateGC ((XtWidgetProc)_XtInherit)
24 #define XPDFInheritDestroyGC ((XtWidgetProc)_XtInherit)
25 #define XPDFInheritLayout ((XPDFLayoutProc)_XtInherit)
26 #define XPDFInheritCalcSize ((XPDFCalcSizeProc)_XtInherit)
27 #define XPDFInheritNeedRelayout ((XPDFNeedRelayoutProc)_XtInherit)
30 XtWidgetProc createGC
;
31 XtWidgetProc destroyGC
;
32 XPDFLayoutProc layout
;
33 XPDFCalcSizeProc calcSize
;
34 XPDFNeedRelayoutProc needRelayout
;
38 typedef struct _XPDFTreeClassRec
{
39 CoreClassPart coreClass
;
40 CompositeClassPart compositeClass
;
41 ConstraintClassPart constraintClass
;
42 XmManagerClassPart managerClass
;
43 XPDFTreeClassPart treeClass
;
46 externalref XPDFTreeClassRec xpdfTreeClassRec
;
48 typedef struct _XPDFTreeEntry XPDFTreeEntry
;
51 Dimension marginWidth
;
52 Dimension marginHeight
;
53 XtCallbackList selectCallback
;
60 typedef struct _XPDFTreeRec
{
62 CompositePart composite
;
63 ConstraintPart constraint
;
64 XmManagerPart manager
;
68 #define XPDFTreeIndex (XmManagerIndex + 1)
70 typedef struct _XPDFTreeConstraintPart
{
72 Boolean entryExpanded
;
75 } XPDFTreeConstraintPart
, *XPDFTreeConstraint
;
77 typedef struct _XPDFTreeConstraintRec
{
78 XmManagerConstraintPart manager
;
79 XPDFTreeConstraintPart tree
;
80 } XPDFTreeConstraintRec
, *XPDFTreeConstraintPtr
;
82 #define XPDFTreeCPart(w) \
83 (&((XPDFTreeConstraintPtr)(w)->core.constraints)->tree)