DTPRINTSETUPPROC(3)

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

πŸ’– NAME πŸ’–

okay bestie, this is the library call page for DtPrintSetupProc β€” literally the type definition for DtPrintSetupBox procedure resources ✨. No cap, that's the whole name vibe.

✨ SYNOPSIS ✨

this is the exact shape, so copy it verbatim and don't freestyle it πŸ’…:

#include &<Print.h>
typedef XtEnum (*DtPrintSetupProc)(
Widget wid,
DtPrintSetupData *print_data);

🌸 DESCRIPTION 🌸

DtPrintSetupProc is the type definition used for DtPrintSetupBox procedure resources. Each procedure gets the widget ID of the DtPrintSetupBox through wid, plus a structure containing the information it needs to perform the particular operation through print_data πŸ‘‘

If a procedure needs to update the DtPrintSetupBox, it should do that by setting resources as indicated by the procedure resource description. That's the move.

🚨 the only exception: when DtNverifyPrinterProc is used to verify X printers. In this case, the procedure may update the print_display and print_context elements of the passed DtPrintSetupData structure. That's the one special little exception, iykyk 😌

πŸŽ€ ARGUMENTS πŸŽ€

  • wid β€” the widget ID of the DtPrintSetupBox 🫢
  • print_data β€” a pointer to an existing DtPrintSetupData structure that contains the print setup information relevant to the specific procedure 🌸

πŸ‘‘ RETURN VALUE πŸ‘‘

  • DtPRINT_SUCCESS β€” the procedure completed successfully ✨
  • DtPRINT_FAILURE β€” the procedure encountered an error 😭
  • DtPRINT_BAD_PARM β€” an invalid parameter was passed to the procedure πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie β€” footer vibes are DtPrintSetupProc(library call), and we're out πŸ«ΆπŸ’–

πŸ“¦ where this page comes from