XpGetPdmStartParams(3Xp)
π XpGetPdmStartParams(3Xp) π
okay bestie, welcome to XPRINT FUNCTIONS β this page is literally the manual for XpGetPdmStartParams(3Xp), and itβs serving βstandard convenience functionβ realness. The way it builds up parameters in accordance with the PDM Selection Protocol? Iconic. β¨
πΈ NAME πΈ
XpGetPdmStartParams β Builds up parameters in accordance with the PDM Selection Protocol as a standard convenience function. π
β¨ SYNOPSIS β¨
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
Status XpGetPdmStartParams ( print_display print_window print_context
video_display video_window selection_display_return selection_return
type_return format_return data_return nelements_return )
Display *print_display;
Window print_window;
XPContext print_context;
Display *video_display;
Window video_window;
Display **selection_display_return;
Atom *selection_return;
Atom *type_return;
int *format_return;
unsigned char **data_return;
int *nelements_return;
π ARGUMENTS π
print_displayβ Specifies a pointer to the printDisplaystructure; returned fromXOpenDisplayon the X Print Server.print_windowβ Specifies a client window on any screen ofprint_displaylong-lived enough for ICCCM communications of the final PDM status ("OK"or"CANCEL"ClientMessage) sent toprint_window.print_contextβ An existing print context that the PDM should reference.video_displayβ Specifies a pointer to the videoDisplaystructure; returned fromXOpenDisplayon the Video X-Server.video_windowβ Specifies the window onvideo_displaynear which the transient dialogs from the PDM should be posted.selection_display_returnβ Returns the display connection on which the PDM selection should be made. May be equal toprint_displayorvideo_display, or may be a new display connection that the caller should close when done.selection_returnβ Returns the selection atom for which a PDM selection should be made.type_returnβ Returns the type for the PDM Selection Protocol property the caller is expected to create.format_returnβ Returns the format for the PDM Selection Protocol property the caller is expected to create.data_returnβ Returns the data set for the PDM Selection Protocol property the caller is expected to create. The caller is expected toXFreethe data when finished.nelements_returnβ Returns the number of elements for the PDM Selection Protocol property the caller is expected to create.
π₯ DESCRIPTION π₯
okay so this request returns a zero status if an error occurred, non-zero otherwise. Thatβs the vibe check. π
XpGetPdmStartParams is a convenience routine used to construct the necessary property information and selection display connection information needed to initiate a PDM Selection per the "PDM Selection Protocol". Once the information is constructed, the caller is responsible for the creation of a property, the generation of a SelectionRequest, the receipt of a SelectionNotify event, and the receipt of a ClientMessage event, as described in the PDM Selection Protocol. No cap. π«‘
When finished, the caller is expected to free data using XFree. XpGetPdmStartParams returns zero if an error occurred, else non-zero. If an error occurs all other_return values are undefined. π¨
Setting the environment variable XPDMSELECTION causes XpGetPdmStartParams to use an alternate selection name. If not set, the selection name PDM_MANAGER is used. π
Setting the environment variable XPDMDISPLAY causes XpGetPdmStartParams to locate the selection on an alternate X Server. If not set, selection_display_return is set equal to print_display. If XPDMDISPLAY is set to one of the keywords "print" or "video", selection_display_return is set to print_display or video_display, respectively. If XPDMDISPLAY is set to a valid DISPLAY-style string, selection_display_return may be set, as appropriate, to one of print_display, video_display, or to a new display connection opened from within XpGetPdmStartParams. Only in the single case where a new display connection is made should the caller close selection_display_return using XCloseDisplay. π
When XpGetPdmStartParams is called, the callerβs locale (see XpSetLocaleHinter) is included in the information as a "hint" to the Print Dialog Manager (PDM). If supported by the implementation, the PDM will use the hint to display dialogs more appropriately labeled for the locale of the client. If the Print Dialog Manager cannot understand the hint, the PDM will choose a default. Note that the locale of the print attributes that the PDM will subsequently access, will already have been determined when the client called XpCreateContext. π
The environment variables XPDMDISPLAY and XPDMSELECTION are re-read each time XpGetPdmStartParams is called. π
π¦ SEE ALSO π¦
XpCreateContext(3Xp)XpSetLocaleHinter(3Xp)
Thatβs the whole page, bestie β signing off from X Version 11 and libXp 1.0.4 π (the footer didnβt give me a date, so Iβm not inventing one, periodt β¨).
π¦ where this page comes from
- arch rolling: libxp 1.0.4-3 Β· X11 AND X11-distribute-modifications-variant
- nixos 26.05: libxp 1.0.4
- nixpkgs unstable: libxp 1.0.4
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- opensuse-leap 16.0: libXp-devel 1.0.4-bp160.1.12 Β· MIT
- Copyright 1996 Hewlett-Packard Company
- Copyright 1996 International Business Machines Corp
- Copyright 1996, 1999, 2004, Oracle and/or its affiliates. All rights reserved
- Copyright 1996 Novell, Inc
- Copyright 1996 Digital Equipment Corp
- Copyright 1996 Fujitsu Limited
- Copyright 1996 Hitachi, Ltd
- Copyright 1996 X Consortium, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms