Tk_MapWindow(3)
π¦ Tk_MapWindow(3) π¦
Tk Library Procedures β map or unmap a window, bestie π
β¨ NAME β¨
Tk_MapWindow, Tk_UnmapWindow β map or unmap a window π«Ά
π SYNOPSIS π
#include <tk.h>
Tk_Window
Tk_MapWindow(tkwin)
Tk_UnmapWindow(tkwin)
πΈ ARGUMENTS πΈ
Tk_Window tkwin(in) β token for window, okay bestie? Thatβs the whole vibe π
π DESCRIPTION π
So these procedures are the ones you use to map and unmap windows managed by Tk. Iconic.
Tk_MapWindow maps the window given by tkwin, and it also creates an X window corresponding to tkwin if it does not already exist. Yep, itβs giving βmake it appear, and also handle the X window situation.β See the Tk_CreateWindow manual entry for information on deferred window creation π
Tk_UnmapWindow unmaps tkwin's window from the screen. Bye-bye screen presence for that window β¨
Now, the timing tea β: if tkwin is a child window (i.e. Tk_CreateWindow was used to create a child window), then event handlers interested in map and unmap events are invoked immediately. Instant. No waiting. If tkwin is not an internal window, then the event handlers will be invoked later, after X has seen the request and returned an event for it. So like, X has to see it first, periodt.
π These procedures should be used in place of the X proceduresXMapWindowandXUnmapWindow, since they update Tk's local data structure fortkwin. Applications using Tk should not invokeXMapWindowandXUnmapWindowdirectly. No cap, donβt do it.
π₯ KEYWORDS π₯
mapunmapwindow
Signed off with π from the footer: source/version is Tk, and the footer doesnβt show a date β so no invented date, bestie, just Tk and Tk_MapWindow(3) energy π
π¦ where this page comes from
- alpine 3.23: tk9-doc 9.0.3-r0 Β· TCL
- alpine 3.24: tk9-doc 9.0.3-r2 Β· TCL
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 43: tk-devel 1:9.0.2-1.fc43 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- fedora 44: tk-devel 1:9.0.2-1.fc44 Β· TCL AND HPND-Pbmplus AND CC-BY-SA-3.0 AND MIT-open-group AND MIT
- nixos 26.05: tk 9.0.3
- nixpkgs unstable: tk 9.1.0
- Copyright (c) 1990 The Regents of the University of California
- Copyright (c) 1994-1997 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms