-
Notifications
You must be signed in to change notification settings - Fork 7
/
SGMLTextP.h
121 lines (97 loc) · 4.23 KB
/
SGMLTextP.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
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
/*==================================================================*/
/* */
/* SGMLTextObject */
/* */
/* T.Johnson - ([email protected]) June.92 */
/* */
/* Defines a text segment for the SGMLHyper widget */
/* */
/*==================================================================*/
#ifndef SGMLTEXTP_H
#define SGMLTEXTP_H
#include "SGMLText.h"
/* SGMLText class */
typedef void (*ComputeSizeProc)();
typedef Boolean (*AdjustSizeProc)();
typedef void (*AdjustPositionProc)();
typedef void (*ExposeProc)();
typedef void (*ActivateProc)();
typedef void (*HiliteProc)();
typedef Widget (*ContainsProc)();
typedef void (*CallCreateCallbackProc)();
typedef void (*CallMapCallbackProc)();
typedef void (*MakeVisibleProc)();
#define SGMLInheritComputeSize ((ComputeSizeProc) _XtInherit)
#define SGMLInheritAdjustSize ((AdjustSizeProc) _XtInherit)
#define SGMLInheritAdjustPosition ((AdjustPositionProc) _XtInherit)
#define SGMLInheritExpose ((ExposeProc) _XtInherit)
#define SGMLInheritActivate ((ActivateProc) _XtInherit)
#define SGMLInheritHilite ((HiliteProc) _XtInherit)
#define SGMLInheritContains ((ContainsProc) _XtInherit)
#define SGMLInheritCallCreateCallback ((CallCreateCallbackProc) _XtInherit)
#define SGMLInheritCallMapCallback ((CallMapCallbackProc) _XtInherit)
#define SGMLInheritMakeVisible ((MakeVisibleProc) _XtInherit)
typedef struct _SGMLTextClassPart{
ComputeSizeProc compute_size;
AdjustSizeProc adjust_size;
AdjustPositionProc adjust_position;
ExposeProc expose;
ActivateProc activate;
HiliteProc hilite;
ContainsProc contains;
CallCreateCallbackProc call_create_callback;
CallMapCallbackProc call_map_callback;
MakeVisibleProc make_visible;
XtPointer extension;
} SGMLTextClassPart;
typedef struct _SGMLTextClassRec{
ObjectClassPart object_class;
SGMLTextClassPart sgml_text_class;
} SGMLTextClassRec, *SGMLTextObjectClass;
extern SGMLTextClassRec sGMLTextClassRec;
typedef struct _SGMLRendition {
Pixel color;
Boolean outline;
int underline;
Dimension underline_height;
XFontStruct *font;
} SGMLRendition;
typedef struct _SGMLTextPart {
String text; /* pointer to text */
String param; /* pointer to parameters */
int length; /* length of text */
int param_length ; /* length of parameters */
SGMLCoord begin;
SGMLCoord end;
Dimension width,height; /* Size of drawn text */
Position margin;
int right_margin;
int left_margin;
int right_indent;
int left_indent;
int paragraph_indent;
Dimension space_before;
Dimension space_after;
int break_before;
int break_after;
int alignment;
Boolean sensitive;
SGMLRendition normal_rendition;
SGMLRendition sensitive_rendition;
Dimension ascent;
Dimension depth;
Dimension spacing;
Boolean size_valid;
XtPointer userdata;
GC gc;
GC invert_gc;
Boolean own_gcs;
XtCallbackList activate; /* callback list */
XtCallbackList create; /* callback list */
XtCallbackList map; /* callback list */
} SGMLTextPart;
typedef struct _SGMLTextRec {
ObjectPart object;
SGMLTextPart sgml_text;
} SGMLTextRec;
#endif SGMLTEXTP_H