VGetWindowInformation


 
Name
  VGetWindowInformation - returns information about a specified window.
 
Synopsis
  VGetWindowInformation(win, xloc, yloc, width, height, font_width,
		font_height, bg, fg)
  Window win;
  int *xloc;                            /*RETURN*/
  int *yloc;                            /*RETURN*/
  int *width;                           /*RETURN*/
  int *height;                          /*RETURN*/
  int *font_width;                      /*RETURN*/
  int *font_height;                     /*RETURN*/
  unsigned long *bg;                    /*RETURN*/
  unsigned long *fg;                    /*RETURN*/
 
Description
  VGetWindowInformation returns information about a specified window.
VGetWindowInformation returns the upper left coordinates to *xloc, *yloc,
window width and height to *width and *height, font width and font height to
*font_width and *font_height and pixel values of the foreground and
background colors to *fg and *bg.
 
Return Value
  0 - work successfully.
  6 - invalid window ID.
 
Parameters
  xloc,yloc - returns the upper left coordinates of the specified window.
  width,height - returns the width and height of the specified window.
  font_width,font_height - returns the font width and height of the specified
        window.
  fg,bg - returns the foreground and background pixel values of the
        specified window.
 
Side Effects
  None.
 
Entry Conditions
  If xloc, yloc, width, height, font_width, font_height, bg, or fg is NULL, or
VCreateWindows is not called earlier, VGetWindowInformation prints an
error message to the standard error stream, produces a core dump file and
exits from the current process.
 
Related Functions
VGetWindows, VGetImageSubwindows, VCreateWindows, VCreateImageSubwindow, VGetWindowGC.