Tk_ClearSelection(3)

๐Ÿฆ‹ Tk_ClearSelection(3) โ€” Tk Library Procedures ๐Ÿฆ‹

okay so bestie, welcome to the manual page for Tk_ClearSelection, coming at you from the Tk Library Procedures. Itโ€™s giving โ€œcancel that selectionโ€ energy, and honestly? iconic. Letโ€™s get into it โœจ

๐ŸŒธ NAME ๐ŸŒธ

Tk_ClearSelection โ€” Deselect a selection

โœจ SYNOPSIS โœจ

#include <tk.h>

Tk_ClearSelection(tkwin, selection)

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • Tk_Window tkwin (in) โ€” the selection will be cleared from the display containing this window. Like, find the display that tkwin lives on; thatโ€™s the one getting the clear.
  • Atom selection (in) โ€” the name of the selection to be cleared. yes, youโ€™re telling it which selection to cancel.

๐Ÿ’… DESCRIPTION ๐Ÿ’…

Tk_ClearSelection cancels the selection specified by the atom selection for the display containing tkwin. The selection does not need to be in tkwin itself, or even in tkwinโ€™s application โ€” no cap. If thereโ€™s a window anywhere on tkwinโ€™s display that owns selection, that window gets notified and the selection gets cleared. And if there is no owner for selection on the display? The procedure just has no effect. itโ€™s giving โ€œnothing to clear, nothing happensโ€ ๐Ÿ’€

๐Ÿ‘‘ KEYWORDS ๐Ÿ‘‘

clear, selection


mwah ๐Ÿ’‹ โ€” this page is from Tk version 4.0, and itโ€™s literally Tk_ClearSelection(3), bestie. bye ๐Ÿซถ

๐Ÿ“ฆ where this page comes from