home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / WINGETP.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.1 KB  |  49 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.1
  9.     Copyright (c) 1988, by Oakland Group, Inc.
  10.     ALL RIGHTS RESERVED.
  11.  
  12.     Revision History:
  13.     -----------------
  14. */
  15.  
  16. #include "oakhead.h"
  17. #include "disppriv.h"
  18. /* -------------------------------------------------------------------------- */
  19.  
  20. void win_GetPixPosition(win, opboxp)
  21.     win_type win;
  22.     opbox    *opboxp;
  23. /*
  24.     Get's the display corners of the window
  25.     and places them into opboxp.
  26. */
  27. {
  28.     opboxp->xmin = win_GetXmin(win);
  29.     opboxp->ymin = win_GetYmin(win);
  30.     opboxp->xmax = win_GetXmax(win);
  31.     opboxp->ymax = win_GetYmax(win);
  32. }
  33. /* -------------------------------------------------------------------------- */
  34.  
  35. void win_GetPosition(win, ocboxp)
  36.     win_type win;
  37.     ocbox    *ocboxp;
  38. /*
  39.     Gets the display corners of the window and places them into opboxp.
  40. */
  41. {
  42.     ocboxp->leftcol     = win_GetLeftCol(win);
  43.     ocboxp->toprow     = win_GetTopRow(win);
  44.     ocboxp->rightcol = win_GetRightCol(win);
  45.     ocboxp->botrow     = win_GetBotRow(win);
  46. }
  47. /* -------------------------------------------------------------------------- */
  48.  
  49.