Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ DspWidth(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XDisplayWidth, XDisplayWidthMM, DisplayWidth, DisplayWidthMM — query width of screen in pixels or millimeters. 

SYNOPSIS

int XDisplayWidth(display, screen_number)
      Display ∗display;
      int screen_number; int XDisplayWidthMM(display, screen_number)
      Display ∗display;
      int screen_number;

ARGUMENTS

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

screen_number
Specifies the appropriate screen number on the server.

RETURNS

The width in pixels or millimeters. 

DESCRIPTION

XDisplayWidth∗() returns an integer that describes the width of the screen in pixels.  XDisplayWidthMM() returns the width of the specified screen in millimeters. 

The C language macros DisplayWidth() and DisplayWidthMM() are equivalent and slightly more efficient. 

These functions are misnamed; they should really be XScreenWidth() and XScreenWidthMM(). 

SEE ALSO

XDisplayHeight∗(), XDisplayHeightMM(), XGetWindowAttributes(), XGetGeometry(). 

Xlib Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026