void pxinq_window_params(
Pint ws_id, /* workstation identifier */ Pint ws_type, /* workstation type */ Display *display, /* pointer to the X Display structure */ Pint *error_ind, /* error indicator */ Pint *depth, /* depth to use to create the window */ Visual **visual, /* visual type to use to create the window */ Colormap *colormap /* colormap to use to create the window */
)
This choice is realized automatically by GPHIGS if it creates its own window.
When an application wants to create its own window and ask GPHIGS to draw inside using SET X-WINDOW IDENTIFIER, this function can be used to get the X-Window information corresponding to the workstation type and the display.
If the inquired information is available, the depth, visual and colormap attributes necessary to create a X-Window usable by GPHIGS are returned and the error indicator error_ind is returned as 0.
This information is available only if the workstation type is one of X11, PEX, GLX, XGL.
NOTE: In the special case of GLX (7177)on Silicon Graphics workstations, this function must be called before creating the window and the information must be used for the window creation otherwise GLX returns an error.
The GPHIGS Motif Widget uses this function and creates the window according to the returned information.
The C types Display , Visual and Window are defined in X11/Xlib.h.
Set x-window identifier, see pxset_xwin_id
Inquire x-window identifier, see pxinq_xwin_id