Tk_ClearSelection(3tk)

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

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Tk Library Procedures page for Tk_ClearSelection(3tk) ✨ This one is all about deselecting a selection. Periodt.

✨ SYNOPSIS ✨

#include <tk.h>

Tk_ClearSelection(tkwin, selection)

🫢 ARGUMENTS 🫢

  • Tk_Window tkwin (in) β€” the selection will be cleared from the display containing this window πŸͺŸβœ¨
  • Atom selection (in) β€” the name of the selection to be cleared. Slay, that's the target 🎯

🌸 DESCRIPTION 🌸

Tk_ClearSelection cancels the selection specified by the atom selection for the display containing tkwin. The selection doesn't have to live in tkwin itself, or even in tkwin's application β€” it's giving "not my window, not my problem" but make it selection drama πŸ’….

If there is a window anywhere on tkwin's display that owns selection, that window will be notified and the selection will be cleared. If there is no owner for selection on the display, then the procedure has no effect β€” literally nothing happens, no cap 😭.

πŸŽ€ KEYWORDS πŸŽ€

  • clear
  • selection

mwah πŸ’‹ that's the whole vibe. This was Tk 4.0, manual page Tk_ClearSelection(3tk) β€” bye bestie, go clear those selections responsibly 🫢✨

πŸ“¦ where this page comes from