DTSAVERGETWINDOWS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– DTSAVERGETWINDOWS(3) πŸ’–

okay so bestie, this is a library call page for DtSaverGetWindows, and it's literally here to hand a screen saver app the windows it should draw on. No cap, it's giving XCDE said go decorate these windows energy ✨


🌸 NAME 🌸

DtSaverGetWindows β€” get the list of windows for drawing by a screen saver application.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<Dt/Saver.h>
Boolean DtSaverGetWindows(
Display *display,
Window **window,
int *count);

πŸŽ€ DESCRIPTION πŸŽ€

The DtSaverGetWindows function returns a list of windows on which a screen saver application should draw when it's invoked by XCDE. That's the whole assignment: XCDE calls, you get windows, you draw on them.

  • display is the X display. Yes, the display argument, doing display things.
  • window is the address of a pointer to receive the pointer to a list of windows. So it's a pointer-to-a-pointer receiving situation, lowkey iconic.
  • count is the address of an integer to receive the number of elements in the list of windows returned in window. It's the little number bestie that tells you how many windows are in the list.

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, DtSaverGetWindows returns True; otherwise, it returns False. So it's either the slay True or the sad little no False.

πŸ’… APPLICATION USAGE πŸ’…

If DtSaverGetWindows is not successful, failure may be due to a memory allocation error or that the screen saver application was not invoked from XCDE. Not me making stuff up β€” that's the actual may-be-caused-by list.

bestie, the application must use XtFree(3) to free data returned in *window. No forgetting, no leaking, no "I'll do it later" β€” periodt 🫢

🌈 SEE ALSO 🌈


that's the cute sign-off from the source/version corner, bestie: DtSaverGetWindows(library call), and the original footer has no date listed, so that's the whole undated library call goodbye vibe πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from