Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / Clipboard.pod
CommitLineData
86530b38
AT
1# Copyright (c) 1994 The Regents of the University of California.
2# Copyright (c) 1994-1996 Sun Microsystems, Inc.
3# See the file "license.terms" for information on usage and redistribution
4# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
5#
6#
7
8=head1 NAME
9
10Tk::clipboard - Manipulate Tk clipboard
11
12=for category User Interaction
13
14=head1 SYNOPSIS
15
16I<$widget>-E<gt>B<clipboard>I<Option>?(I<args>)?
17
18=head1 DESCRIPTION
19
20This command provides an interface to the Tk clipboard,
21which stores data for later retrieval using the selection mechanism.
22In order to copy data into the clipboard, B<clipboardClear> must
23be called, followed by a sequence of one or more calls to
24B<clipboardAppend>. To ensure that the clipboard is updated atomically, all
25appends should be completed before returning to the event loop.
26
27The following methods are currently supported:
28
29=over 4
30
31=item I<$widget>-E<gt>B<clipboardClear>
32
33Claims ownership of the clipboard on I<$widget>'s display and removes
34any previous contents. Returns an empty string.
35
36=item I<$widget>-E<gt>B<clipboardAppend>(?B<-format>=E<gt>I<format>?,?B<-type>=E<gt>I<type>?,?B<-->?,I<data>)
37
38Appends I<data> to the clipboard on $widget's
39display in the form given by I<type> with the representation given
40by I<format> and claims ownership of the clipboard on $widget's
41display.
42
43=over 8
44
45I<Type> specifies the form in which the selection is to be returned
46(the desired ``target'' for conversion, in ICCCM terminology), and
47should be an atom name such as STRING or FILE_NAME; see the
48Inter-Client Communication Conventions Manual for complete details.
49I<Type> defaults to STRING.
50
51The I<format> argument specifies the representation that should be
52used to transmit the selection to the requester (the second column of
53Table 2 of the ICCCM), and defaults to STRING. If I<format> is
54STRING, the selection is transmitted as 8-bit ASCII characters.
55See the L<Tk::Selection> documentation for explanation of what happens
56if I<format> is not STRING.
57Note that arguments passed to
58B<clipboardAppend> are concatenated before conversion, so the
59caller must take care to ensure appropriate spacing across string
60boundaries. All items appended to the clipboard with the same
61I<type> must have the same I<format>.
62
63A B<--> argument may be specified to mark the end of options: the
64next argument will always be used as I<data>.
65This feature may be convenient if, for example, I<data> starts
66with a B<->.
67
68=back
69
70=back
71
72=head1 KEYWORDS
73
74clear, format, clipboard, append, selection, type
75
76=cut
77