Tk_RestackWindow(3tk)
β¨ Tk_RestackWindow β¨
okay bestie, buckle up, we're doing a Tk Library Procedures page today and it's literally called Tk_RestackWindow π
this one is about moving a window around in the stacking order, which is just fancy speak for "who's on top of who" π¦ no cap.
πΈ NAME πΈ
Tk_RestackWindow β change a window's position in the stacking order β¨
π SYNOPSIS π
#include <tk.h>
int
Tk_RestackWindow(tkwin, aboveBelow, other)
π ARGUMENTS π
Tk_Window tkwin(in) β the token for the window you wanna restack, periodt πint aboveBelow(in) β tells you wheretkwinis gonna land relative toother. it has to be eitherAboveorBelow, no in-between vibes allowed π«Tk_Window other(in) βtkwingets repositioned just above or just below this window. it must be a sibling oftkwin, or a descendant of a sibling. if it'sNULL, thentkwingets restacked above or below all its siblings π
π¦ DESCRIPTION π¦
so like, Tk_RestackWindow changes the stacking order of a window relative to its siblings π«
if other is NULL, the window gets repositioned at the top or the bottom of its stacking order β which one depends on whether aboveBelow is Above or Below π
if other has a non-NULL value, then the window gets repositioned just above or just below other. simple as that bestie π«Ά
the aboveBelow argument has to be one of the symbolic values Above or Below. both of those are defined by the include file <X11/Xlib.h> β so yes, you gotta have that in your life already πβ¨
π₯ KEYWORDS π₯
above, below, obscure, stacking order
and that's the whole page, no notes π this gem lives in the Tk library procedures docs β the header up top reads Tk_RestackWindow(3tk) / Tk Library Procedures, and the footer signs off with source Tk and Tk_RestackWindow(3tk) π go forth and restack, you icon ππ
π¦ where this page comes from
- debian trixie: tk9.0-doc 9.0.1-3
- ubuntu questing: tk9.0-doc 9.0.2-1
- ubuntu resolute: tk9.0-doc 9.0.3-1
- ubuntu stonking: tk9.0-doc 9.0.4-1
- Copyright (c) 1990 The Regents of the University of California
- Copyright (c) 1994-1996 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms