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

  1. /*
  2.     bordsetp.c
  3.  
  4.     % bord_SetPixPosition
  5.  
  6.     OWL 1.1
  7.     Copyright (c) 1989, by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13.  
  14. #include "oakhead.h"
  15. #include "disppriv.h"
  16. #include "bordobj.h"
  17.  
  18. /* -------------------------------------------------------------------------- */
  19.  
  20. void bord_SetPosition(win, row, col)
  21.     win_type win;
  22.     int row;
  23.     int col;
  24. /*
  25.     Change the position of window.
  26.     Moves the window so that the corner of its border is at row, col
  27. */
  28. {
  29.     bord_SetPixPosition(win, 
  30.         col * win_GetFontWidth(win), row * win_GetFontHeight(win));
  31. }
  32. /* -------------------------------------------------------------------------- */
  33.  
  34. void bord_SetPixPosition(win, xpos, ypos)
  35.     win_type win;
  36.     opcoord xpos;
  37.     opcoord ypos;
  38. /*
  39.     Change the position of window.
  40.     Moves the window so that the corner of its border is at xpos, ypos
  41. */
  42. {
  43.     xpos -= bord_xoffs(win);
  44.     ypos -= bord_yoffs(win);
  45.  
  46.     win_SetPixPosition(win, xpos, ypos);
  47. }
  48. /* -------------------------------------------------------------------------- */
  49.  
  50.