Tk_GetOption(3tk)

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

✨ NAME ✨

okay so this is Tk_GetOption(3tk), a Tk Library Procedures page, and it's literally about retrieving an option from the option database. bestie, it's giving "lookup girlie" energy and I'm obsessed. πŸ’–


πŸ“œ SYNOPSIS πŸ“œ

#include <tk.h>

Tk_Uid
Tk_GetOption(tkwin, name, class)

πŸŽ€ ARGUMENTS πŸŽ€

  • Tk_Window tkwin (in) β€” token for window. πŸ‘‘
  • const char *name (in) β€” name of desired option. ✨
  • const char *class (in) β€” class of desired option. Null means there is no class for this option; do lookup based on name only. 🫢

πŸ’… DESCRIPTION πŸ’…

This procedure is invoked to retrieve an option from the database associated with tkwin's main window. If there is an option for tkwin that matches the given name or class, then it is returned in the form of a Tk_Uid. If multiple options match name and class, then the highest-priority one is returned. If no option matches, then NULL is returned. 😭

Tk_GetOption caches options related to tkwin so that successive calls for the same tkwin will execute much more quickly than successive calls for different windows. no cap, that cache is lowkey iconic. πŸ¦‹


πŸ”‘ KEYWORDS πŸ”‘

class, name, option, retrieve


Source/version: Tk; manual: Tk_GetOption(3tk); date: not listed on the page, bestie. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from