Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Xlib Extensions: > Chapter 6 HP Input Device Extension Functions

Getting the Server Mode

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

Some displays have both image and overlay planes. For such displays there are four combinations of image and overlay planes in which the server can run. To get the current mode of a specified screen, use XHPGetServerMode.

int XHPGetServerMode(display, screen)
Display *display;
int screen;

Title not available (Getting the Server Mode )

display

Specifies the connection to the X server.

screen

Specifies the number of the screen whose mode is requested.

XHPGetServerMode allows a client program to determine the mode of a particular screen. The mode returned is an integer that can be compared against the following predefined modes:

Table 6-3 Server Modes

Predefined Integer Name

Mode Description

XHPOVERLAY_MODE

The X server is running in the overlay planes.

XHPIMAGE_MDOE

The X server is running in the image planes.

XHPSTACKED_SCREENS_MODE

The X server is running with the overlay and image planes on different screens.

XHPCOMBINED_MODE

The X server is running in both the overlay and image planes.

 

These constants can be obtained by including the file <X11/XHPproto.h>.

If an invalid screen number is used, a -1 is returned by this function.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1995 Hewlett-Packard Development Company, L.P.