VGetWindowGC


 
Name
  VGetWindowGC - returns the GC of the specified window.
 
Synopsis
  VGetWindowGC(win, gc)
  Window win;
  GC *gc;                               /*RETURN*/
 
Description
  VGetWindowGC returns the GC of the specified window. Since a new GC is
created everytime VGetWindowGC is called, this new GC has to be freed by
calling XFree(GC).
 
Return Value
  0 - work successfully.
  6 - invalid window ID.
 
Parameters
  win - the window for which the GC is returned.
  gc - return the ID of the GC for the specified window.
 
Side Effects
  None.
 
Entry Conditions
  If VCreateWindows is not called earlier, VGetWindowGC prints an error
message to the standard error stream, produces a core dump file and exits
from the current process.
 
Related Functions
VGetWindowInformation, VGetWindows, VGetImageSubwindows, VCreateWindows, VCreateImageSubwindow.