Tk_ConfigureWindow(3)
β¨ Tk_ConfigureWindow(3) β¨
okay so welcome to this Tk Library Procedures page, bestie β it's giving window utility functions and I'm obsessed. π
π NAME π
Tk_GetOtherWindow, Tk_MakeContainer, Tk_MakeWindow, Tk_UseWindow β window utility functions. That's the whole squad, no cap. π«Ά
πΈ SYNOPSIS πΈ
literally the code, copied exactly, character for character:
#include <tk.h>
Tk_Window
Tk_GetOtherWindow(tkwin)
Tk_MakeContainer(tkwin)
Tk_MakeWindow(tkwin, parent)
int
Tk_UseWindow(interp, tkwin, string)
π ARGUMENTS π
Tcl_Interp *(interp)β the interpreter associated with the application. πTk_Windowtkwin(in)β token for window.Windowparent(in)β parent window.const char *string(in)β string identifying an X window to use fortkwin; must be an integer value. (yes, an integer value, don't try to be cute with it π)
π¦ DESCRIPTION π¦
ok so picture this: if both the container and the embedded window are in the same process, Tk_GetOtherWindow will return either one, given the other. If winPtr is a container, the return value is the token for the embedded window, and vice versa. If the "other" window isn't in this process, NULL is returned. β¨
Tk_MakeContainer is called to indicate that a particular window will be a container for an embedded application. This changes certain aspects of the window's behavior, such as whether it will receive events anymore. π
Tk_MakeWindow creates an actual window system window object based on the current attributes of the specified TkWindow. It returns the handle to the new window, or None on failure. bestie, None is the fail girlie here. π
Tk_UseWindow causes a Tk window to use a given X window as its parent window, rather than the root window for the screen. It is invoked by an embedded application to specify the window in which it is embedded. πͺ
The return value is normally TCL_OK. If an error occurs (such as string not being a valid window spec), then the return value is TCL_ERROR and an error message is left in the interp's result if interp is non-NULL. no cap, check that interp before you go looking for the message. π«Ά
π KEYWORDS π
parent, window. that's it, that's the keyword vibe check. β
signed off with Tk 4.0 energy and this Tk_ConfigureWindow(3) footer situation β date? not on this page, but the source/version is right there, mwah π
π
π¦ 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-1993 The Regents of the University of California
- Copyright (c) 1994-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms