home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / Samples / CSAPE32.ARJ / SOURCE / OWLSCR / WINGETP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-28  |  1.1 KB  |  46 lines

  1. /*
  2.     wingetp.c    3/15/88
  3.  
  4.     % window position routines.
  5.     by Ted.
  6.     Extracted from winsetp.c
  7.  
  8.     OWL 1.2
  9.     Copyright (c) 1988, by Oakland Group, Inc.
  10.     ALL RIGHTS RESERVED.
  11.  
  12.     Revision History:
  13.     -----------------
  14.      3/28/90 jmd    ansi-fied
  15. */
  16.  
  17. #include "oakhead.h"
  18. #include "disppriv.h"
  19. /* -------------------------------------------------------------------------- */
  20.  
  21. void win_GetPixPosition(win_type win, opbox *opboxp)
  22. /*
  23.     Get's the display corners of the window
  24.     and places them into opboxp.
  25. */
  26. {
  27.     opboxp->xmin = win_GetXmin(win);
  28.     opboxp->ymin = win_GetYmin(win);
  29.     opboxp->xmax = win_GetXmax(win);
  30.     opboxp->ymax = win_GetYmax(win);
  31. }
  32. /* -------------------------------------------------------------------------- */
  33.  
  34. void win_GetPosition(win_type win, ocbox *ocboxp)
  35. /*
  36.     Gets the display corners of the window and places them into opboxp.
  37. */
  38. {
  39.     ocboxp->leftcol     = win_GetLeftCol(win);
  40.     ocboxp->toprow     = win_GetTopRow(win);
  41.     ocboxp->rightcol = win_GetRightCol(win);
  42.     ocboxp->botrow     = win_GetBotRow(win);
  43. }
  44. /* -------------------------------------------------------------------------- */
  45.  
  46.