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
|
# Copyright (c) 1990 The Regents of the University of California.
# Copyright (c) 1994-1997 Sun Microsystems, Inc.
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#
=head1 NAME
Tk_MapWindow, Tk_UnmapWindow - map or unmap a window
=for category C Programming
=head1 SYNOPSIS
B<#include E<lt>tk.hE<gt>>
Tk_Window
B<Tk_MapWindow>(I<tkwin>)
B<Tk_UnmapWindow>(I<tkwin>)
=head1 ARGUMENTS
=over 4
=item Tk_Window tkwin (in)
Token for window.
=back
=head1 DESCRIPTION
These procedures may be used to map and unmap windows
managed by Tk. B<Tk_MapWindow> maps the window given
by I<tkwin>, and also creates an X window corresponding
to I<tkwin> if it doesn't already exist. See the
B<Tk_CreateWindow> manual entry for information on
deferred window creation.
B<Tk_UnmapWindow> unmaps I<tkwin>'s window
from the screen.
If I<tkwin> is a child window (i.e. B<Tk_CreateChildWindow> was
used to create it), then event handlers interested in map and unmap events
are invoked immediately. If I<tkwin> isn't an internal window,
then the event handlers will be invoked later, after X has seen
the request and returned an event for it.
These procedures should be used in place of the X procedures
B<XMapWindow> and B<XUnmapWindow>, since they update
Tk's local data structure for I<tkwin>. Applications
using Tk should not invoke B<XMapWindow> and B<XUnmapWindow>
directly.
=head1 KEYWORDS
map, unmap, window
|