2 |
7u83 |
1 |
/*
|
|
|
2 |
COPYRIGHT NOTICE
|
|
|
3 |
|
|
|
4 |
This program is the proprietary property of IXI Ltd, a subsidiary
|
|
|
5 |
of the Santa Cruz Operation (SCO). Use, reproduction, production
|
|
|
6 |
of amended versions and/or transfer of this program is permitted
|
|
|
7 |
PROVIDED THAT:
|
|
|
8 |
|
|
|
9 |
(a) This legend be preserved on any such reproduction and amended
|
|
|
10 |
version.
|
|
|
11 |
|
|
|
12 |
(b) Any recipient of such reproduction or amended version accept
|
|
|
13 |
the conditions set out in this legend.
|
|
|
14 |
|
|
|
15 |
IXI accepts no liability whatsoever in relation to any use to
|
|
|
16 |
which this program may be put and gives no warranty as to the
|
|
|
17 |
program's suitability for any purpose.
|
|
|
18 |
|
|
|
19 |
All rights reserved.
|
|
|
20 |
|
|
|
21 |
Copyright (c) 1995, 1996
|
|
|
22 |
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
/* SCO CID (IXI) LabelP.h,v 1.1 1996/08/08 14:12:58 wendland Exp */
|
|
|
28 |
|
|
|
29 |
%%
|
|
|
30 |
#ifndef __MOTIF_P_HEADERS
|
|
|
31 |
#error Unexpected access to Motif P headers
|
|
|
32 |
#endif
|
|
|
33 |
%%
|
|
|
34 |
|
|
|
35 |
+USE "motif/1_2", "Xm/Label.h";
|
|
|
36 |
+USE "motif/1_2", "Xm/PrimitiveP.h";
|
|
|
37 |
|
|
|
38 |
+FIELD (struct) _XmLabelClassPart := {
|
|
|
39 |
|
|
|
40 |
XtWidgetProc setOverrideCallback;
|
|
|
41 |
XmMenuProc menuProcs;
|
|
|
42 |
String translations;
|
|
|
43 |
XtPointer extension;
|
|
|
44 |
};
|
|
|
45 |
|
|
|
46 |
+TYPEDEF _XmLabelClassPart XmLabelClassPart;
|
|
|
47 |
|
|
|
48 |
+FIELD (struct) _XmLabelClassRec := {
|
|
|
49 |
CoreClassPart core_class;
|
|
|
50 |
XmPrimitiveClassPart primitive_class;
|
|
|
51 |
XmLabelClassPart label_class;
|
|
|
52 |
};
|
|
|
53 |
|
|
|
54 |
+TYPEDEF _XmLabelClassRec XmLabelClassRec;
|
|
|
55 |
|
|
|
56 |
+EXP lvalue XmLabelClassRec xmLabelClassRec;
|
|
|
57 |
|
|
|
58 |
+CONST int LABEL_ACC_PAD;
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
/* The Label instance record */
|
|
|
62 |
|
|
|
63 |
+FIELD (struct) _XmLabelPart := {
|
|
|
64 |
_XmString _label;
|
|
|
65 |
_XmString _acc_text;
|
|
|
66 |
KeySym mnemonic;
|
|
|
67 |
XmStringCharSet mnemonicCharset;
|
|
|
68 |
char *accelerator;
|
|
|
69 |
unsigned char label_type;
|
|
|
70 |
unsigned char alignment;
|
|
|
71 |
unsigned char string_direction;
|
|
|
72 |
XmFontList font;
|
|
|
73 |
|
|
|
74 |
Dimension margin_height;
|
|
|
75 |
Dimension margin_width;
|
|
|
76 |
|
|
|
77 |
Dimension margin_left;
|
|
|
78 |
Dimension margin_right;
|
|
|
79 |
Dimension margin_top;
|
|
|
80 |
Dimension margin_bottom;
|
|
|
81 |
|
|
|
82 |
Boolean recompute_size;
|
|
|
83 |
|
|
|
84 |
Pixmap pixmap;
|
|
|
85 |
Pixmap pixmap_insen;
|
|
|
86 |
|
|
|
87 |
GC normal_GC;
|
|
|
88 |
GC insensitive_GC;
|
|
|
89 |
XRectangle TextRect;
|
|
|
90 |
XRectangle acc_TextRect;
|
|
|
91 |
Boolean skipCallback;
|
|
|
92 |
unsigned char menu_type;
|
|
|
93 |
};
|
|
|
94 |
|
|
|
95 |
+TYPEDEF _XmLabelPart XmLabelPart;
|
|
|
96 |
|
|
|
97 |
+FIELD (struct) _XmLabelRec := {
|
|
|
98 |
CorePart core;
|
|
|
99 |
XmPrimitivePart primitive;
|
|
|
100 |
XmLabelPart label;
|
|
|
101 |
};
|
|
|
102 |
|
|
|
103 |
+TYPEDEF _XmLabelRec XmLabelRec;
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
+MACRO Dimension Lab_MarginWidth(Widget);
|
|
|
107 |
+MACRO Dimension Lab_MarginHeight(Widget);
|
|
|
108 |
+MACRO Dimension Lab_MarginTop(Widget);
|
|
|
109 |
+MACRO Dimension Lab_MarginBottom(Widget);
|
|
|
110 |
+MACRO Dimension Lab_MarginRight(Widget);
|
|
|
111 |
+MACRO Dimension Lab_MarginLeft(Widget);
|
|
|
112 |
+MACRO short Lab_TextRect_x(Widget);
|
|
|
113 |
+MACRO short Lab_TextRect_y(Widget);
|
|
|
114 |
+MACRO unsigned short Lab_TextRect_width(Widget);
|
|
|
115 |
+MACRO unsigned short Lab_TextRect_height(Widget);
|
|
|
116 |
|
|
|
117 |
+MACRO Boolean Lab_IsText(Widget);
|
|
|
118 |
+MACRO Boolean Lab_IsPixmap(Widget);
|
|
|
119 |
|
|
|
120 |
+MACRO XmFontList Lab_Font(Widget);
|
|
|
121 |
|
|
|
122 |
+MACRO KeySym Lab_Mnemonic(Widget);
|
|
|
123 |
+MACRO char * Lab_Accelerator(Widget);
|
|
|
124 |
+MACRO _XmString Lab_AcceleratorText(Widget);
|
|
|
125 |
+MACRO unsigned char Lab_MenuType(Widget);
|
|
|
126 |
+MACRO Dimension Lab_Shadow(Widget);
|
|
|
127 |
+MACRO Dimension Lab_Highlight(Widget);
|
|
|
128 |
+MACRO Dimension Lab_Baseline(Widget);
|
|
|
129 |
|
|
|
130 |
+FUNC void _XmCalcLabelDimensions(Widget wid);
|
|
|
131 |
|
|
|
132 |
|