| 1 |
# Copyright (c) 1990 The Regents of the University of California. |
| 2 |
# Copyright (c) 1994-1997 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_MapWindow, Tk_UnmapWindow - map or unmap a window |
| 11 |
|
| 12 |
=for category C Programming |
| 13 |
|
| 14 |
=head1 SYNOPSIS |
| 15 |
|
| 16 |
B<#include E<lt>tk.hE<gt>> |
| 17 |
|
| 18 |
Tk_Window |
| 19 |
B<Tk_MapWindow>(I<tkwin>) |
| 20 |
|
| 21 |
B<Tk_UnmapWindow>(I<tkwin>) |
| 22 |
|
| 23 |
=head1 ARGUMENTS |
| 24 |
|
| 25 |
=over 4 |
| 26 |
|
| 27 |
=item Tk_Window tkwin (in) |
| 28 |
|
| 29 |
Token for window. |
| 30 |
|
| 31 |
=back |
| 32 |
|
| 33 |
=head1 DESCRIPTION |
| 34 |
|
| 35 |
These procedures may be used to map and unmap windows |
| 36 |
managed by Tk. B<Tk_MapWindow> maps the window given |
| 37 |
by I<tkwin>, and also creates an X window corresponding |
| 38 |
to I<tkwin> if it doesn't already exist. See the |
| 39 |
B<Tk_CreateWindow> manual entry for information on |
| 40 |
deferred window creation. |
| 41 |
B<Tk_UnmapWindow> unmaps I<tkwin>'s window |
| 42 |
from the screen. |
| 43 |
|
| 44 |
If I<tkwin> is a child window (i.e. B<Tk_CreateChildWindow> was |
| 45 |
used to create it), then event handlers interested in map and unmap events |
| 46 |
are invoked immediately. If I<tkwin> isn't an internal window, |
| 47 |
then the event handlers will be invoked later, after X has seen |
| 48 |
the request and returned an event for it. |
| 49 |
|
| 50 |
These procedures should be used in place of the X procedures |
| 51 |
B<XMapWindow> and B<XUnmapWindow>, since they update |
| 52 |
Tk's local data structure for I<tkwin>. Applications |
| 53 |
using Tk should not invoke B<XMapWindow> and B<XUnmapWindow> |
| 54 |
directly. |
| 55 |
|
| 56 |
=head1 KEYWORDS |
| 57 |
|
| 58 |
map, unmap, window |