Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
/* SCO CID (IXI) ListP.h,v 1.1 1996/08/08 14:13:00 wendland Exp */
27
 
28
%%
29
#ifndef __MOTIF_P_HEADERS
30
#error Unexpected access to Motif P headers
31
#endif
32
%%
33
 
34
+USE "motif/1_2", "Xm/List.h";
35
+USE "motif/1_2", "Xm/PrimitiveP.h";
36
+USE "motif/1_2", "Xm/ScrollBar.h";
37
+USE "motif/1_2", "Xm/ScrolledW.h";
38
 
39
+FIELD (struct) _XmListDragConvertStruct := {
40
 
41
   Widget 		w;
42
   XmString 		* strings;
43
   int 			num_strings;
44
};
45
 
46
+TYPEDEF _XmListDragConvertStruct XmListDragConvertStruct;
47
 
48
+FIELD (struct) _XmListClassPart := {
49
 
50
   XtPointer 		extension;
51
};
52
 
53
+TYPEDEF _XmListClassPart XmListClassPart;
54
 
55
+FIELD (struct)  _XmListClassRec := {
56
 
57
   CoreClassPart        core_class;
58
   XmPrimitiveClassPart primitive_class;
59
   XmListClassPart     list_class;
60
};
61
 
62
+TYPEDEF _XmListClassRec XmListClassRec;
63
 
64
+EXP lvalue XmListClassRec xmListClassRec;
65
 
66
+FIELD (struct) Element := {
67
 
68
	_XmString	name;
69
	Dimension	height;
70
	Dimension	width;
71
	Dimension	CumHeight;
72
	Boolean		selected;
73
	Boolean		last_selected;
74
	Boolean		LastTimeDrawn;
75
	unsigned short	NumLines;
76
	int		length;
77
};
78
 
79
+TYPEDEF Element *ElementPtr;
80
 
81
+FIELD (struct) _XmListPart := {
82
 
83
	Dimension	spacing;
84
	short           ItemSpacing;
85
	Dimension       margin_width;
86
	Dimension    	margin_height;
87
	XmFontList 	font;
88
	XmString	*items;
89
	int		itemCount;
90
	XmString	*selectedItems;
91
        int             *selectedIndices;
92
	int		selectedItemCount;
93
	int 		visibleItemCount;
94
	int 		LastSetVizCount;
95
	unsigned char	SelectionPolicy;
96
	unsigned char	ScrollBarDisplayPolicy;
97
	unsigned char	SizePolicy;
98
        XmStringDirection StrDir;
99
 
100
        Boolean		AutoSelect;
101
        Boolean		DidSelection;
102
        Boolean		FromSetSB;
103
        Boolean		FromSetNewSize;
104
        Boolean		AddMode;
105
	unsigned char	LeaveDir;
106
	unsigned char	HighlightThickness;
107
	int 		ClickInterval;
108
        XtIntervalId	DragID;
109
	XtCallbackList 	SingleCallback;
110
	XtCallbackList 	MultipleCallback;
111
	XtCallbackList 	ExtendCallback;
112
	XtCallbackList 	BrowseCallback;
113
	XtCallbackList 	DefaultCallback;
114
 
115
 
116
	GC		NormalGC;	
117
	GC		InverseGC;
118
	GC		HighlightGC;
119
        Pixmap          DashTile;
120
	ElementPtr	*InternalList;
121
	int		LastItem;
122
	int		FontHeight;
123
	int		top_position;
124
	char		Event;
125
	int		LastHLItem;
126
	int		StartItem;
127
	int		OldStartItem;
128
	int		EndItem;
129
	int		OldEndItem;
130
	Position	BaseX;
131
	Position	BaseY;
132
	Boolean		MouseMoved;
133
	Boolean		AppendInProgress;
134
	Boolean		Traversing;
135
	Boolean		KbdSelection;
136
	short		DownCount;
137
	Time		DownTime;
138
	int		CurrentKbdItem;
139
	unsigned char	SelectionType;
140
	GC		InsensitiveGC;
141
 
142
	int 		vmin;
143
	int 		vmax;
144
	int 		vOrigin;
145
	int 		vExtent;
146
	int 		hmin;
147
	int 		hmax;
148
	int 		hOrigin;
149
	int 		hExtent;
150
 
151
	Dimension	MaxWidth;
152
	Dimension	CharWidth;
153
	Position	XOrigin;
154
 
155
	XmScrollBarWidget   	hScrollBar;
156
	XmScrollBarWidget   	vScrollBar;
157
	XmScrolledWindowWidget  Mom;
158
	Dimension	MaxItemHeight;
159
 
160
};
161
 
162
+TYPEDEF _XmListPart XmListPart;
163
 
164
+FIELD (struct) _XmListRec := {
165
   CorePart	   core;
166
   XmPrimitivePart primitive;
167
   XmListPart	   list;
168
};
169
 
170
+TYPEDEF _XmListRec XmListRec;
171
 
172