| 1 |
# Copyright (c) 1992-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 |
|
| 10 |
Tk_ClearSelection - Deselect a selection |
| 11 |
|
| 12 |
=for category C Programming |
| 13 |
|
| 14 |
=head1 SYNOPSIS |
| 15 |
|
| 16 |
B<#include E<lt>tk.hE<gt>> |
| 17 |
|
| 18 |
B<Tk_ClearSelection>(I<tkwin, selection>) |
| 19 |
|
| 20 |
=head1 ARGUMENTS |
| 21 |
|
| 22 |
=over 4 |
| 23 |
|
| 24 |
=item Tk_Window tkwin (in) |
| 25 |
|
| 26 |
The selection will be cleared from the display containing this |
| 27 |
window. |
| 28 |
|
| 29 |
=item Atom selection (in) |
| 30 |
|
| 31 |
The name of selection to be cleared. |
| 32 |
|
| 33 |
=back |
| 34 |
|
| 35 |
=head1 DESCRIPTION |
| 36 |
|
| 37 |
B<Tk_ClearSelection> cancels the selection specified by the atom |
| 38 |
I<selection> for the display containing I<tkwin>. |
| 39 |
The selection need not be in I<tkwin> itself or even in |
| 40 |
I<tkwin>'s application. |
| 41 |
If there is a window anywhere on I<tkwin>'s display that |
| 42 |
owns I<selection>, the window will be notified and the |
| 43 |
selection will be cleared. |
| 44 |
If there is no owner for I<selection> on the display, then the |
| 45 |
procedure has no effect. |
| 46 |
|
| 47 |
=head1 KEYWORDS |
| 48 |
|
| 49 |
clear, selection |