1Tk_MapWindow(3) Tk Library Procedures Tk_MapWindow(3)
2
3
4
5______________________________________________________________________________
6
8 Tk_MapWindow, Tk_UnmapWindow - map or unmap a window
9
11 #include <tk.h>
12
13 Tk_Window
14 Tk_MapWindow(tkwin)
15
16 Tk_UnmapWindow(tkwin)
17
19 Tk_Window tkwin (in) Token for window.
20_________________________________________________________________
21
22
24 These procedures may be used to map and unmap windows managed by Tk.
25 Tk_MapWindow maps the window given by tkwin, and also creates an X win‐
26 dow corresponding to tkwin if it does not already exist. See the
27 Tk_CreateWindow manual entry for information on deferred window cre‐
28 ation. Tk_UnmapWindow unmaps tkwin's window from the screen.
29
30 If tkwin is a child window (i.e. Tk_CreateWindow was used to create a
31 child window), then event handlers interested in map and unmap events
32 are invoked immediately. If tkwin is not an internal window, then the
33 event handlers will be invoked later, after X has seen the request and
34 returned an event for it.
35
36 These procedures should be used in place of the X procedures XMapWindow
37 and XUnmapWindow, since they update Tk's local data structure for
38 tkwin. Applications using Tk should not invoke XMapWindow and XUnmap‐
39 Window directly.
40
41
43 map, unmap, window
44
45
46
47Tk Tk_MapWindow(3)