File: XmTransferValue.3

package info (click to toggle)
motif 2.3.4-13
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 81,160 kB
  • ctags: 51,769
  • sloc: ansic: 596,938; cpp: 3,951; yacc: 2,854; makefile: 2,070; csh: 1,199; sh: 1,070; lex: 455
file content (179 lines) | stat: -rw-r--r-- 5,526 bytes parent folder | download | duplicates (9)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
'\" t
...\" TransfV.sgm /main/11 1996/08/31 18:08:44 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmTransferValue" "library call"
.SH "NAME"
\fBXmTransferValue\fP \(em A toolkit function that transfers data to a destination
.iX "XmTransferValue"
.iX "toolkit functions" "XmTransferValue"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
.sp \n(PDu
\fBvoid \fBXmTransferValue\fP\fR(
\fBXtPointer \fBtransfer_id\fR\fR,
\fBAtom \fBtarget\fR\fR,
\fBXtCallbackProc \fBproc\fR\fR,
\fBXtPointer \fBclient_data\fR\fR,
\fBTime \fBtime\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmTransferValue\fP converts a selection, transferring any data from
the selection owner, in the context of an already-initiated data
transfer operation\&.
An application can call this routine from an
\fBXmNdestinationCallback\fP procedure or any function called as a
result\&.
.PP
The caller of \fBXmTransferValue\fP supplies the target to which the
selection is converted\&.
The caller also supplies a callback procedure to handle the data that
results from the conversion\&.
.IP "\fBtransfer_id\fP" 10
Specifies a unique indentifier for the data transfer operation\&.
The value must be the same as the value of the \fBtransfer_id\fP member
of the \fBXmDestinationCallbackStruct\fR passed to the
\fBXmNdestinationCallback\fP procedure\&.
.IP "\fItarget\fP" 10
Specifies the target to which the selection is to be converted\&.
.IP "\fIproc\fP" 10
Specifies a callback procedure to be invoked when the selection has been
converted and the data, if any, is available\&.
This procedure is responsible for inserting or otherwise handling any
data transferred\&.
The procedure can also terminate the data transfer by calling
\fBXmTransferDone\fP\&.
The \fIproc\fP receives three arguments:
.RS
.IP "   \(bu" 6
The widget that requested the conversion
.IP "   \(bu" 6
The value of the \fIclient_data\fP argument
.IP "   \(bu" 6
A pointer to an \fBXmSelectionCallbackStruct\fR
.RE
.IP "" 10
This procedure can be called before or after \fBXmTransferValue\fP
returns\&.
.IP "\fIclient_data\fP" 10
Specifies data to be passed to the callback procedure (the value of the
\fIproc\fP argument) when the selection has been converted\&.
.IP "\fItime\fP" 10
Specifies the time of the \fBXEvent\fP that triggered the data transfer\&.
You should typically set this field to \fBXtLastTimestampProcessed\fP\&.
.PP
The callback procedure (the value of the \fIproc\fP argument) receives a
pointer to an \fBXmSelectionCallbackStruct\fR, which has the following
definition:
.PP
.nf
typedef struct
{
        int \fIreason\fP;
        XEvent *\fIevent\fP;
        Atom \fIselection\fP;
        Atom \fItarget\fP;
        Atom \fItype\fP;
        XtPointer \fItransfer_id\fP;
        int \fIflags\fP;
        int \fIremaining\fP;
        XtPointer \fIvalue\fP;
        unsigned long \fIlength\fP;
        int \fIformat\fP;
} XmSelectionCallbackStruct;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked\&.
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback\&.
It can be NULL\&.
.IP "\fIselection\fP" 10
Specifies the selection that has been converted\&.
.IP "\fItarget\fP" 10
Specifies the target to which \fBXmTransferValue\fP requested
conversion\&.
The value is the same as the value of the \fItarget\fP argument to
\fBXmTransferValue\fP\&.
.IP "\fItype\fP" 10
Specifies the type of the selection value\&.
This is not the target, but the type used to represent the target\&.
The value \fBXT_CONVERT_FAIL\fP means that the selection owner did not
respond to the conversion request within the Intrinsics selection
timeout interval\&.
.IP "\fBtransfer_id\fP" 10
Specifies a unique indentifier for the data transfer operation\&.
The value is the same as the value of the \fBtransfer_id\fP argument to
\fBXmTransferValue\fP\&.
.IP "\fIflags\fP" 10
This member is currently unused\&.
The value is always \fBXmSELECTION_DEFAULT\fP\&.
.IP "\fIremaining\fP" 10
Indicates the number of transfers remaining for the operation specified
by \fBtransfer_id\fP\&.
.IP "\fIvalue\fP" 10
Represents the data transferred by this request\&.
The application is responsible for freeing the value by calling
\fBXtFree\fP\&.
.IP "\fIlength\fP" 10
Indicates the number of elements of data in
\fIvalue\fP, where each element has the size symbolized by \fIformat\fP\&.
If \fIvalue\fP is NULL, \fIlength\fP is 0\&.
.IP "\fIformat\fP" 10
Indicates whether the data in \fIvalue\fP should be viewed as a list of
\fIchar\fP, \fIshort\fP, or \fIlong\fP quantities\&.
Possible values are 8 (for a list of \fIchar\fP),
16 (for a list of \fIshort\fP), or 32 (for a list of \fIlong\fP)\&.
.SH "RELATED"
.PP
\fBXmTransferSetParameters\fP(3),
\fBXmTransferSendRequest\fP(3),
and
\fBXmTransferStartRequest\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:33