XpGetPageDimensions(3Xp)
okay bestie, you've found XpGetPageDimensions(3Xp) β one of the XPRINT FUNCTIONS girlies π. She's here to hand you page dimensions for the current printer settings, and honestly? iconic.
πΈ NAME πΈ
XpGetPageDimensions β gets the page dimensions for the current printer settings. no cap.
β¨ SYNOPSIS β¨
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h>
Status XpGetPageDimensions ( display, print_context, width, height,
reproducible_area )
Display *display;
XPContext print_context;
unsigned short *width;
unsigned short *height;
XRectangle *reproducible_area;
π ARGUMENTS π
displayβ specifies a pointer to theDisplaystructure; you get this back fromXOpenDisplay.print_contextβ a pre-existing print context. yes, it already exists, we're not making a new one.widthβ returns the pixel width of the page currently selected in the print context.heightβ returns the pixel height of the page currently selected in the print context.reproducible_areaβ returns the net reproducible area of the page currently selected in the print context, expressed in pixel offsets and dimensions.
π DESCRIPTION π
So XpGetPageDimensions considers the medium currently selected in the print context β and that medium is derived in part from default-medium, default-input-tray, input-trays-medium, content-orientation, and default-resolution β then returns the total width and height of the page in pixels, plus the net reproducible area within the total width and height. The net reproducible area is the portion of the page on which the printer is physically capable of placing ink. literally the printable zone, bestie. π¨οΈβ¨
XpGetPageDimensions returns a Status of 0 on failure, or 1 on success. that's the whole vibe check.
π¨ DIAGNOSTICS π¨
XPBadContextβ a valid print context-id has not been set prior to making this call.
signed off by X Version 11, libXp 1.0.4, and XpGetPageDimensions(3Xp) π«Ά β the footer didn't give us a date, so no invented date here, 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