-
Notifications
You must be signed in to change notification settings - Fork 16
/
XPDFTreeP.h
87 lines (70 loc) · 2.19 KB
/
XPDFTreeP.h
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
//========================================================================
//
// XPDFTreeP.h
//
// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef XPDFTREEP_H
#define XPDFTREEP_H
#include <Xm/ManagerP.h>
#include "XPDFTree.h"
extern "C" {
typedef void (*XPDFLayoutProc)(Widget widget, Widget instigator);
typedef void (*XPDFCalcSizeProc)(Widget widget, Widget instigator,
Dimension *totalWidth,
Dimension *totalHeight);
typedef Boolean (*XPDFNeedRelayoutProc)(Widget oldWidget, Widget newWidget);
#define XPDFInheritCreateGC ((XtWidgetProc)_XtInherit)
#define XPDFInheritDestroyGC ((XtWidgetProc)_XtInherit)
#define XPDFInheritLayout ((XPDFLayoutProc)_XtInherit)
#define XPDFInheritCalcSize ((XPDFCalcSizeProc)_XtInherit)
#define XPDFInheritNeedRelayout ((XPDFNeedRelayoutProc)_XtInherit)
typedef struct {
XtWidgetProc createGC;
XtWidgetProc destroyGC;
XPDFLayoutProc layout;
XPDFCalcSizeProc calcSize;
XPDFNeedRelayoutProc needRelayout;
XtPointer extension;
} XPDFTreeClassPart;
typedef struct _XPDFTreeClassRec {
CoreClassPart coreClass;
CompositeClassPart compositeClass;
ConstraintClassPart constraintClass;
XmManagerClassPart managerClass;
XPDFTreeClassPart treeClass;
} XPDFTreeClassRec;
externalref XPDFTreeClassRec xpdfTreeClassRec;
typedef struct _XPDFTreeEntry XPDFTreeEntry;
typedef struct {
Dimension marginWidth;
Dimension marginHeight;
XtCallbackList selectCallback;
GC plainGC;
GC dottedGC;
XPDFTreeEntry *root;
int redrawY;
} XPDFTreePart;
typedef struct _XPDFTreeRec {
CorePart core;
CompositePart composite;
ConstraintPart constraint;
XmManagerPart manager;
XPDFTreePart tree;
} XPDFTreeRec;
#define XPDFTreeIndex (XmManagerIndex + 1)
typedef struct _XPDFTreeConstraintPart {
Widget entryParent;
Boolean entryExpanded;
int entryPosition;
XPDFTreeEntry *e;
} XPDFTreeConstraintPart, *XPDFTreeConstraint;
typedef struct _XPDFTreeConstraintRec {
XmManagerConstraintPart manager;
XPDFTreeConstraintPart tree;
} XPDFTreeConstraintRec, *XPDFTreeConstraintPtr;
#define XPDFTreeCPart(w) \
(&((XPDFTreeConstraintPtr)(w)->core.constraints)->tree)
} // extern "C"
#endif