DTPRINT(5)
π Dt/Print.h β print definitions π
the file formats manual page, but make it group chat, bestie β¨
π NAME π
Dt/Print.h β print definitions. That's the whole vibe: this header is the blueprint for the Print widget class, and it's giving resource names, resource values, callback lore, structs, and function prototypes. π«Ά
β¨ SYNOPSIS β¨
#include &<Dt/Print.h>
Okay so you include it like that, exactly. π
π DESCRIPTION π
The Dt/Print.h header defines resource names, resource values, callback reasons, callback structures, and function prototypes for the Print widget class. It's a lot, but we're gonna get through it together. πΈ
π·οΈ Resource names (the DtN girlies)
The Dt/Print.h header defines the following resource names:
DtNcancelCallbackβcancelCallbackDtNclosePrintDisplayCallbackβclosePrintDisplayCallbackDtNcopiesβcopiesDtNdescriptionβdescriptionDtNdestroyContextCallbackβdestroyContextCallbackDtNfileNameβfileNameDtNminimizeButtonsβminimizeButtons(if not otherwise named)DtNoptionCountβoptionCountDtNoptionsβoptionsDtNprintCallbackβprintCallbackDtNprintDestinationβprintDestinationDtNprinterInfoProcβprinterInfoProcDtNprinterNameβprinterNameDtNprintSetupModeβprintSetupModeDtNselectFileProcβselectFileProcDtNselectPrinterProcβselectPrinterProcDtNsetupCallbackβsetupCallbackDtNverifyPrinterProcβverifyPrinterProcDtNworkAreaLocationβworkAreaLocation
π Resource values (the DtC crew, plus one DtR)
And these are the resource values, no cap:
DtCCancelCallbackβCancelCallbackDtCClosePrintDisplayCallbackβClosePrintDisplayCallbackDtCCopiesβCopiesDtCDescriptionβDescriptionDtCDestroyContextCallbackβDestroyContextCallbackDtCFileNameβFileNameDtCMinimizeButtonsβMinimizeButtons(if not otherwise named)DtCOptionCountβOptionCountDtCOptionsβOptionsDtCPrintCallbackβPrintCallbackDtCPrintDestinationβPrintDestinationDtCPrinterInfoProcβPrinterInfoProcDtCPrinterNameβPrinterNameDtCPrintSetupModeβPrintSetupModeDtCSelectFileProcβSelectFileProcDtCSelectPrinterProcβSelectPrinterProcDtCSetupCallbackβSetupCallbackDtCVerifyPrinterProcβVerifyPrinterProcDtCWorkAreaLocationβWorkAreaLocationDtRPrintSetupProcβPrintSetupProc
π Values for DtNsetupMode
The Dt/Print.h header declares the following values for the DtNsetupMode resource:
DtPRINT_SETUP_PLAINDtPRINT_SETUP_XP
π¦ Values for DtNworkAreaLocation
The Dt/Print.h header declares the following values for the DtNworkAreaLocation resource:
DtWORK_AREA_NONEDtWORK_AREA_TOPDtWORK_AREA_TOP_AND_BOTTOMDtWORK_AREA_BOTTOM
π Values for DtNprintDestination
The Dt/Print.h header declares the following values for the DtNprintDestination resource:
DtPRINT_NO_DESTINATIONDtPRINT_TO_PRINTERDtPRINT_TO_FILE
π Values for DtNprinterNameMode
The Dt/Print.h header declares the following values for the DtNprinterNameMode resource:
DtSHORT_NAMEDtMEDIUM_NAMEDtLONG_NAME
π§ Mode values for DtPrintSetupBoxResetConnection()
The Dt/Print.h header declares the following mode values for DtPrintSetupBoxResetConnection():
typedef enum {
DtPRINT_CLOSE_CONNECTION,
DtPRINT_RELEASE_CONNECTION
} DtPrintResetConnectionMode;
π₯ Callback reasons
The Dt/Print.h header declares the following callback reasons:
DtPRINT_CR_NONEDtPRINT_CR_CANCELDtPRINT_CR_CLOSE_PRINT_DISPLAYDtPRINT_CR_PRINTDtPRINT_CR_SETUP
π Return values for the DtPrint procedure
The Dt/Print.h header declares the following return values for the DtPrint procedure:
DtPRINT_SUCCESS,DtPRINT_BAD_PARM,DtPRINT_FAILURE,DtPRINT_INVALID_DISPLAY,DtPRINT_NOT_XP_DISPLAY,DtPRINT_NO_CONNECTION,DtPRINT_NO_DEFAULT,DtPRINT_NO_DEFAULT_DISPLAY,DtPRINT_NO_PRINTER,DtPRINT_PRINTER_MISSING
π What those return values mean (where the page gives the tea)
DtPRINT_SUCCESSβ The X printer connection was successfully obtained.DtPRINT_BAD_PARMβ The value passed forprint_dataisNULL, or the value of theDtNprintSetupModeresource forwidis notDtPRINT_SETUP_XP.DtPRINT_FAILUREβ The X printer connection failed.DtPRINT_INVALID_DISPLAYβ The indicated X print server could not be found.DtPRINT_NOT_XP_DISPLAYβ The indicated X server does not support the X Printing Extension.DtPRINT_NO_CONNECTIONβ An open X print server connection is not currently being managed by theDtPrintSetupBox.DtPRINT_NO_PRINTERβ The indicated printer could not be found on the X print server, or a default printer could not be determined.
The page doesn't give one-liners for DtPRINT_NO_DEFAULT, DtPRINT_NO_DEFAULT_DISPLAY, or DtPRINT_PRINTER_MISSING, so we're not inventing any. π
π Class record constants
The Dt/Print.h header declares the following class record constants:
WidgetClass dtPrintSetupBoxWidgetClass;
_DtPrintSetupBoxClassRec * DtPrintSetupBoxWidgetClass;
_DtPrintSetupBoxRec * DtPrintSetupBoxWidget;
π«Ά Callback prototypes
The header defines the following callback prototypes:
typedef struct _DtPrintSetupData
{
String printer_name;
Display *print_display;
XPContext print_context;
XtEnum destination;
String dest_info;
} DtPrintSetupData;
typedef struct _DtPrintSetupCallbackStruct
{
int reason;
XEvent *event;
DtPrintSetupData *print_data;
} DtPrintSetupCallbackStruct;
πΈ Functions
The header defines the following functions:
Widget DtCreatePrintSetupBox(
Widget p,
String name,
ArgList args,
Cardinal n);
Widget DtCreatePrintSetupDialog(
Widget ds_p,
String name,
ArgList sb_args,
Cardinal sb_n);
DtPrintSetupData* DtPrintCopySetupData(
DtPrintSetupData* target,
const DtPrintSetupData* source);
XtEnum DtPrintFillSetupData(
Widget psub,
DtPrintSetupData* print_data);
void DtPrintFreeSetupData(
DtPrintSetupData* target);
XtEnum DtPrintResetConnection(
Widget psub,
DtPrintResetConnectionMode m);
π SEE ALSO π
DtCreatePrintSetupBox(3), DtCreatePrintSetupDialog(3), DtPrintCopySetupData(3), DtPrintFillSetupData(3), DtPrintFreeSetupData(3), DtPrintResetConnection(3), DtPrintSetupBox(3), Print(4), and dtprintinfo(1).
β¨ signed off with the Dt/Print.h (file formats) footer energy β that's the source/version tea, and no separate date is shown, so we're keeping it cute and factual. Periodt. π«Άπ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms