Tk_RestackWindow(3tk)

πŸ“¦
version 9.0.4 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 where tkwin is gonna land relative to other. it has to be either Above or Below, no in-between vibes allowed 🚫
  • Tk_Window other (in) β€” tkwin gets repositioned just above or just below this window. it must be a sibling of tkwin, or a descendant of a sibling. if it's NULL, then tkwin gets 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