XDisplayHeight*() XDisplayHeight*()
Name
XDisplayHeight, XDisplayHeightMM, DisplayHeight, DisplayHeightMM –
query height of screen in pixels or millimeters.
Synopsis
int XDisplayHeight(display, screen_number)
Display *display;
int screen_number;
int XDisplayHeightMM(display, screen_number)
Display *display;
int screen_number;
Arguments
display Specifies a connection to an X server; returned from
XOpenDisplay().
screen_number
Specifies the appropriate screen number on the server.
Returns
The height in pixels or millimeters.
Description
XDisplayHeight*() returns an integer that describes the height of the
screen in pixels. XDisplayHeightMM() returns the height of the speci‐
fied screen in millimeters.
The C language macros DisplayHeight() and DisplayHeightMM() are equiva‐
lent and slightly more efficient.
These functions are misnamed; they should really be XScreenHeight() and
XScreenHeightMM().
See Also
XDisplayWidth*(), XDisplayWidthMM(), XGetWindowAttributes(), XGetGeome‐
try().
Xlib - Macro Equivalents XDisplayHeight*()