WGETCOORDS(3W)
Series 300 and 500 Only
NAME
wgetcoords − get window coordinates
SYNOPSIS
int wgetcoords(fd,x,y,w,h,dx,dy,rw,rh);
int fd;
int *x,*y;
int *w,*h;
int *dx,*dy;
int *rw,*rh;
DESCRIPTION
fd is an integer file descriptor for an opened window type device interface.
x,y are pointers to the screen pixel coordinates of the upper left corner of the window view with respect to the physical screen. This refers to the upper left corner of the contents portion, not the border. Positive, negative and zero values for x and y are allowed. (0,0) is the upper left corner of the screen.
w,h are pointers to the pixel width and height of the window view. For a window type these refer to the contents portion, not the border.
dx,dy
are pointers to the pixel delta x and delta y offset of the view in the window raster. These refer to the contents portion, not the border. dx and dy can have positive values only and tell how much the window is panned.
rw,rh
are pointers to the pixel width and height of the window raster. rw and rh limit the maximum values for dx, dy, w, and h.
DISCUSSION
Returns the window coordinates associated with the window device denoted by fd.
SEE ALSO
DIAGNOSTICS
A return of -1 indicates failure; otherwise 0 is returned. See errno(2) for more information.
Hewlett-Packard Company — May 11, 2021