Subversion Repositories tendra.SVN

Rev

Details | 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
 
27
/* SCO CID (IXI) TextInP.h,v 1.1 1996/08/08 14:13:40 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/Text.h";
36
+USE "motif/1_2", "Xm/TextStrSoP.h";
37
 
38
+FIELD (struct) SelectionHint := { 
39
 
40
	int	x;
41
	int	y;
42
};
43
 
44
 
45
+FIELD (struct) _InputDataRec := { 
46
 
47
	XmTextWidget		widget;
48
	XmTextScanType		*sarray;
49
	int			sarraycount;
50
	int			new_sel_length;
51
	int			threshold;
52
	SelectionHint		selectionHint;
53
	SelectionHint		Sel2Hint;
54
	XtIntervalId		select_id;
55
	XmTextScanType		stype;
56
	XmTextScanDirection	extendDir;
57
	XmTextScanDirection	Sel2ExtendDir;
58
	XmTextPosition		origLeft;
59
	XmTextPosition		origRight;
60
	XmTextPosition		Sel2OrigLeft;
61
	XmTextPosition		Sel2OrigRight;
62
	XmTextPosition		stuffpos;
63
	XmTextPosition		sel2Left;
64
	XmTextPosition		sel2Right;
65
	XmTextPosition		anchor;
66
	Position		select_pos_x;
67
	Position		select_pos_y;
68
	Boolean			pendingdelete;
69
	Boolean			syncing;
70
	Boolean			extending;
71
	Boolean			Sel2Extending;
72
	Boolean			hasSel2;
73
	Boolean			has_destination;
74
	Boolean			selectionMove;
75
	Boolean			cancel;
76
	Boolean			overstrike;
77
	Boolean			sel_start;
78
	Time			dest_time;
79
	Time			sec_time;
80
	Time			lasttime;
81
};
82
 
83
+TYPEDEF _InputDataRec InputDataRec;
84
+TYPEDEF _InputDataRec *InputData;
85
 
86
+TYPEDEF void (*InputCreateProc)(Widget, ArgList, Cardinal);
87
+TYPEDEF void (*InputGetValuesProc)(Widget, ArgList, Cardinal);
88
+TYPEDEF void (*InputSetValuesProc)(Widget, Widget, Widget, ArgList, Cardinal *);
89
+TYPEDEF void (*InputInvalidateProc)(XmTextWidget, XmTextPosition, XmTextPosition, long);
90
+TYPEDEF void (*InputGetSecResProc)(XmSecondaryResourceData *);
91
 
92
 
93
+FIELD (struct) _InputRec := { 
94
 
95
	InputDataRec		*data;
96
	InputInvalidateProc	Invalidate;
97
	InputGetValuesProc	GetValues;
98
	InputSetValuesProc	SetValues;
99
	XtWidgetProc		destroy;
100
	InputGetSecResProc	GetSecResData;
101
};
102
 
103
+TYPEDEF _InputRec InputRec;
104
 
105
+EXP lvalue XtPointer _XmdefaultTextActionsTable;
106
+EXP lvalue Cardinal _XmdefaultTextActionsTableSize;
107
 
108
+FUNC Widget _XmTextGetDropReciever(Widget);
109
+FUNC Boolean _XmTextHasDestination(Widget);
110
+FUNC Boolean _XmTextSetDestinationSelection(Widget, XmTextPosition, Boolean, Time);
111
+FUNC Boolean _XmTextSetSel2(XmTextWidget, XmTextPosition, XmTextPosition, Time);
112
+FUNC Boolean _XmTextGetSel2(XmTextWidget, XmTextPosition *, XmTextPosition *);
113
+FUNC void _XmTextInputGetSecResData(XmSecondaryResourceData *);
114
+FUNC XmTextPosition _XmTextGetAnchor(XmTextWidget);
115
+FUNC void _XmTextInputCreate(Widget, ArgList, Cardinal);
116
 
117
 
118
 
119