home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / BOBSET.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  855 b   |  56 lines

  1. /*
  2.     bobset.c
  3.  
  4.     % bob_SetPosition, bob_GetPosition
  5.  
  6.     No one uses these things but they're in the manual
  7.     so....
  8.  
  9.     OWL 1.1
  10.     Copyright (c) 1989, by Oakland Group, Inc.
  11.     ALL RIGHTS RESERVED.
  12.  
  13.     Revision History:
  14.     -----------------
  15. */
  16.  
  17. #include "oakhead.h"
  18. #include "disppriv.h"
  19. #include "bordobj.h"
  20.  
  21. void bob_GetPosition(bob, rowp, colp)
  22.     bob_type bob;
  23.     int *rowp;
  24.     int *colp;
  25. /*
  26.     Get the position of a bob.
  27. */
  28. {
  29.     if (bob_IsWin(bob)) {
  30.         *rowp = bord_GetTopRow(bob);
  31.         *colp = bord_GetLeftCol(bob);
  32.     }
  33.     else {
  34.         *rowp = 0;
  35.         *colp = 0;
  36.     }
  37. }
  38.  
  39. void bob_GetSize(bob, heightp, widthp)
  40.     bob_type bob;
  41.     int *heightp;
  42.     int *widthp;
  43. /*
  44.     Get the height and width of a bob.
  45. */
  46. {
  47.     if (bob_IsWin(bob)) {
  48.         *heightp = bord_GetHeight(bob);
  49.         *widthp = bord_GetWidth(bob);
  50.     }
  51.     else {
  52.         *heightp = 0;
  53.         *widthp = 0;
  54.     }
  55. }
  56.