PEXSetWorkstationViewport(3) — Subroutines
Name
PEXSetWorkstationViewport - Set Workstation Viewport
Synopsis
void PEXSetWorkstationViewport(Display ∗display, PEXWorkstation workstation, PEXViewport ∗viewport)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
workstationThe resource identifier of the workstation.
viewportThe workstation viewport.
Returns
None
Description
This function sets the requested workstation viewport of the specified workstation. If the dynamic modification for workstation viewport is PEXIMM, the current workstation viewport is set to the specified viewport and the workstation update is set to PEXNotPending; otherwise, the workstation update is set to PEXPending and the current workstation viewport is not changed.
Data Structures
typedef XID PEXWorkstation;
typedef struct {
PEXDeviceCoord min;
PEXDeviceCoord max;
PEXSwitch use_drawable;
unsigned char reserved[3];
} PEXViewport;
typedef struct {
short x;
short y;
float z;
} PEXDeviceCoord;
typedef unsigned char PEXSwitch;
Errors
BadPEXWorkstation
The specified workstation resource identifier is invalid.
BadValueThe specified value for use_drawable is invalid.